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

misc: Try to speed up group to filter migration #2130

Merged
merged 1 commit into from
Jun 6, 2024

Conversation

vincent-pochet
Copy link
Collaborator

Context

Some customers using Lago on a self hosted mode have faced issue with the migration converting Group into ChargeFilter.

The main point is that the part trying to migrate group attached to fees into charges is very very slow on system counting a lot off fees.

Description

This PR tries to remediate this situation by preloading as much records as possible to reduce the number of calls to the database.

It also fixes some edge case that could lead to duplicated filters on some charges

@vincent-pochet vincent-pochet merged commit 2c58c7a into main Jun 6, 2024
6 checks passed
@vincent-pochet vincent-pochet deleted the misc-speedup-migration-filter branch June 6, 2024 07:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants