Skip to content
Snippets Groups Projects
Commit 6d2c3b4d authored by Giuseppe Lo Presti's avatar Giuseppe Lo Presti
Browse files

Still part of the previous commit: we can't use temporary tables...

parent 150b9999
No related branches found
No related tags found
No related merge requests found
......@@ -97,20 +97,11 @@ CREATE INDEX I_seg_metadata_tapesum ON Cns_seg_metadata (vid, s_fileid, segsize,
CREATE GLOBAL TEMPORARY TABLE Cns_files_exist_tmp
(tmpFileId NUMBER) ON COMMIT DELETE ROWS;
-- Temporary tables to store intermediate data to be passed from/to the stager.
-- We keep the data on commit and truncate it explicitly afterwards as we
-- want to use it over multiple commits (e.g. on bulk multi-file operations).
CREATE GLOBAL TEMPORARY TABLE SetSegmentsForFilesHelper
(reqId VARCHAR2(36),
fileId NUMBER, lastModTime NUMBER, copyNo NUMBER, oldCopyNo NUMBER, transfSize NUMBER,
comprSize NUMBER, vid VARCHAR2(6), fseq NUMBER, blockId RAW(4), checksumType VARCHAR2(16), checksum NUMBER)
ON COMMIT PRESERVE ROWS;
CREATE INDEX I_SetSegsHelper_ReqId ON SetSegmentsForFilesHelper(reqId);
CREATE GLOBAL TEMPORARY TABLE ResultsLogHelper
(reqId VARCHAR2(36),
timeinfo NUMBER, ec INTEGER, fileId NUMBER, msg VARCHAR2(2048), params VARCHAR2(4000))
ON COMMIT PRESERVE ROWS;
CREATE INDEX I_ResultsLogHelper_ReqId ON ResultsLogHelper(reqId);
-- Tables to store intermediate data to be passed from/to the stager.
-- Note that we cannot use temporary tables with distributed transactions.
CREATE TABLE SetSegmentsForFilesHelper
(reqId VARCHAR2(36), fileId NUMBER, lastModTime NUMBER, copyNo NUMBER, oldCopyNo NUMBER, transfSize NUMBER,
comprSize NUMBER, vid VARCHAR2(6), fseq NUMBER, blockId RAW(4), checksumType VARCHAR2(16), checksum NUMBER);
CREATE ResultsLogHelper
(reqId VARCHAR2(36), timeinfo NUMBER, ec INTEGER, fileId NUMBER, msg VARCHAR2(2048), params VARCHAR2(4000));
......@@ -58,23 +58,15 @@ COMMIT;
/* Schema changes go here */
/**************************/
-- Temporary tables to store intermediate data to be passed from/to the stager.
-- We keep the data on commit and truncate it explicitly afterwards as we
-- want to use it over multiple commits (e.g. on bulk multi-file operations).
CREATE GLOBAL TEMPORARY TABLE SetSegmentsForFilesHelper
(reqId VARCHAR2(36),
fileId NUMBER, lastModTime NUMBER, copyNo NUMBER, oldCopyNo NUMBER, transfSize NUMBER,
comprSize NUMBER, vid VARCHAR2(6), fseq NUMBER, blockId RAW(4), checksumType VARCHAR2(16), checksum NUMBER)
ON COMMIT PRESERVE ROWS;
CREATE INDEX I_SetSegsHelper_ReqId ON SetSegmentsForFilesHelper(reqId);
CREATE GLOBAL TEMPORARY TABLE ResultsLogHelper
(reqId VARCHAR2(36),
timeinfo NUMBER, ec INTEGER, fileId NUMBER, msg VARCHAR2(2048), params VARCHAR2(4000))
ON COMMIT PRESERVE ROWS;
-- Tables to store intermediate data to be passed from/to the stager.
-- Note that we cannot use temporary tables with distributed transactions.
CREATE TABLE SetSegmentsForFilesHelper
(reqId VARCHAR2(36), fileId NUMBER, lastModTime NUMBER, copyNo NUMBER, oldCopyNo NUMBER, transfSize NUMBER,
comprSize NUMBER, vid VARCHAR2(6), fseq NUMBER, blockId RAW(4), checksumType VARCHAR2(16), checksum NUMBER);
CREATE INDEX I_ResultsLogHelper_ReqId ON ResultsLogHelper(reqId);
CREATE ResultsLogHelper
(reqId VARCHAR2(36), timeinfo NUMBER, ec INTEGER, fileId NUMBER, msg VARCHAR2(2048), params VARCHAR2(4000));
......
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