We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi there! 馃憢
I'm working on implementing a notifications sub-system for a project and because of that, I was analyzing in detail some parts of this great project.
So, when I saw the notify_handler method I noticed that, eventually, a bunch of notifications could be created and then saved within a for loop.
notify_handler
for
django-notifications/notifications/base/models.py
Lines 285 to 308 in 8dd1a5e
Do you guys think it would be possible to make use of Django's bulk create instead of calling save at every iteration?
I can work on it if you think it worth it. Thanks!
The text was updated successfully, but these errors were encountered:
I doubt that this will be viable, from Django docs:
The model鈥檚 save() method will not be called, and the pre_save and post_save signals will not be sent.
Sorry, something went wrong.
Fix #283
79dce64
825b0d5
No branches or pull requests
Hi there! 馃憢
I'm working on implementing a notifications sub-system for a project and because of that, I was analyzing in detail some parts of this great project.
So, when I saw the
notify_handler
method I noticed that, eventually, a bunch of notifications could be created and then saved within afor
loop.django-notifications/notifications/base/models.py
Lines 285 to 308 in 8dd1a5e
Do you guys think it would be possible to make use of Django's bulk create instead of calling save at every iteration?
I can work on it if you think it worth it.
Thanks!
The text was updated successfully, but these errors were encountered: