Bug 5528 introduced analytics records based on UNIMARC 461$0 and MARC21/NORMARC 773$0 and EasyAnalyticalRecords syspref. Bug 7311 added a condition around code in additem.pl. But this should be around all code related to analytics. For libraries that does not use it, it is a gain of performance (the more important is to avoid search on hi index).
Created attachment 15165 [details] [review] Proposed patch See commit message.
Note that this problem can cause a really long response time (or even a timeout) for records with a lot of items like serials (because of search on hi index).
Hmm, there are also normal analytics (not easy analytics), has this been checked with that? IE does it make sure not to break normal analytics?
(In reply to comment #3) > Hmm, there are also normal analytics (not easy analytics), has this been > checked with that? IE does it make sure not to break normal analytics? Your right, I hope working on this with some people during hackfest. Maybe addind a new syspref for all analitics code ; we have a library that uses UNIMARC 461$9 for another purpose.
*** This bug has been marked as a duplicate of bug 20702 ***
Solved at laaaaaaaaast, it will improve performance for records with a huge number of items. Thanks to all of you