Bug 9207 - Improve z39.50 speed slowdowns for sites with many records
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com> Conflicts: installer/data/mysql/updatedatabase.pl Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
This commit is contained in:
parent
dff0971f1c
commit
8ded1a8bd7
|
|
@ -896,7 +896,8 @@ CREATE TABLE `import_records` (
|
|||
CONSTRAINT `import_records_ifbk_1` FOREIGN KEY (`import_batch_id`)
|
||||
REFERENCES `import_batches` (`import_batch_id`) ON DELETE CASCADE ON UPDATE CASCADE,
|
||||
KEY `branchcode` (`branchcode`),
|
||||
KEY `batch_sequence` (`import_batch_id`, `record_sequence`)
|
||||
KEY `batch_sequence` (`import_batch_id`, `record_sequence`),
|
||||
KEY `batch_id_record_type` (`import_batch_id`,`record_type`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
|
||||
--
|
||||
|
|
|
|||
|
|
@ -6159,6 +6159,16 @@ if ( C4::Context->preference("Version") < TransformToNum($DBversion) ) {
|
|||
SetVersion($DBversion);
|
||||
}
|
||||
|
||||
$DBversion = "3.10.03.003";
|
||||
if ( C4::Context->preference("Version") < TransformToNum($DBversion) ) {
|
||||
$dbh->do(qq{
|
||||
ALTER TABLE import_records ADD INDEX batch_id_record_type ( import_batch_id, record_type );
|
||||
});
|
||||
print "Upgrade to $DBversion done (Bug 9207: Add new index batch_id_record_type to import_records)\n";
|
||||
SetVersion($DBversion);
|
||||
}
|
||||
|
||||
|
||||
=head1 FUNCTIONS
|
||||
|
||||
=head2 TableExists($table)
|
||||
|
|
|
|||
Loading…
Reference in New Issue