Skip to content

Commit

Permalink
chore: add indexes to archives collection (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
paulkr authored Nov 19, 2024
1 parent 447ba3d commit 8ba5bcc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions libs-private/db-management/indexGenerator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,10 @@ const collectionsWithIndexes: Record<string, IndexSpecification[]> = {
expireAfterSeconds: 60 * 5, // 5 Minutes
},
],
'archives': [
{ field: { reference: 1, type: 1 }, name: 'reference_1_type_1' },
{ field: { type: 1, endsAt: -1 }, name: 'type_1_endsAt_1' },
]
};

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

0 comments on commit 8ba5bcc

Please sign in to comment.