Orders API: optimize a common filter query

This commit is contained in:
Raphael Michel
2021-05-18 09:08:50 +02:00
parent f19a74990f
commit e19d79a2bf
2 changed files with 16 additions and 13 deletions

View File

@@ -45,6 +45,8 @@ Here is the currently recommended set of commands::
CREATE INDEX CONCURRENTLY pretix_addidx_order_comment
ON pretixbase_order
USING gin (upper("comment") gin_trgm_ops);
CREATE INDEX CONCURRENTLY pretix_addidx_order_event_date
ON public.pretixbase_order (event_id, datetime DESC);
CREATE INDEX CONCURRENTLY pretix_addidx_orderpos_name
ON pretixbase_orderposition
USING gin (upper("attendee_name_cached") gin_trgm_ops);