···4141 table.type,
4242 table.updatedAt.desc(),
4343 ),
4444- // Index for getLibrariesForUrl - fast URL+type lookups
4444+ // Index for getLibrariesForUrl and getCollectionsWithUrl - fast URL+type lookups
4545 urlTypeIdx: index('idx_cards_url_type').on(table.url, table.type),
4646 // Partial index for finding NOTE cards by parent - only indexes NOTE type cards
4747 parentTypeIdx: index('idx_cards_parent_type')
···107107 ON cards(type, updated_at DESC)
108108 `);
109109110110- // Covering index for getLibrariesForUrl - fast URL+type lookups with card ID included
110110+ // Index for getLibrariesForUrl and getCollectionsWithUrl - fast URL+type lookups with card ID included
111111 await db.execute(sql`
112112 CREATE INDEX IF NOT EXISTS idx_cards_url_type
113113 ON cards(url, type) INCLUDE (id)
···139139 CREATE INDEX IF NOT EXISTS idx_feed_activities_actor_id ON feed_activities(actor_id);
140140 `);
141141142142- // Index for efficient AT URI lookups
142142+ // Index for efficient AT URI look ups
143143 await db.execute(sql`
144144 CREATE INDEX IF NOT EXISTS published_records_uri_idx ON published_records(uri);
145145 `);