Feature Request: Deliver Notifications Without Database Records #375
Replies: 2 comments 6 replies
-
The database records fix a lot of issues such as sending bulk notifications (a notification to 1,000s of users now inserts using If you're on Postgres, have you seen unlogged tables? https://www.crunchydata.com/blog/postgresl-unlogged-tables Can you provide a better example than an email notification where you might need this? If it's just email, you should use ActionMailer directly instead of Noticed. So a more complex example would be handy to brainstorm ways this could be supported. |
Beta Was this translation helpful? Give feedback.
-
Hi @excid3 ! I actually have the same issue. I'm using the noticed v1 on the project and considering upgrading to version 2. I found in the upgrade guide that starting from version 2 all the notifications will be saved into the database. At the moment, we have a lot of intense Notifications that have only the ActionCable delivery method. I assume, that upgrading to version 2 can significantly decrease the performance of the application because of increasing database interactions. Can I disable saving into DB anyhow? |
Beta Was this translation helpful? Give feedback.
-
Problem
I am currently in the process of upgrading my application to use Noticed v2. Within our notification system, there are specific notifications that do not require storage in the database. Due to the high volume of these notifications (thousands per day), we prefer not to track them in the database for performance reasons. Previously, we did not explicitly specify the deliver_by :database option. Consequently, no database records were created.
After upgrading to v2, I have not identified any option, either in the documentation or the code, that allows me to skip the creation of noticed_events and noticed_notifications records.
Request
Is it possible to introduce a new configuration setting that allows notifications to be sent without generating corresponding database records? For example:
Such an enhancement would significantly benefit our use case by optimizing performance and reducing unnecessary database writes for specific types of notifications.
Consideration
Without this capability, I would be forced to implement a daily job to remove these records from the database, which is not an ideal solution due to its complexity and potential impact on system resources.
Thank you for your consideration and assistance with this matter.
Beta Was this translation helpful? Give feedback.
All reactions