Bugzilla – Attachment 53122 Details for
Bug 16855
Poor performance due to high overhead of SQL call in export.pl
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[SIGNED-OFF] Bug 16855 - Poor performance due to high overhead of SQL call in export.pl
Bug-16855---Poor-performance-due-to-high-overhead-.patch (text/plain), 1.21 KB, created by
Srdjan Jankovic
on 2016-07-06 04:10:59 UTC
(
hide
)
Description:
[SIGNED-OFF] Bug 16855 - Poor performance due to high overhead of SQL call in export.pl
Filename:
MIME Type:
Creator:
Srdjan Jankovic
Created:
2016-07-06 04:10:59 UTC
Size:
1.21 KB
patch
obsolete
>From 2e9ce42eb36c6d551353a1eb99ea3249f5b95ef8 Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Tue, 5 Jul 2016 14:49:35 -0400 >Subject: [PATCH] Bug 16855 - Poor performance due to high overhead of SQL call > in export.pl > >This patch eliminates all columns retrieved in the biblioitems query >except for biblionumber. > >To test: >1 - Go to tools->Export data >2 - Export using various filters and note you get expected records >3 - Apply patch >4 - Ensure exported results match results before patch > >Signed-off-by: Srdjan <srdjan@catalyst.net.nz> >--- > tools/export.pl | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/tools/export.pl b/tools/export.pl >index 4794d05..373ebfa 100755 >--- a/tools/export.pl >+++ b/tools/export.pl >@@ -148,7 +148,7 @@ if ( $op eq "export" ) { > ), > > }; >- my $biblioitems = Koha::Biblioitems->search( $conditions, { join => 'items' } ); >+ my $biblioitems = Koha::Biblioitems->search( $conditions, { join => 'items', columns => 'biblionumber' } ); > while ( my $biblioitem = $biblioitems->next ) { > push @record_ids, $biblioitem->biblionumber; > } >-- >2.7.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 16855
:
53110
|
53122
|
53138