Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement geefLijstZaakdocumenten variant that uses a query to retrieve all documents on a zaak #270

Open
MLenterman opened this issue Feb 5, 2024 · 1 comment
Labels
performance performance

Comments

@MLenterman
Copy link
Collaborator

We are noticing that retrieving enkelvoudiginformatieobjecten one by one on zaken with lots of documents can be quite slow when a DMS is configured through CMIS. To improve performance we would like to create a variation of the geefLijstZaakdocumenten action that relies more on queries.

The variant should be made on a copy of the existing geefLijstZaakdocumenten action with the same JavaListener name, so that it is possible to switch easily between the 2 implementations like a feature toggle. The implementations can be switched with the adapter's "active" properties in DeploymentSpecifics. By default the current implementation should be active.

Effectively after retrieving all ZaakInformatieObjecten on a zaak, instead of calling every url in the response separately, now it should combine them into 1 query (https://redocly.github.io/redoc/?url=https://raw.githubusercontent.com/VNG-Realisatie/documenten-api/stable/1.2.x/src/openapi.yaml#tag/enkelvoudiginformatieobjecten/operation/enkelvoudiginformatieobject__zoek). Then we can iterate over the result and retrieve the InformatieObjectType for each one.

@MLenterman MLenterman added the performance performance label Feb 5, 2024
@MLenterman
Copy link
Collaborator Author

Is not needed anymore if #271 gets implemented

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
performance performance
Projects
None yet
Development

No branches or pull requests

1 participant