UPDATE Version SET VersionId=11;
COMMIT;
-BEGIN;
--- Replace the broken file_fp_idx by a better one
-DROP INDEX file_fp_idx;
-CREATE INDEX file_jpfid_idx on file (jobid, pathid, filenameid);
-ANALYSE;
-COMMIT;
-
-- If you have already this table, you can remove it with:
-- DROP TABLE JobHistory;
);
CREATE INDEX inx61 ON JobHisto (StartTime);
--- Replace the index on (FilenameId, PathId) by (JobId, PathId, FilenameId);
-DROP INDEX IF EXISTS inx4;
-CREATE INDEX IF NOT EXISTS file_jpf_idx ON File (JobId, PathId, FilenameId);
-
-
END-OF-DATA
);
CREATE INDEX inx61 ON JobHisto (StartTime);
--- Replace the index on (FilenameId, PathId) by (JobId, PathId, FilenameId);
-DROP INDEX inx4;
-CREATE INDEX file_jpf_idx ON File (JobId, PathId, FilenameId);
-
END-OF-DATA