Skip to content
Snippets Groups Projects
Commit 0259242c authored by Steven Murray's avatar Steven Murray
Browse files

Added TAPE_FILE_ARCHIVE_FILE_ID_FK index

The reponse rate of the CTA catalogue to "eos rm"
commands was too slow.  The response rate was
around 20Hz when using the CTA/EOS production
database configured with 10 database connections.
The rate has now been increased to 30Hz by adding
the TAPE_FILE_ARCHIVE_FILE_ID_FK index.
parent 28218ad1
No related branches found
No related tags found
No related merge requests found
......@@ -192,6 +192,7 @@ CREATE TABLE TAPE_FILE(
REFERENCES ARCHIVE_FILE(ARCHIVE_FILE_ID),
CONSTRAINT TAPE_FILE_VID_BLOCK_ID_UN UNIQUE(VID, BLOCK_ID)
);
CREATE INDEX TAPE_FILE_ARCHIVE_FILE_ID_FK ON TAPE_FILE(ARCHIVE_FILE_ID);
INSERT INTO CTA_CATALOGUE(
SCHEMA_VERSION_MAJOR,
SCHEMA_VERSION_MINOR)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment