[Koha-bugs] [Bug 14053] Acquisition db tables are missing indexes
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Mon Apr 27 17:15:35 CEST 2015
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14053
--- Comment #1 from Fridolin SOMERS <fridolyn.somers at biblibre.com> ---
Created attachment 38568
-->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=38568&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
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list