Covering index for website_event and query optimization

This commit is contained in:
Andreas Hocevar 2026-01-20 10:50:55 +01:00
parent 860e6390f1
commit 23cbff30f0
No known key found for this signature in database
GPG key ID: F7FA44133EB59BCD
5 changed files with 93 additions and 32 deletions

View file

@ -0,0 +1,2 @@
-- CreateIndex
CREATE INDEX "website_event_website_id_created_at_event_type_session_id_idx" ON "website_event"("website_id", "created_at", "event_type", "session_id");