[Koha-bugs] [Bug 14053] Acquisition db tables are missing indexes

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Apr 30 20:49:10 CEST 2015


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14053

M. Tompsett <mtompset at hotmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #38568|0                           |1
        is obsolete|                            |

--- Comment #6 from M. Tompsett <mtompset at hotmail.com> ---
Created attachment 38728
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=38728&action=edit
Bug 14053 - Acquisition db tables are missing indexes

Acquisition db tables have a lot of relational constraints and are often
missing an index to have performance queries.

This patch adds an index for all columns used in a forein key.
Also adds an index on some columns very often used in search queries :
aqbooksellers.name and aqbudgets.budget_code.
Also adds an index on aqorders.orderstatus, very often used with hardcoded
value like 'cancelled', in various queries.

Test plan :
 - Check SQL syntax is correct
 - Try to compare performance after and before database update. I think query
contained in C4::Acquistion::GetInvoices could be a good example

Signed-off-by: Mark Tompsett <mtompset at hotmail.com>

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list