Skip to content

Commit 86af2bf

Browse files
paulkrsagoezpeterkuczera
authored
chore: add new indexes for event-access records (#68)
Co-authored-by: Samuel <[email protected]> Co-authored-by: Peter Kuczera <[email protected]>
1 parent fb737f4 commit 86af2bf

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

libs-private/db-management/indexGenerator.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,9 @@ const collectionsWithIndexes: Record<string, IndexSpecification[]> = {
8484
{ field: { deleted: 1 }, name: "deleted_1" },
8585
{ field: { active: 1 }, name: "active_1" },
8686
{ field: { createdAt: 1 }, name: "createdAt_1" },
87+
{ field: { deleted: 1, key: 1, "ownership.buildableId": 1 }, name: "deleted_1_key_1_ownership.buildableId_1" },
88+
{ field: { accessKey: 1, deleted: 1, environment: 1, "ownership.buildableId": 1, createdAt: -1 }, name: "deleted_1_environment_1_ownership.buildableId_1_createdAt_-1" },
89+
8790
],
8891
"event-transactions": [
8992
{

0 commit comments

Comments
 (0)