From: Aaron Date: Wed, 11 Apr 2012 20:11:07 +0000 (-0700) Subject: [FileBackend] Simplified fj_batch_id index X-Git-Tag: 1.31.0-rc.0~23918^2 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/operations/recherche.php?a=commitdiff_plain;h=4e4b11a620da54c62a2f1f33f8ee43a5099b9f5b;p=lhc%2Fweb%2Fwiklou.git [FileBackend] Simplified fj_batch_id index If we want to sort the ops for a batch ID, we can just use a tiny to small filesort. No need to make the index bigger. Change-Id: Ibf7592930ec633a26e675e33d42aebe7763547b1 --- diff --git a/maintenance/archives/patch-filejournal.sql b/maintenance/archives/patch-filejournal.sql index 8c2f6b95c8..114297c6d8 100644 --- a/maintenance/archives/patch-filejournal.sql +++ b/maintenance/archives/patch-filejournal.sql @@ -18,5 +18,5 @@ CREATE TABLE /*_*/filejournal ( fj_timestamp varbinary(14) NOT NULL default '' ); -CREATE INDEX /*i*/fj_batch_id ON /*_*/filejournal (fj_batch_uuid,fj_id); +CREATE INDEX /*i*/fj_batch_id ON /*_*/filejournal (fj_batch_uuid); CREATE INDEX /*i*/fj_timestamp ON /*_*/filejournal (fj_timestamp);