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

try batch inserts #1533

Draft
wants to merge 18 commits into
base: main
Choose a base branch
from
Draft

try batch inserts #1533

wants to merge 18 commits into from

Conversation

terrazoon
Copy link
Contributor

@terrazoon terrazoon commented Jan 10, 2025

Description

The next roadblock on scaling up to millions of notifications a day is the fact that we current insert notifications to the db one at a time. Try batch inserts using redis, a scheduled task, and bulk_save_objects()

Security Considerations

With this new approach, notifications would held in redis for 10-30 seconds, meaning potentially there could be a few hundred notifications in redis at any particular time when big sends are happening.

@terrazoon terrazoon marked this pull request as draft January 10, 2025 15:59
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