Mentions légales du service

Skip to content

feat(batch): optimize selection of registration for risk evaluation

Merisier Tac requested to merge feature/optimized-risk-evaluation into master

Instead for selecting all registrations with non-empty exposed periods, we keep track in the registration of the need to recompute the risk (see outdatedRisk boolean field). This restricts the selection to necessary entries, and makes it possible to use a mongo index.

The mongo index should be added as follows:

db.idTable.createIndex( { outdatedRisk: 1 }, { partialFilterExpression : { outdatedRisk: true } } )

Merge request reports