The redesigning of the BKP filtering system for performance
The redesigning of the BKP filtering system for performance
Samenvatting
The Bookkeeping application (BKP) at CERN manages experimental and operational data
generated by the ALICE experiment at the Large Hadron Collider. With data volumes expected to
grow significantly during Run 4, performance inefficiencies in the application's filtering system risk
reducing responsiveness and usability. In this report, the causes of these inefficiencies are
investigated and improvements implemented at both the front-end and back-end are presented.
The root causes were identified as an overly reactive front-end, which generates excessive back-end
requests through incremental user input and lack of filter persistence, and a non-optimised back-end
that fetches all database columns regardless of necessity.
On the back-end, a summary view approach for selective column retrieval was designed and
implemented, defining dedicated attribute sets per use case to prevent unnecessary data from being
fetched. Benchmarking showed latency reductions of 12% to 55% across evaluated endpoints, with
the largest gains on wide tables with many joined associations.
On the front-end, changes to filter input components reduced redundant request generation by a
combined 10.34% over baseline. A detector registration guard produced the largest measured
reduction at 95.44%, though real-world impact is expected to be more modest. A URL filters feature
was also introduced, encoding complete filter configurations as URL query parameters so that an
entire filter state can be applied in a single request, eliminating the need for users to manually
reconstruct filters.
The implemented improvements reduce data transfer overhead on the back-end and unnecessary
request generation on the front-end, improving the filtering system's ability to handle the data growth
expected during Run 4.

| Organisatie | |
| Opleiding | |
| Afdeling | |
| Datum | 2024-05-26 |
| Type | |
| Taal | Onbekend |



























