DIRAC
DIRAC copied to clipboard
[v8r0] Improve getTransformationFiles performance
This significantly improves the performance of getTransformationFiles by:
- Using a
JOINinstead of manually looking up the LFNs from file IDs - Remove the batching that was needed due to the use of
__getFileIDsForLfns- This is doubly helpful as the use of
OFFSET N LIMIT 10000made the function O(N^2) due to the database having to rebuild and scan the results for every batch.
- This is doubly helpful as the use of
- Giving the option to only get the columns you need
For example in LHCb: this optimises a ~1200 second call to be ~20 seconds.
BEGINRELEASENOTES
*TransformationSystem NEW: CHANGE: Improve getTransformationFiles performance
ENDRELEASENOTES
I've rolled back incorrect commit and added the comment as suggested in https://github.com/DIRACGrid/DIRAC/pull/7812#discussion_r1786417196 so this should be good to go
Sweep summary
Sweep ran in https://github.com/DIRACGrid/DIRAC/actions/runs/11324634755
Successful:
- integration