diff options
| author | Mohamed Bassem <me@mbassem.com> | 2024-11-08 23:01:58 +0000 |
|---|---|---|
| committer | Mohamed Bassem <me@mbassem.com> | 2024-11-08 23:01:58 +0000 |
| commit | 8f44c81b52c8ef5999929c225b3f883d00c157ec (patch) | |
| tree | 4e3a2f33ab2a77492f560deafa50f211917a91ce /packages/db/schema.ts | |
| parent | cbaa0338f448f2405b4458089abd2799ba57983f (diff) | |
| download | karakeep-8f44c81b52c8ef5999929c225b3f883d00c157ec.tar.zst | |
fix: Fix slow AllTags page because of misconfigured tagId index. Fixes #528
Diffstat (limited to 'packages/db/schema.ts')
| -rw-r--r-- | packages/db/schema.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/db/schema.ts b/packages/db/schema.ts index 12255cfb..b3b3759c 100644 --- a/packages/db/schema.ts +++ b/packages/db/schema.ts @@ -264,7 +264,7 @@ export const tagsOnBookmarks = sqliteTable( }, (tb) => ({ pk: primaryKey({ columns: [tb.bookmarkId, tb.tagId] }), - tagIdIdx: index("tagsOnBookmarks_tagId_idx").on(tb.bookmarkId), + tagIdIdx: index("tagsOnBookmarks_tagId_idx").on(tb.tagId), bookmarkIdIdx: index("tagsOnBookmarks_bookmarkId_idx").on(tb.bookmarkId), }), ); |
