mirror of
https://github.com/djdevin/recflare.git
synced 2026-09-08 22:51:30 -07:00
[api] another events endpoint
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
-- The room_id index behind a room's event shelf (`GET /api/playerevents/v1/room/{roomId}`).
|
||||
-- Owned by the `api` worker; generated from src/events-db.ts (SCHEMA_DDL) — keep in sync.
|
||||
--
|
||||
-- The column itself has been on the `event` table since 0006; only the index is new. The
|
||||
-- club feed has had one since that migration and the room feed now reads the same way, so
|
||||
-- without this a room's shelf scans every event in the database.
|
||||
|
||||
CREATE INDEX IF NOT EXISTS idx_event_room ON event (room_id);
|
||||
Reference in New Issue
Block a user