From: Aaron Schulz Date: Wed, 4 Apr 2012 00:24:44 +0000 (-0700) Subject: Reduced file journal index bloat by removing indexes that would only be X-Git-Tag: 1.31.0-rc.0~24035^2 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/supprimer.php?a=commitdiff_plain;h=4e811c0c7fc82313ce47080bd269983c47a7cef3;p=lhc%2Fweb%2Fwiklou.git Reduced file journal index bloat by removing indexes that would only be used in rare cases and where we'd almost always only be interested in very recent entries only (timestamp is indexed). This should decrease insertion time a bit. Change-Id: Idb33ee3229315c44b764a8ed476afe8760f5595c --- diff --git a/maintenance/archives/patch-filejournal.sql b/maintenance/archives/patch-filejournal.sql index b7a7d09f7b..8c2f6b95c8 100644 --- a/maintenance/archives/patch-filejournal.sql +++ b/maintenance/archives/patch-filejournal.sql @@ -19,6 +19,4 @@ CREATE TABLE /*_*/filejournal ( ); CREATE INDEX /*i*/fj_batch_id ON /*_*/filejournal (fj_batch_uuid,fj_id); -CREATE INDEX /*i*/fj_path_id ON /*_*/filejournal (fj_path_sha1,fj_id); -CREATE INDEX /*i*/fj_new_sha1 ON /*_*/filejournal (fj_new_sha1,fj_id); CREATE INDEX /*i*/fj_timestamp ON /*_*/filejournal (fj_timestamp);