Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve performance for large scale MongoDB database #1037

Merged
merged 4 commits into from
Dec 19, 2023
Merged

Conversation

Ndpnt
Copy link
Member

@Ndpnt Ndpnt commented Dec 19, 2023

No description provided.

@Ndpnt Ndpnt force-pushed the improve-mongodb-perf branch from 6d89fa1 to 713fc03 Compare December 19, 2023 10:15
Copy link
Member

@MattiSG MattiSG left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Not checked locally.

@@ -24,6 +24,8 @@ export default class MongoRepository extends RepositoryInterface {

this.collection = db.collection(this.collectionName);

await this.collection.createIndex({ serviceId: 1, termsType: 1, fetchDate: -1 });
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we really want to block with await? 🤔

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not necessary

CHANGELOG.md Outdated Show resolved Hide resolved
@Ndpnt Ndpnt merged commit 667aede into main Dec 19, 2023
7 checks passed
@Ndpnt Ndpnt deleted the improve-mongodb-perf branch December 19, 2023 10:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants