mirror of
https://github.com/zvx-echo6/central.git
synced 2026-05-22 02:24:38 +02:00
5 lines
228 B
MySQL
5 lines
228 B
MySQL
|
|
-- Migration 014: Add composite index for cursor-based pagination
|
||
|
|
-- Supports ORDER BY (time DESC, id DESC) with efficient range queries
|
||
|
|
|
||
|
|
CREATE INDEX IF NOT EXISTS events_time_id_desc_idx
|
||
|
|
ON public.events (time DESC, id DESC);
|