Skip to content

Commit 1b59f04

Browse files
committed
chore(db): mark the document date lookup index concurrent in the schema
1 parent 04f17dc commit 1b59f04

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

‎packages/db/migrations/meta/0371_snapshot.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5659,7 +5659,7 @@
56595659
],
56605660
"isUnique": false,
56615661
"where": "\"document\".\"deleted_at\" IS NULL",
5662-
"concurrently": false,
5662+
"concurrently": true,
56635663
"method": "btree",
56645664
"with": {}
56655665
},

‎packages/db/schema.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3256,7 +3256,8 @@ export const document = pgTable(
32563256
/** Search's updated-after filter: the documents of a base changed since a time, without a base scan. */
32573257
sourceModifiedLookupIdx: index('doc_kb_source_modified_idx')
32583258
.on(table.knowledgeBaseId, table.sourceModifiedAt)
3259-
.where(sql`${table.deletedAt} IS NULL`),
3259+
.where(sql`${table.deletedAt} IS NULL`)
3260+
.concurrently(),
32603261
/**
32613262
* Serves the access predicate (`acl && tokens`) when a token set is
32623263
* selective — one member's subject over a large base — and the

0 commit comments

Comments
 (0)