Commit a44bb07b authored by Wm. Nick Clemens's avatar Wm. Nick Clemens Committed by Kyle M Hall

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 Jankovic's avatarSrdjan <srdjan@catalyst.net.nz>
Signed-off-by: default avatarKyle M Hall <kyle@bywatersolutions.com>
parent 44092cba
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment