microsoft / fhir-server

A service that implements the FHIR standard
MIT License
1.21k stars 518 forks source link

add ordering to reindex surrogate id fetch #4686

Closed mikaelweave closed 1 month ago

mikaelweave commented 1 month ago

Description

When an empty page is encountered w/ reindex, the next page processed isn't the next page - it skips records. The order by ensures pages of data are processed in order.

Related issues

AB#130486

Testing

Debugging database, seeing unordered list causing data to be skipped. Manual testing on DB planned.

FHIR Team Checklist

Semver Change (docs)

Patch|Skip|Feature|Breaking (reason)

mikaelweave commented 1 month ago

/azp run

azure-pipelines[bot] commented 1 month ago
Azure Pipelines successfully started running 1 pipeline(s).
mikaelweave commented 1 month ago

CleanShot 2024-10-17 at 13 43 11

Confirmed by reindex on problematic db