Skip to content

Index payload.campaignId ,delete campaignId from racine and modify t…#375

Merged
alexisszmundy merged 4 commits into
mainfrom
devIndexpayload.campaignId
Jan 15, 2026
Merged

Index payload.campaignId ,delete campaignId from racine and modify t…#375
alexisszmundy merged 4 commits into
mainfrom
devIndexpayload.campaignId

Conversation

@Hajarel-moukh

Copy link
Copy Markdown
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
Copy Markdown
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

@aitkarra aitkarra left a comment

Copy link
Copy Markdown
Collaborator

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
Copy Markdown
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.

3 participants