Changeset 31083 for branches/eam_branches/ipp-20110213/ippTools/share
- Timestamp:
- Mar 30, 2011, 9:36:02 AM (15 years ago)
- Location:
- branches/eam_branches/ipp-20110213/ippTools/share
- Files:
-
- 11 edited
-
camtool_find_pendingimfile.sql (modified) (1 prop)
-
faketool_pendingimfile.sql (modified) (1 diff)
-
pstamptool_pendingdependent.sql (modified) (1 diff)
-
pxadmin_create_tables.sql (modified) (8 diffs, 1 prop)
-
pztool_find_completed_exp.sql (modified) (2 diffs)
-
pztool_pendingimfile.sql (modified) (1 diff)
-
regtool_checkburntoolimfile.sql (modified) (1 diff)
-
regtool_checkstatus.sql (modified) (1 diff)
-
regtool_pendingburntoolimfile.sql (modified) (1 diff)
-
regtool_pendingexp.sql (modified) (1 diff)
-
warptool_scmap.sql (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20110213/ippTools/share/camtool_find_pendingimfile.sql
- Property svn:mergeinfo changed (with no actual effect on merging)
-
branches/eam_branches/ipp-20110213/ippTools/share/faketool_pendingimfile.sql
r24414 r31083 28 28 JOIN camProcessedExp USING(cam_id) 29 29 JOIN chipRun USING(chip_id) 30 JOIN chipProcessedImfile USING(chip_id )31 JOIN rawExp 32 ON chipProcessedImfile.exp_id = rawExp.exp_id30 JOIN chipProcessedImfile USING(chip_id,exp_id) 31 JOIN rawExp USING(exp_id) 32 -- ON chipProcessedImfile.exp_id = rawExp.exp_id 33 33 LEFT JOIN fakeProcessedImfile 34 34 ON fakeRun.fake_id = fakeProcessedImfile.fake_id -
branches/eam_branches/ipp-20110213/ippTools/share/pstamptool_pendingdependent.sql
r29564 r31083 1 1 SELECT DISTINCT 2 2 pstampDependent.*, 3 concat( pstampDependent.outdir, '/checkdep.', dep_id, '.log') as logfile, 3 4 IFNULL(Label.priority, 10000) AS priority 4 5 FROM pstampDependent -
branches/eam_branches/ipp-20110213/ippTools/share/pxadmin_create_tables.sql
- Property svn:mergeinfo changed
/trunk/ippTools/share/pxadmin_create_tables.sql merged: 30945,31038
r30812 r31083 14 14 15 15 CREATE TABLE summitExp ( 16 summit_id BIGINT NOT NULL AUTO_INCREMENT, 16 17 exp_name VARCHAR(64), 17 18 camera VARCHAR(64), … … 23 24 fault SMALLINT NOT NULL, 24 25 epoch TIMESTAMP DEFAULT CURRENT_TIMESTAMP, 25 PRIMARY KEY(exp_name, camera, telescope), 26 PRIMARY KEY(summit_id), 27 KEY(exp_name, camera, telescope), 26 28 KEY(fault) 27 29 ) ENGINE=innodb DEFAULT CHARSET=latin1; 28 30 29 31 CREATE TABLE summitImfile ( 32 summit_id BIGINT, 30 33 exp_name VARCHAR(64), 31 34 camera VARCHAR(64), … … 38 41 uri VARCHAR(255), 39 42 epoch TIMESTAMP DEFAULT CURRENT_TIMESTAMP, 40 PRIMARY KEY(exp_name, camera, telescope, class, class_id), 43 PRIMARY KEY(summit_id, class, class_id), 44 KEY(exp_name, camera, telescope, class, class_id), 41 45 KEY(file_id), 46 FOREIGN KEY(summit_id) REFERENCES summitExp(summit_id), 42 47 FOREIGN KEY(exp_name, camera, telescope) REFERENCES summitExp(exp_name, camera, telescope) 43 48 ) ENGINE=innodb DEFAULT CHARSET=latin1; 44 49 45 50 CREATE TABLE pzDownloadExp ( 51 summit_id BIGINT, 46 52 exp_name VARCHAR(64), 47 53 camera VARCHAR(64), … … 49 55 state VARCHAR(64), 50 56 epoch TIMESTAMP DEFAULT CURRENT_TIMESTAMP, 51 PRIMARY KEY(exp_name, camera, telescope), 57 PRIMARY KEY(summit_id), 58 KEY(exp_name, camera, telescope), 52 59 KEY(state), 60 FOREIGN KEY(summit_id) REFERENCES summitExp(summit_id), 53 61 FOREIGN KEY(exp_name, camera, telescope) REFERENCES summitExp(exp_name, camera, telescope) 54 62 ) ENGINE=innodb DEFAULT CHARSET=latin1; 55 63 56 64 CREATE TABLE pzDownloadImfile ( 65 summit_id BIGINT, 57 66 exp_name VARCHAR(64), 58 67 camera VARCHAR(64), … … 66 75 bytes INT, 67 76 md5sum VARCHAR(32), 68 PRIMARY KEY(exp_name, camera, telescope, class, class_id), 69 KEY(fault), 77 PRIMARY KEY(summit_id, class, class_id), 78 KEY(exp_name, camera, telescope, class, class_id), 79 KEY(fault), 80 FOREIGN KEY(summit_id) REFERENCES pzDownloadExp(summit_id), 81 FOREIGN KEY(summit_id, class, class_id) REFERENCES summitImfile(summit_id, class, class_id), 70 82 FOREIGN KEY (exp_name, camera, telescope) REFERENCES pzDownloadExp(exp_name, camera, telescope), 71 83 FOREIGN KEY(exp_name, camera, telescope, class, class_id) REFERENCES summitImfile(exp_name, camera, telescope, class, class_id) … … 74 86 CREATE TABLE newExp ( 75 87 exp_id BIGINT AUTO_INCREMENT, 88 summit_id BIGINT, 76 89 tmp_exp_name VARCHAR(64), 77 90 tmp_camera VARCHAR(64), … … 88 101 PRIMARY KEY(exp_id), 89 102 KEY(exp_id), 103 KEY(summit_id), 90 104 KEY(tmp_exp_name), 91 105 KEY(tmp_camera), … … 1040 1054 dtime_match_mean FLOAT, 1041 1055 dtime_match_stdev FLOAT, 1056 dtime_convolve FLOAT, 1042 1057 dtime_initial FLOAT, 1043 1058 dtime_reject FLOAT, - Property svn:mergeinfo changed
-
branches/eam_branches/ipp-20110213/ippTools/share/pztool_find_completed_exp.sql
r23643 r31083 1 1 SELECT DISTINCT 2 summit_id, 2 3 exp_name, 3 4 camera, … … 13 14 FROM pzDownloadExp 14 15 JOIN summitExp 15 USING( exp_name, camera, telescope)16 USING(summit_id) 16 17 LEFT JOIN pzDownloadImfile 17 USING( exp_name, camera, telescope)18 USING(summit_id) 18 19 LEFT JOIN newExp 19 ON pzDownloadExp.exp_name = newExp.tmp_exp_name 20 AND pzDownloadExp.camera = newExp.tmp_camera 21 AND pzDownloadExp.telescope = newExp.tmp_telescope 20 USING(summit_id) 22 21 WHERE 23 22 pzDownloadExp.state = 'run' 23 AND newExp.summit_id IS NULL 24 24 AND newExp.tmp_exp_name IS NULL 25 25 AND newExp.tmp_camera IS NULL 26 26 AND newExp.tmp_telescope IS NULL 27 27 GROUP BY 28 pzDownloadExp.exp_name, 29 pzDownloadExp.camera, 30 pzDownloadExp.telescope 28 pzDownloadExp.summit_id 31 29 -- it doesn't matter which field in pzDownloadImfile we count as we've 32 30 -- already Download a group by -
branches/eam_branches/ipp-20110213/ippTools/share/pztool_pendingimfile.sql
r18305 r31083 6 6 FROM summitImfile 7 7 JOIN pzDownloadExp 8 USING(exp_name, camera, telescope)8 USING(summit_id) 9 9 LEFT JOIN pzDownloadImfile 10 USING( exp_name, camera, telescope, class, class_id)10 USING(summit_id, class, class_id) 11 11 JOIN summitExp 12 USING(exp_name, camera, telescope)12 USING(summit_id) 13 13 WHERE 14 14 pzDownloadExp.state = 'run' 15 AND pzDownloadImfile.summit_id IS NULL 15 16 AND pzDownloadImfile.exp_name IS NULL 16 17 AND pzDownloadImfile.camera IS NULL -
branches/eam_branches/ipp-20110213/ippTools/share/regtool_checkburntoolimfile.sql
r30283 r31083 21 21 FROM 22 22 summitExp 23 JOIN summitImfile USING( exp_name)24 LEFT JOIN pzDownloadExp USING( exp_name)25 LEFT JOIN newExp ON summitExp.exp_name = tmp_exp_name23 JOIN summitImfile USING(summit_id) 24 LEFT JOIN pzDownloadExp USING(summit_id) 25 LEFT JOIN newExp USING(summit_id) 26 26 LEFT JOIN newImfile ON (summitImfile.class_id = newImfile.tmp_class_id AND newExp.exp_id = newImfile.exp_id) 27 27 LEFT JOIN rawExp ON rawExp.exp_id = newExp.exp_id -
branches/eam_branches/ipp-20110213/ippTools/share/regtool_checkstatus.sql
r30352 r31083 20 20 (rawImfile.burntool_state IS NOT NULL) AS is_registered 21 21 FROM summitExp 22 JOIN summitImfile USING( exp_name)23 LEFT JOIN pzDownloadExp USING( exp_name)24 LEFT JOIN newExp ON summitExp.exp_name = tmp_exp_name22 JOIN summitImfile USING(summit_id) 23 LEFT JOIN pzDownloadExp USING(summit_id) 24 LEFT JOIN newExp USING(summit_id) 25 25 LEFT JOIN newImfile ON (summitImfile.class_id = newImfile.tmp_class_id AND newExp.exp_id = newImfile.exp_id) 26 26 LEFT JOIN rawExp ON rawExp.exp_id = newExp.exp_id 27 LEFT JOIN rawImfile ON (rawImfile.exp_id = rawExp.exp_id AND rawImfile.tmp_class_id = newImfile.tmp_class_id)27 LEFT JOIN rawImfile ON (rawImfile.exp_id = newExp.exp_id AND rawImfile.tmp_class_id = newImfile.tmp_class_id) 28 28 WHERE 29 29 summitImfile.class_id = '@CLASS_ID@' -
branches/eam_branches/ipp-20110213/ippTools/share/regtool_pendingburntoolimfile.sql
r30283 r31083 22 22 FROM 23 23 summitExp 24 JOIN summitImfile USING( exp_name)25 LEFT JOIN pzDownloadExp USING( exp_name)26 LEFT JOIN newExp ON summitExp.exp_name = tmp_exp_name24 JOIN summitImfile USING(summit_id) 25 LEFT JOIN pzDownloadExp USING(summit_id) 26 LEFT JOIN newExp USING(summit_id) 27 27 LEFT JOIN newImfile ON (summitImfile.class_id = newImfile.tmp_class_id AND newExp.exp_id = newImfile.exp_id) 28 28 LEFT JOIN rawExp ON rawExp.exp_id = newExp.exp_id -
branches/eam_branches/ipp-20110213/ippTools/share/regtool_pendingexp.sql
r30462 r31083 1 1 SELECT DISTINCT 2 summit_id, 2 3 exp_id, 3 4 tmp_exp_name, -
branches/eam_branches/ipp-20110213/ippTools/share/warptool_scmap.sql
r30566 r31083 4 4 chipProcessedImfile.path_base as chip_path_base, 5 5 camProcessedExp.path_base as cam_path_base, 6 camProcessedExp.fault as cam_fault, 6 7 chipProcessedImfile.chip_id, 7 8 chipRun.state,
Note:
See TracChangeset
for help on using the changeset viewer.
