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

Reduce number of DB connections when resyncing zaken #469

Open
SilviaAmAm opened this issue Nov 5, 2024 · 0 comments
Open

Reduce number of DB connections when resyncing zaken #469

SilviaAmAm opened this issue Nov 5, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@SilviaAmAm
Copy link
Collaborator

Currently, the celery container shows this output when resyncing zaken:

[2024-11-05 15:07:47,330: DEBUG/ForkPoolWorker-2] "GET /zaken/api/v1/zaken?archiefnominatie=vernietigen&einddatum__isnull=False&einddatum__lt=2024-11-05&expand=resultaat%2Cresultaat.resultaattype%2Czaaktype%2Crollen&page=15 HTTP/11" 200 None
2024-11-05 15:07:47,586 INFO openarchiefbeheer.zaken.tasks  Retrieved page 15.
[2024-11-05 15:07:47,586: INFO/ForkPoolWorker-2] Retrieved page 15.
[2024-11-05 15:07:47,587: DEBUG/ForkPoolWorker-2] Closing all database connections
[2024-11-05 15:07:47,588: DEBUG/ForkPoolWorker-2] Closing all database connections
[2024-11-05 15:07:47,588: DEBUG/ForkPoolWorker-2] Closing all database connections
... (repeat x 100s)

Maybe we should do a bulk save for the zaken in the serializer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Todo
Development

No branches or pull requests

1 participant