[Koha-bugs] [Bug 8483] Borrower reading history should include deleted items
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Thu Oct 1 13:56:53 CEST 2015
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8483
Jonathan Druart <jonathan.druart at bugs.koha-community.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jonathan.druart at bugs.koha-c
| |ommunity.org
--- Comment #26 from Jonathan Druart <jonathan.druart at bugs.koha-community.org> ---
I was afraid of the complexity in the call stack, so did some tests:
$ more bug_8483.pl
use Modern::Perl;
use C4::Members;
my $borrowernumber=42;
my $issues = GetAllIssues( $borrowernumber, 'date_due desc' );
> select count(*) from old_issues where borrowernumber=42;
43
> select count(*) from issues where borrowernumber=42;
7
$ git checkout master; git reset --hard origin/master
$ git checkout -b bug_8483; git bz apply 8483
$ git checkout master; time perl bug_8483.pl
perl bug_8483.pl 1.23s user 0.04s system 99% cpu 1.270 total
$ git checkout bug_8483; time perl bug_8483.pl
perl bug_8483.pl 1.50s user 0.05s system 99% cpu 1.560 total
# => Ok we get the old_issues in addition of
# Adding some issues to the patron
> select count(*) from issues where borrowernumber=42;
49
# master
perl bug_8483.pl 1.21s user 0.08s system 99% cpu 1.280 total
# bug_8483
perl bug_8483.pl 1.82s user 0.07s system 97% cpu 1.933 total
210
# master
perl bug_8483.pl 1.21s user 0.07s system 98% cpu 1.293 total
# bug_8483
perl bug_8483.pl 2.73s user 0.09s system 95% cpu 2.959 total
600
# master
perl bug_8483.pl 1.28s user 0.03s system 97% cpu 1.340 total
# bug_8483
perl bug_8483.pl 4.78s user 0.10s system 94% cpu 5.154 total
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list