Skip to content

Commit 69c7893

Browse files
authored
Update DevelopersTips.md
1 parent be7ae7d commit 69c7893

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

doc/DevelopersTips.md

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -455,19 +455,25 @@ FROM (SELECT substring(ccdb_paths.path from '^qc\/\w*\/') as task,
455455

456456
Get the total number of versions and size from QCDB.
457457

458+
This can also be done on the MC machine : http://ali-qcdbmc-gpn.cern.ch:8083/browse/?report=true
459+
Then the metadata for the run number is 1048595861
460+
But of course stuff linked to run numbers won't work.
461+
458462
List the detectors and the number of objects for each (in a list of runs produced in BK), replace MO by QO for the number of quality objects
459463
```sql
460-
select substring(path from '^qc_async\/\w*\/MO\/') as task, count(distinct path) from ccdb, ccdb_paths where ccdb_paths.pathid = ccdb.pathid AND ccdb.metadata -> '1048595860' in ('545367','545345','545312','545311','545289','545262','545249','545246','545223','545222','545210','545185','545184','545171','544991','544968','544963','544947','544917','544896','544886','544868','544813','544794','544742','544693','544583','544582','544551','544549','544518','544491','544476','544474','544454','544391','544389','543873','543872','543818','543734','543733','543732','543536','543515','543469','543467') group by task;
464+
select substring(path from '^qc_async\/\w*\/MO\/') as task, count(distinct path) from ccdb, ccdb_paths where ccdb_paths.pathid = ccdb.pathid AND ccdb.metadata -> '1048595860' in ('557926','557876','557862','557744','555259','555254','555232','555226','555208','555202','555187','555172','555160','555156','555124','555121','555071') group by task;
461465
```
462466

463467
List the detectors and the number of versions (Qo+MO)
464468
```sql
465-
select substring(path from '^qc_async\/\w*\/') as task, count( path) from ccdb, ccdb_paths where ccdb_paths.pathid = ccdb.pathid AND ccdb.metadata -> '1048595860' in ('545367','545345','545312','545311','545289','545262','545249','545246','545223','545222','545210','545185','545184','545171','544991','544968','544963','544947','544917','544896','544886','544868','544813','544794','544742','544693','544583','544582','544551','544549','544518','544491','544476','544474','544454','544391','544389','543873','543872','543818','543734','543733','543732','543536','543515','543469','543467') group by task;
469+
select substring(path from '^qc_async\/\w*\/') as task, count( path) from ccdb, ccdb_paths where ccdb_paths.pathid = ccdb.pathid AND ccdb.metadata -> '1048595860' in ('557926','557876','557862','557744','555259','555254','555232','555226','555208','555202','555187','555172','555160','555156','555124','555121','555071') group by task;
466470
```
467471

468472
List the tasks and the number of objects for each (in a number of runs)
473+
--> this gives the number of tasks in general as well (number of rows)
474+
--> replace MO by QO to see the checks
469475
```sql
470-
select substring(path from '^qc_async\/\w*\/MO\/\w*\/') as task, count(distinct path) from ccdb, ccdb_paths where ccdb_paths.pathid = ccdb.pathid AND ccdb.metadata -> '1048595860' in ('545367','545345','545312','545311','545289','545262','545249','545246','545223','545222','545210','545185','545184','545171','544991','544968','544963','544947','544917','544896','544886','544868','544813','544794','544742','544693','544583','544582','544551','544549','544518','544491','544476','544474','544454','544391','544389','543873','543872','543818','543734','543733','543732','543536','543515','543469','543467') group by task;
476+
select substring(path from '^qc_async\/\w*\/MO\/\w*\/') as task, count(distinct path) from ccdb, ccdb_paths where ccdb_paths.pathid = ccdb.pathid AND ccdb.metadata -> '1048595860' in ('557926','557876','557862','557744','555259','555254','555232','555226','555208','555202','555187','555172','555160','555156','555124','555121','555071') group by task;
471477
```
472478
Replace the | with tab in a text editor and paste in Excel to then manipulate it to know the number of tasks per det.
473479

@@ -476,6 +482,12 @@ Total number of paths
476482
select count(distinct ccdb_paths.pathid) from ccdb, ccdb_paths where ccdb_paths.pathid = ccdb.pathid AND ccdb_paths.path like 'qc/%';
477483
```
478484

485+
Total number of tasks and checks
486+
```sql
487+
select distinct(substring(path from '^qc_mc\/\w*\/MO\/\w*\/')) as task from ccdb_paths;
488+
select distinct(substring(path from '^qc_mc\/\w*\/QO\/\w*\/')) as task from ccdb_paths;
489+
```
490+
479491
### Merge and upload QC results for all subjobs of a grid job
480492

481493
Please keep in mind that the file pattern in Grid could have changed since this was written.

0 commit comments

Comments
 (0)