[Koha-bugs] [Bug 21901] New: Improve performance for serial registration
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Wed Nov 28 16:09:50 CET 2018
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=21901
Bug ID: 21901
Summary: Improve performance for serial registration
Change sponsored?: ---
Product: Koha
Version: master
Hardware: All
OS: All
Status: NEW
Severity: major
Priority: P5 - low
Component: Serials
Assignee: koha-bugs at lists.koha-community.org
Reporter: frank.hansen at ub.lu.se
QA Contact: testopia at bugs.koha-community.org
CC: colin.campbell at ptfs-europe.com
Because two indexes are missing, the SQL searches in C4::Serials perform very
slow. Since theres no indexes for subscription.biblionumber and
serial.subscriptionid, the SQL server will do a full table scans on both
tables, which takes a very long time, especially if you have 100,000
subscriptions and approximately one million series registered.
To improve response time, at least two indexes are required. I will therefore
suggest these two indexes to be built:
alter table serial add index idx_serial_subscriptionid using btree
(subscriptionid);
alter table subscription add index idx_subscription_biblionumber
(biblionumber);
It's also strange that the subscriptionid in serial is a varchar(100). In
subscriptions table, subscriptionid is an int. I think subscriptionid in serial
should be an int for safe and for best performance.
--
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
More information about the Koha-bugs
mailing list