IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 16, 2009, 12:39:27 PM (17 years ago)
Author:
Paul Price
Message:

Modifying distribution client workflow (currently composed of receivetool and associated tables) since Bill points out that a fileset is composed of files, and we don't want to download them all serially.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTools/share/pxadmin_create_tables.sql

    r23880 r23885  
    13171317) ENGINE=innodb DEFAULT CHARSET=latin1;
    13181318
    1319 -- Run for receiving files
    1320 CREATE TABLE receiveRun (
    1321     receive_id BIGINT AUTO_INCREMENT, -- unique identifier
     1319-- Filesets to receive
     1320CREATE TABLE receiveFileset (
     1321    fileset_id BIGINT AUTO_INCREMENT, -- unique identifier
    13221322    source_id BIGINT NOT NULL,  -- link to receiveSource
    13231323    fileset VARCHAR(128) NOT NULL, -- fileset to receive
    1324     PRIMARY KEY(receive_id),
     1324    PRIMARY KEY(fileset_id),
    13251325    KEY(source_id),
    13261326    FOREIGN KEY(source_id) REFERENCES receiveSource(source_id)
    13271327) ENGINE=innodb DEFAULT CHARSET=latin1;
    13281328
     1329-- Files to receive
     1330CREATE TABLE receiveFile (
     1331    file_id BIGINT AUTO_INCREMENT, -- unique identifier
     1332    fileset_id BIGINT NOT NULL,  -- link to receiveFileset
     1333    file VARCHAR(128) NOT NULL, -- file to receive
     1334    PRIMARY KEY(file_id),
     1335    KEY(fileset_id),
     1336    FOREIGN KEY(fileset_id) REFERENCES receiveFileset(fileset_id)
     1337) ENGINE=innodb DEFAULT CHARSET=latin1;
     1338
    13291339-- Result of receiving files
    13301340CREATE TABLE receiveResult (
    1331     receive_id BIGINT AUTO_INCREMENT, -- unique identifier, link to receiveRun
     1341    file_id BIGINT AUTO_INCREMENT, -- link to receiveFile
    13321342    dtime_copy FLOAT,           -- Time to copy
    13331343    dtime_extract FLOAT,        -- Time to extract
    13341344    fault SMALLINT NOT NULL DEFAULT 0, -- Fault code
    1335     PRIMARY KEY(receive_id),
    1336     KEY(fault),
    1337     FOREIGN KEY(receive_id) REFERENCES receiveRun(receive_id)
     1345    PRIMARY KEY(file_id),
     1346    KEY(fault),
     1347    FOREIGN KEY(file_id) REFERENCES receiveFile(file_id)
    13381348) ENGINE=innodb DEFAULT CHARSET=latin1;
    13391349
Note: See TracChangeset for help on using the changeset viewer.