[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Koha-cvs] CVS: koha/C4 Biblio.pm,1.114,1.115
From: |
Paul POULAIN |
Subject: |
[Koha-cvs] CVS: koha/C4 Biblio.pm,1.114,1.115 |
Date: |
Thu, 06 Jan 2005 06:32:20 -0800 |
Update of /cvsroot/koha/koha/C4
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15653/C4
Modified Files:
Biblio.pm
Log Message:
improvement of speed for bulkmarcimport.
A sub had been forgotten to use the C4::Context->marcfromkohafield array, that
caches DB datas.
this is only a little improvement for normal DB modif, but almost x2 the speed
of bulkmarcimport... from 6records/seconds to more than 10.
Index: Biblio.pm
===================================================================
RCS file: /cvsroot/koha/koha/C4/Biblio.pm,v
retrieving revision 1.114
retrieving revision 1.115
diff -C2 -r1.114 -r1.115
*** Biblio.pm 3 Jan 2005 10:48:33 -0000 1.114
--- Biblio.pm 6 Jan 2005 14:32:17 -0000 1.115
***************
*** 1135,1140 ****
my $tagfield;
my $subfield;
! $sth->execute($frameworkcode, $kohatable . "." . $kohafield );
! ( $tagfield, $subfield ) = $sth->fetchrow;
foreach my $field ( $record->field($tagfield) ) {
if ( $field->subfield($subfield) ) {
--- 1135,1139 ----
my $tagfield;
my $subfield;
! ( $tagfield, $subfield ) =
MARCfind_marc_from_kohafield("",$kohatable.".".$kohafield,$frameworkcode);
foreach my $field ( $record->field($tagfield) ) {
if ( $field->subfield($subfield) ) {
***************
*** 2635,2638 ****
--- 2634,2642 ----
# $Id$
# $Log$
+ # Revision 1.115 2005/01/06 14:32:17 tipaul
+ # improvement of speed for bulkmarcimport.
+ # A sub had been forgotten to use the C4::Context->marcfromkohafield array,
that caches DB datas.
+ # this is only a little improvement for normal DB modif, but almost x2 the
speed of bulkmarcimport... from 6records/seconds to more than 10.
+ #
# Revision 1.114 2005/01/03 10:48:33 tipaul
# * bugfix for the search on a MARC detail, when you clic on the magnifying
glass (caused an internal server error)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Koha-cvs] CVS: koha/C4 Biblio.pm,1.114,1.115,
Paul POULAIN <=