Skip to content

Commit b105709

Browse files
authored
Update DevelopersTips.md
1 parent 45815db commit b105709

1 file changed

Lines changed: 25 additions & 20 deletions

File tree

doc/DevelopersTips.md

Lines changed: 25 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -443,33 +443,13 @@ Query the paths that were edited during a run for a detector:
443443
select path from ccdb, ccdb_paths where ccdb_paths.pathid = ccdb.pathid AND ccdb.metadata -> '1048595860' in ('539908') and ccdb_paths.path like 'qc/MCH%';
444444
```
445445

446-
Number of objects in a path
447-
```sql
448-
select count(distinct ccdb_paths.pathid) from ccdb, ccdb_paths where ccdb_paths.pathid = ccdb.pathid AND ccdb_paths.path like 'qc/%';
449-
```
450-
451446
Number of versions: check the web interface of the qcdb.
452447

453-
List the tasks and the number of objects for each (in a number of runs)
454-
```sql
455-
select substring(path from '^qc\/\w*\/MO\/\w*\/') as task, count(distinct path) from ccdb, ccdb_paths where ccdb_paths.pathid = ccdb.pathid AND ccdb.metadata -> '1048595860' in ('539908') group by task;
456-
```
457-
458448
List the tasks of a certain class in a certain run
459449
```
460450
select substring(path from '^qc\/\w*\/MO\/\w*\/') as task from ccdb, ccdb_paths where ccdb_paths.pathid = ccdb.pathid AND ccdb.metadata -> '1048595860' in ('539908') and ccdb.metadata -> '809471350' = 'o2::quality_control::postprocessing::SliceTrendingTask' group by task;
461451
```
462452

463-
List the detectors and the number of objects for each (in a list of runs)
464-
```sql
465-
select substring(path from '^qc\/\w*\/MO\/') as task, count(distinct path) from ccdb, ccdb_paths where ccdb_paths.pathid = ccdb.pathid AND ccdb.metadata -> '1048595860' in ('541814','541620','541616','541600','541599','541598','541597','541595','541486','541485','541468','541466','540894','540893','540888','540887','540884','540882','540881','540879','540855','540854','540852','540851','540848','540847','540846','540834','540831','540825','540824','540781','540778','540766','540721','540711','540646','540644','540643','540602') group by task;
466-
```
467-
468-
List the detectors and the number of versions
469-
```sql
470-
select substring(path from '^qc\/\w*\/') as task, count( path) from ccdb, ccdb_paths where ccdb_paths.pathid = ccdb.pathid AND ccdb.metadata -> '1048595860' in ('541814','541620','541616','541600','541599','541598','541597','541595','541486','541485','541468','541466','540894','540893','540888','540887','540884','540882','540881','540879','540855','540854','540852','540851','540848','540847','540846','540834','540831','540825','540824','540781','540778','540766','540721','540711','540646','540644','540643','540602') group by task;
471-
```
472-
473453
List average number of version per run per detector ?
474454

475455
```sql
@@ -484,6 +464,31 @@ FROM (SELECT substring(ccdb_paths.path from '^qc\/\w*\/') as task,
484464
) subquery ;
485465
```
486466

467+
#### for the review
468+
469+
Get the total number of versions and size from QCDB.
470+
471+
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
472+
```sql
473+
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;
474+
```
475+
476+
List the detectors and the number of versions (Qo+MO)
477+
```sql
478+
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;
479+
```
480+
481+
List the tasks and the number of objects for each (in a number of runs)
482+
```sql
483+
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;
484+
```
485+
Replace the | with tab in a text editor and paste in Excel to then manipulate it to know the number of tasks per det.
486+
487+
Total number of paths
488+
```sql
489+
select count(distinct ccdb_paths.pathid) from ccdb, ccdb_paths where ccdb_paths.pathid = ccdb.pathid AND ccdb_paths.path like 'qc/%';
490+
```
491+
487492
### Merge and upload QC results for all subjobs of a grid job
488493

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

0 commit comments

Comments
 (0)