Skip to content

Convert bloom filters to streamed large objects #396

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

Merged
merged 12 commits into from
Mar 23, 2025

Conversation

mgdigital
Copy link
Collaborator

@mgdigital mgdigital commented Mar 2, 2025

The previous bloom filter implementation used a bytea type persisted by Gorm which was very memory inefficient, causing a memory spike every 5 minutes when it is flushed to the database. This PR replaces the implementation with streamed large objects using the pgx driver directly.

@mgdigital mgdigital marked this pull request as ready for review March 23, 2025 11:05
@mgdigital mgdigital merged commit 00f4612 into main Mar 23, 2025
7 checks passed
@mgdigital mgdigital deleted the bloom-filter-optimisation branch March 23, 2025 11:06
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