mirror of
https://github.com/pretix/pretix.git
synced 2026-08-17 11:56:27 +00:00
This is a follow-up for #6318, basically the same problem but in a neighboring query. Performance comparison for real-world event with 13k subevents: In [15]: %time get_grouped_items(e, subevent=se, channel=e.organizer.sales_channels.get(identifier="web")) CPU times: user 49.1 ms, sys: 3.79 ms, total: 52.9 ms Wall time: 1.12 s Out[15]: ([<Item: xxx>], True In [16]: %time get_grouped_items_patched(e, subevent=se, channel=e.organizer.sales_channels.get(identifier="web")) CPU times: user 30.2 ms, sys: 445 μs, total: 30.6 ms Wall time: 45.3 ms Out[16]: ([<Item: xxx>], True)