[Koha-bugs] [Bug 15104] Batch Record Modification Performance Improvement

2021-04-01 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15104

Pascale Nalon  changed:

   What|Removed |Added

 CC||pascale.na...@ensmp.fr,
   ||pascale.nalon@mines-pariste
   ||ch.fr,
   ||severine.que...@bulac.fr

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 15104] Batch Record Modification Performance Improvement

2017-10-23 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15104

Owen Leonard  changed:

   What|Removed |Added

   Assignee|gmcha...@gmail.com  |cnorthcott.w...@gmail.com

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 15104] Batch Record Modification Performance Improvement

2016-03-23 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15104

Owen Leonard  changed:

   What|Removed |Added

 Status|Needs Signoff   |Failed QA

--- Comment #4 from Owen Leonard  ---
Based on Joubu's Comment 3 I'm guessing this should be marked as "Failed QA"
for now.

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 15104] Batch Record Modification Performance Improvement

2015-12-02 Thread bugzilla-daemon
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15104

--- Comment #3 from Jonathan Druart  
---
Comment on attachment 6
  --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=6
Bug 15104: Batch Record Modification Performance Improvement

Review of attachment 6:
 --> 
(http://bugs.koha-community.org/bugzilla3/page.cgi?id=splinter.html&bug=15104&attachment=6)
-

::: C4/Biblio.pm
@@ +307,4 @@
>  }
>  
>  if ( C4::Context->preference("CataloguingLog") ) {
> +logaction( "CATALOGUING", "MODIFY", $biblionumber, "biblio BEFORE=>" 
> . $record->as_formatted );

You are logging the modified record, not the original one.

::: tools/batch_record_modification.pl
@@ +157,4 @@
>  my ( $job );
>  if ( $runinbackground ) {
> +$job_size = scalar( @record_ids );
> +$job = C4::BackgroundJob->new( $sessionID, "FIXME", 
> $ENV{SCRIPT_NAME}, $job_size );

Wrong change, your are reintroducing old lines (see bug 15005).

@@ +183,4 @@
>  my $progress = 0;
>  $dbh->{RaiseError} = 1;
>  RECORD_IDS: for my $record_id ( sort { $a <=> $b } @record_ids ) {
> +$progress++;

There is a ++$progress later, you are incrementing twice the same variable in
the same block.

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 15104] Batch Record Modification Performance Improvement

2015-11-04 Thread bugzilla-daemon
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15104

--- Comment #2 from cnorthcott.w...@gmail.com ---
Created attachment 6
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=6&action=edit
Bug 15104: Batch Record Modification Performance Improvement

Performance improvements to speed of the Modify Records by decreasing
unnecessary
progress reporting of success messages and data fetching while logging.

Test Plan:
1) Prepare NTYprof
(http://wiki.koha-community.org/wiki/Profiling_with_Devel::NYTProf)
   or procure a stopwatch (stopwatch will be simpler but less accurate).
2) Ensure you have a decent number of records in your Koha system (>500) if you
are
   lacking records to modify in your database you can import some from files
   found here: http://wiki.koha-community.org/wiki/Free_sample_MARC_data
3) Prepare a file with biblionumbers to modify. You can create a file
containing
   all record  called ItemBarcodes.txt in the current folder using the
   following command from the machine running Koha:
   echo 'select biblionumber from biblio' | sudo koha-mysql kohadev >>
BiblioNums.txt
4) Navigate to Home > Tools > MARC modification templates in the Koha Intranet.
5) Create a new template called ModRec1.
6) Add a new action using:
   Select 'Add/Update' from the drop down box and in the field(s) boxes enter
'090'
   (in the first box) and 'a' (in the second box) and 'Mod1' in the value
field.
   Then click 'Add Action'
7) Create a new template called ModRec2.
8) Add a new action using:
   Select 'Add/Update' from the drop down box and in the field(s) boxes enter
'090'
   (in the first box) and 'a' (in the second box) and 'Mod2' in the value
field.
   Then click 'Add Action'
9) Navigate to Home > Tools > Batch Modify Records in the Koha Intranet
10) Click the 'Browse...' button and select BiblioNums.txt or your equilient.
11) Select ModRec1 under Use MARC Modification Template.
12) Click the 'Continue' button and scroll to the bottom of the page.
13) If you are using a stopwatch, prepare your stopwatch so that you will
   start counting seconds from the point you click the button in the next
   step.
14) Click the 'Modify Selected Records' button (simultaneously start your
stopwatch if using one)
15) When the page appears showing completion of the change, stop your stopwatch
and check the time or navigate to the folder you have set NYTProf to
output.
16) Record the runtime. This is the pre-optimisation time.
17) If this is the pre-patch test then you should see lots of messages like:
"The biblio  has successfully been modified."
If this is the post-patch test then you should see only:
"All records have successfully been modified!"
and a link to do another record modification.
18) Apply this patch.
19) Repeat steps 9-12 of this testplan with the patch applied, replacing
ModRec1
in step 11 with ModRec2. This will yield the post-optimisation time. If you
are using NYTProf you will need to apply the -d:NYTProf shebang to the file
again.
20) Compare the pre-optimisation time and post optimisation time. The second
post-optimisation time should be faster.

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 15104] Batch Record Modification Performance Improvement

2015-11-04 Thread bugzilla-daemon
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15104

cnorthcott.w...@gmail.com changed:

   What|Removed |Added

   Patch complexity|--- |Small patch
 Status|NEW |Needs Signoff

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 15104] Batch Record Modification Performance Improvement

2015-11-01 Thread bugzilla-daemon
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15104

--- Comment #1 from cnorthcott.w...@gmail.com ---
The modification test case was for 2300 records, sorry forgot to update the
value.

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/