Koha/C4
Dobrica Pavlinusic 5baa35ad3b Bug 7846 - get_batch_summary massive speedup
current code is using DISTINCT and another SQL query which can be replaced with GROUP BY
for massive speedup. In our case, generating Manage Batches screen DBI time decreased
from 24.762 s to 0.147 s

Aside from correct usage of relational database, this change also cleans up code nicely.

This change removed semi-columns from SQL query which broke Manage Patron batches.

Test scenario:

1. open Manage Batches screen and take note of time needed to generate it
2. apply this patch
3. reload page and check page genration time

Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
2012-05-25 17:47:14 +02:00
..
AuthoritiesMarc
Barcodes
ClassSortRoutine
Creators Bug 7846 - get_batch_summary massive speedup 2012-05-25 17:47:14 +02:00
External
Form Fix for Bug 6458 - incorrect parsing result in translation processing 2011-09-15 08:38:58 +12:00
Heading bug 7284: fix package build problem, move BEGIN into new 2012-04-04 18:18:12 +02:00
ILSDI Bug 5549 : Format Date in ILSDI::Services to include hhmm 2012-03-20 12:37:07 +13:00
Installer Bug 7977: Adding DateTime::Format::MySQL as a core dependency 2012-05-24 14:14:03 +02:00
Labels Bug 7615 - Give option to use description for homebranch/holding branch in label creator instead of the branchcode 2012-03-08 16:12:50 +01:00
Linker signed off Bug 7284: Authority matching improvements 2012-03-07 17:34:11 +01:00
Members But 5742: Batch edit patrons 2012-05-15 17:44:19 +02:00
OAI Bug 6440: Implement OAI-PMH Sets 2012-03-20 11:38:26 +01:00
Output
Patroncards
Reports Bug 8128 - [SIGNED-OFF]Followup - Change default value for cache_expiry 2012-05-24 15:48:42 +02:00
Search
SIP Bug 6335 Set branch in sip session 2012-05-11 11:15:06 +02:00
Utils Bug 6836 follow-up fixing POD 2012-01-27 13:58:20 +01:00
VirtualShelves Bug 4032 XSLT systempreference takes a path to file rather than YesNo 2012-03-29 16:58:55 +02:00
Accounts.pm Bug 7597 - Part 5 - Remove my from $branch, which was masking previous declaration 2012-03-21 17:13:43 +01:00
Acquisition.pm Bug 7757 - Edit basket vendor after it has been created 2012-05-24 13:35:52 +02:00
Auth.pm Bug 7935: Introduce sys pref to control 'browse results' in OPAC 2012-04-10 15:26:37 +02:00
Auth_cas_servers.yaml.orig Bug 5630 CAS improvements 2011-10-13 10:49:49 +13:00
Auth_with_cas.pm Bug 7745: Wrong service name for CAS authentification 2012-03-22 06:21:23 +01:00
Auth_with_ldap.pm Bug 6022: Auth_with_ldap check if categorycode is valid 2011-12-06 19:51:15 +01:00
AuthoritiesMarc.pm Bug 7617: Sort authority results by authid 2012-03-29 11:04:58 +02:00
BackgroundJob.pm
Barcodes.pm
Biblio.pm Bug 7112 - Having two prices in 020$c causes basket creation to fail from staged marc import 2012-05-24 15:59:21 +02:00
Bookseller.pm Bug 7291: Adds new field aqbooksellers.deliverytime 2012-04-03 18:19:46 +02:00
Boolean.pm
Branch.pm bug_7264: [SIGNED-OFF] Branch popup on OPAC detail.Added opac_info field to branches table. 2012-03-22 11:50:00 +01:00
Breeding.pm bug_7613: OCLC Connexion gateway 2012-04-06 17:26:20 +02:00
Budgets.pm bug_4831: Use unitprice (actual cost) when totalling spent amounts for "All available funds", as in "Already received" 2011-09-22 19:35:40 +12:00
Calendar.pm Bug 7477: Followup: Fix perlcritic issues 2012-03-19 18:16:40 +01:00
Category.pm Bug 6989 Patron categories not properly displayed if not pure ASCII 2011-11-04 12:07:08 +01:00
Charset.pm Bug 7400: Add auto-completion on auth_finder 2012-03-19 18:20:30 +01:00
Circulation.pm Bug 7704 -Fix bug that prevent items to be returned to home branch, when independentbranches and canreservefromotherbranch sysprefs are both turned on. 2012-05-21 18:43:13 +02:00
ClassSortRoutine.pm Bug 7035 de-nesting C4::ClassSource & ClassSortRoutine 2011-10-19 03:25:59 +13:00
ClassSource.pm Bug 7035 de-nesting C4::ClassSource & ClassSortRoutine 2011-10-19 03:25:59 +13:00
Context.pm Bug 5549 : Add a timezone object to C4::Context 2012-03-20 12:08:20 +13:00
Contract.pm
Creators.pm
Csv.pm
Dates.pm Bug 929 : Follow up adding unit tests, discovered C4::Dates cached the syspref with no way to clear it, fixed also. 2012-01-13 16:17:48 +01:00
Debug.pm
Heading.pm Bug 7617: Sort authority results by authid 2012-03-29 11:04:58 +02:00
Images.pm Bug 7600: Return a single-pixel GIF when no local cover image exists 2012-03-20 16:54:31 +01:00
ImportBatch.pm bug_7613: OCLC Connexion gateway 2012-04-06 17:26:20 +02:00
ImportExportFramework.pm Bug 7476 Remove executable bit from files that probably should not be executed 2012-02-03 14:22:15 +01:00
Input.pm
Installer.pm Bug 6008 - Locating mysql/psql commands on Installer.pm 2012-02-27 15:38:07 +01:00
ItemCirculationAlertPreference.pm
Items.pm Bug 3521 - Items table in catalogue/detail.pl and cataloguing/additem.pl is sorted nonsensically 2012-05-22 23:18:40 +02:00
ItemType.pm Bug 6371 Item Types description not properly displayed if not pure ASCII 2011-10-08 20:10:29 +13:00
Koha.pm Bug 7977: Adding Daily Quotes Tests to Koha.t test suite; also fixing sort order on quote selection SQL 2012-05-24 14:14:45 +02:00
Labels.pm
Languages.pm Bug 6193 - Follow up: use SetEnv and remove memcached from koha-conf.xml 2012-02-20 23:24:02 +01:00
Letters.pm Bug 7756: FIX send email for late orders 2012-04-12 16:50:27 +02:00
Linker.pm Bug 7284: Fix unit test broken by erroneous POD 2012-03-08 15:24:18 +01:00
Log.pm Bug 6460: alternative fix, updating template and script instead of C4::Log 2011-09-24 10:01:09 +12:00
Maintainance.pm
Matcher.pm bug_7613: OCLC Connexion gateway 2012-04-06 17:26:20 +02:00
Members.pm Bug 8009: Item descriptive data not populated on pay.pl 2012-05-25 17:26:02 +02:00
Message.pm bug_7001: Issue and Reserve slips are notices. 2012-03-09 10:11:20 +01:00
NewsChannels.pm
Output.pm Bug 5668 - Star ratings in the opac 2012-04-10 14:40:49 +02:00
Overdues.pm bug 7849 Instant Fine Calculation\n Adds functionality of calculate fines instantly. This is very important for Hourly loans becuase of a loophole from the cron. 2012-04-19 17:52:18 +02:00
Patroncards.pm
Print.pm bug 7001 follow-up fixing POD mistake 2012-03-13 11:18:39 +01:00
Ratings.pm Bug 5668 - Star ratings in the opac 2012-04-10 14:40:49 +02:00
Record.pm Bug 7345: Enable exporting records sans private fields 2012-02-13 11:32:18 +01:00
Reports.pm
Reserves.pm Bug 7641 - Followup - Suspend Until not set on by suspend button. 2012-05-15 15:48:12 +02:00
Review.pm Bug 1623 - Provide view of approved comments 2011-12-27 18:26:50 +01:00
Ris.pm Bug 2505 follow-up: C4::Ris not ready for use strict;use warnings; 2012-04-10 15:08:47 +02:00
RotatingCollections.pm
Scheduler.pm
Scrubber.pm
Search.pm Bug 8041: lost items are no longer available in search 2012-05-15 16:44:50 +02:00
Serials.pm Bug 7701: Error when sending serial alerts 2012-03-29 11:13:04 +02:00
Service.pm
ShelfBrowser.pm
SMS.pm
SocialData.pm bug 7470 follow-up, fix POD doc 2012-03-26 17:53:28 +02:00
SQLHelper.pm Bug 7432 : Fixing caching for SQLHelper 2012-02-15 10:26:24 +01:00
Stats.pm
Suggestions.pm bug_7001: Issue and Reserve slips are notices. 2012-03-09 10:11:20 +01:00
Tags.pm Bug 7259 - Show a count of items pending approval on staff client home and tools pages 2011-12-08 12:04:28 +01:00
Templates.pm Bug 8019 - Preserve language choice between Browser sessions 2012-05-14 18:37:56 +02:00
TmplToken.pm
TmplTokenType.pm
TTParser.pm Merge remote-tracking branch 'origin/new/bug_5327' 2012-02-15 13:55:48 +01:00
UploadedFile.pm Bug 1633: [SIGNED-OFF] Add support for uploading images to Koha 2012-01-24 11:16:02 +01:00
Utils.pm
VirtualShelves.pm 7368 Followup for indentation in VirtualShelves.pm 2012-04-06 16:01:38 +02:00
XISBN.pm
XSLT.pm Bug 7821 - fix C4::Templates::_current_language 2012-04-02 11:33:17 +02:00
Z3950.pm