Skip to content

Commit 8ba5bcc

Browse files
authored
chore: add indexes to archives collection (#42)
1 parent 447ba3d commit 8ba5bcc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

libs-private/db-management/indexGenerator.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,10 @@ const collectionsWithIndexes: Record<string, IndexSpecification[]> = {
176176
expireAfterSeconds: 60 * 5, // 5 Minutes
177177
},
178178
],
179+
'archives': [
180+
{ field: { reference: 1, type: 1 }, name: 'reference_1_type_1' },
181+
{ field: { type: 1, endsAt: -1 }, name: 'type_1_endsAt_1' },
182+
]
179183
};
180184

181185
export const createIndexes = async (db: Db) => {

0 commit comments

Comments
 (0)