Skip to content

Make expunge delete faster for small data sets #7126

@esecules

Description

@esecules

NOTE: Before filing a ticket, please see the following URL:
https://github.com/hapifhir/hapi-fhir/wiki/Getting-Help

Describe the issue
I have suites of integration and system tests that run against HAPI FHIR which involve expunge deleting data in a partition. Prior to version 7 this was a very fast operation, but now it takes several minutes to do what used to be done in seconds. When I look at the job status endpoint I can see that each individual stage takes less than a second to run. So the majority of the time is spent waiting. I believe this is because of the JobMaintenanceServiceImpl having a hardcoded period of 1 minute.

It would be enough for me to be able to configure the period of the JobMaintenanceServiceImpl through the application config that I use through the FHIR jpa-starter project. This setting is already internally configurable for tests.

Alternative solutions are welcome, especially if they just work without configuration.

Environment (please complete the following information):

  • HAPI FHIR Version 8.2.0
  • OS: [e.g. iOS] ubuntu latest
  • Browser [e.g. chrome, safari] java client: ca.uhn.fhir.rest.client.api.GenericClient

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions