A couple of Bluesky feeds focused around PDSes

Reorder and recreate indexes

TIL that the column orders matter quite a lot.

Changed files
+6
common
+6
common/db.ts
··· 21 21 ); 22 22 INSERT INTO state (id) VALUES (1);`, 23 23 `CREATE INDEX posts_indexed_idx ON posts(indexed_at, cid);`, 24 + `DROP INDEX authors_pds_idx; 25 + CREATE INDEX authors_pds_idx ON authors (pds, did); 26 + DROP INDEX posts_indexed_idx; 27 + CREATE INDEX posts_indexed_idx ON posts(indexed_at DESC, cid DESC, uri); 28 + DROP INDEX posts_author_idx; 29 + CREATE INDEX posts_author_idx ON posts (author, indexed_at DESC, cid DESC, uri);` 24 30 ]; 25 31 26 32 const db = new Database(Deno.env.get("DB") ?? ":memory:", {