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: [email protected]
Reporter: [email protected]
QA Contact: [email protected]
CC: [email protected]
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.
_______________________________________________
Koha-bugs mailing list
[email protected]
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/