IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 23885 for trunk/dbconfig


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.

Location:
trunk/dbconfig
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/dbconfig/changes.txt

    r23881 r23885  
    10481048) ENGINE=innodb DEFAULT CHARSET=latin1;
    10491049
    1050 -- Run for receiving files
    1051 CREATE TABLE receiveRun (
    1052     receive_id BIGINT AUTO_INCREMENT, -- unique identifier
     1050-- Filesets to receive
     1051CREATE TABLE receiveFileset (
     1052    fileset_id BIGINT AUTO_INCREMENT, -- unique identifier
    10531053    source_id BIGINT NOT NULL,  -- link to receiveSource
    10541054    fileset VARCHAR(128) NOT NULL, -- fileset to receive
    1055     PRIMARY KEY(receive_id),
     1055    PRIMARY KEY(fileset_id),
    10561056    KEY(source_id),
    10571057    FOREIGN KEY(source_id) REFERENCES receiveSource(source_id)
    10581058) ENGINE=innodb DEFAULT CHARSET=latin1;
    10591059
     1060-- Files to receive
     1061CREATE TABLE receiveFile (
     1062    file_id BIGINT AUTO_INCREMENT, -- unique identifier
     1063    fileset_id BIGINT NOT NULL,  -- link to receiveFileset
     1064    file VARCHAR(128) NOT NULL, -- file to receive
     1065    PRIMARY KEY(file_id),
     1066    KEY(fileset_id),
     1067    FOREIGN KEY(fileset_id) REFERENCES receiveFileset(fileset_id)
     1068) ENGINE=innodb DEFAULT CHARSET=latin1;
     1069
    10601070-- Result of receiving files
    10611071CREATE TABLE receiveResult (
    1062     receive_id BIGINT AUTO_INCREMENT, -- unique identifier, link to receiveRun
     1072    file_id BIGINT AUTO_INCREMENT, -- link to receiveFile
    10631073    dtime_copy FLOAT,           -- Time to copy
    10641074    dtime_extract FLOAT,        -- Time to extract
    10651075    fault SMALLINT NOT NULL DEFAULT 0, -- Fault code
    1066     PRIMARY KEY(receive_id),
     1076    PRIMARY KEY(file_id),
    10671077    KEY(fault),
    1068     FOREIGN KEY(receive_id) REFERENCES receiveRun(receive_id)
     1078    FOREIGN KEY(file_id) REFERENCES receiveFile(file_id)
    10691079) ENGINE=innodb DEFAULT CHARSET=latin1;
  • trunk/dbconfig/receive.md

    r23880 r23885  
    1010END
    1111
    12 receiveRun      METADATA
    13         receive_id      S64     0       # Primary Key AUTO_INCREMENT
     12receiveFileset  METADATA
     13        fileset_id      S64     0       # Primary Key AUTO_INCREMENT
    1414        source_id       S64     0       # Key fkey (source_id) ref receiveSource(source_id)
    1515        fileset         STR     128
    1616END
    1717
     18receiveFile     METADATA
     19        file_id         S64     0       # Primary Key AUTO_INCREMENT
     20        fileset_id      S64     0       # Key fkey (fileset_id) ref receiveFileset(fileset_id)
     21        file            STR     128
     22END
     23
    1824receiveResult   METADATA
    19         receive_id      S64     0       # Primary Key fkey (receive_id) ref receiveRun(receive_id)
     25        file_id         S64     0       # Primary Key fkey (file_id) ref receiveFile(file_id)
    2026        dtime_copy      F32     0.0
    2127        dtime_extract   F32     0.0
    2228        fault           S32     0       # Key
    2329END
    24 
Note: See TracChangeset for help on using the changeset viewer.