Open FilipNikolovski opened 3 years ago
If we go with the 3rd way we need to make change with unsubscribe_events
table
@gudgl unsubscribe_events it's user action table this will be admin action if we change that table maybe we will need to know which user (user/admin) made that event @FilipNikolovski
There is a difference between unsubscribe and a delete. We'll need to discuss this further in a meet.
Event types:
Here's what I've found so far:
@FilipNikolovski @gudgl Awesome! Let's discuss this further on call
Here's what I've found so far:
* Using triggers - you can set triggers on the source tables on which you build the view. This minimizes the resource usage as the refresh is only done when needed. Also, data in the materialized view is realtime-ish * Using cron jobs with stored procedures or SQL scripts - refresh is done on a regular basis. You have more control as to when resources are used. Obviously you data is only as fresh as the refresh-rate allows. * Using MySQL scheduled events - similar to 2, but runs inside the database
This is great. Before we discuss we can also take a look at this article about "Summary Tables". It describes different approaches with examples, maybe we can draw some inspiration from there as well.
@Dzalevski @FilipNikolovski So far these are the tree proposals
and than count them maybe in view or smth