#✅ - Best Route for Updating Average Rating in Rating App
6 messages · Page 1 of 1 (latest)
I would attach a function to a trigger of a table write.
Let me know if you need more info on it
Yes, I would love some more info!
Here I am incrementing a counter in another table each time I receive a like.
The idea is to create a table where you register all ratings.
Each time you receive a rating (or in batch) on this table it will trigger a function and there you can calculate the average rating for a user and write the average rating again in the User table.
The function can be written in python, nodeJS or other languages..
✅ - Best Route for Updating Average Rating in Rating App