We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b170758 commit 81937e0Copy full SHA for 81937e0
1 file changed
backend/src/osspckgs/migrations/V1784745489__sequin_backfill_sort_column_indexes.sql
@@ -1,9 +1,3 @@
1
--- Sequin backfills paginate with a keyset cursor of (sort column, primary key),
2
--- e.g. WHERE ("last_synced_at", "id", "package_id") >= ($1, $2, $3) ORDER BY ... LIMIT n.
3
--- Without these indexes every page is a full sort (28M+ rows on versions,
4
--- 44M+ on package_dependencies) and hits Sequin's per-query timeout.
5
--- CONCURRENTLY relies on flyway's -mixed=true to run outside a transaction.
6
-
7
CREATE INDEX CONCURRENTLY IF NOT EXISTS versions_last_synced_at_id_package_id_idx
8
ON versions (last_synced_at, id, package_id);
9
0 commit comments