Skip to content

Conversation

@Hajarel-moukh
Copy link
Contributor

Added a MongoDB index on the embedded field payload.campaignId to optimize the generic extraction batch queries and prevent performance issues under high load.
campaignId is no longer stored at the document root.

.collectionInstrumentId(questionnaireId)
.interrogationId(interrogationId)
.recordDate(LocalDateTime.now())
.payload(Map.of("campaignId", "VPPI2024M05"))
Copy link
Contributor

Choose a reason for hiding this comment

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

suggestion: use campaignId parameter

Copy link
Collaborator

@aitkarra aitkarra left a comment

Choose a reason for hiding this comment

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

Is this a hotfix on the main branch ?

@aitkarra aitkarra self-requested a review January 7, 2026 15:19
@Hajarel-moukh
Copy link
Contributor Author

@aitkarra No, I created a new feature branch from main and all changes are made there.

@alexisszmundy alexisszmundy merged commit 4336d3a into main Jan 15, 2026
7 checks passed
@alexisszmundy alexisszmundy deleted the devIndexpayload.campaignId branch January 15, 2026 09:01
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.

4 participants