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

Fix memory leak with SQLite #548

Merged
merged 1 commit into from
Oct 6, 2023
Merged

Conversation

sissbruecker
Copy link
Owner

@sissbruecker sissbruecker commented Oct 6, 2023

#520 introduced a memory leak which is caused by loading an ICU collation into new database connections. Whatever memory is reserved by that is not released when closing the connection, and as each request creates a new connection, memory usage just keeps increasing. As the collation loading is external code I don't see how I could fix that. I also don't want to rollback the fix from #520 as the new sort by title feature relies on that as well. As a workaround, this makes SQLite database connections persistent, so that they are only created once and then reused indefinitely. Hoping that this doesn't cause any other issues.

@sissbruecker sissbruecker merged commit f756e28 into master Oct 6, 2023
@sissbruecker sissbruecker deleted the fix/sqlite-icu-memory-leak branch October 6, 2023 21:29
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.

1 participant