4 ms·
> Some VP will ask "what weekday do users comment the most". This is why people invented read models. Because the data model that works for the app and makes i
by kroolik 5y ago
> Some VP will ask "what weekday do users comment the most".
This is why people invented read models. Because the data model that works for the app and makes it easy to work with there might not necessarily work for analytics.
Generate analytics data from you app model so that both world can move independently.
> Need an admin portal? With blobs you are coding all these custom admin pages.
Admin portal with direct access to database columns? No thanks! IMHO, admin portal should hook into you business logic so that all the constraints are validated. Unless your app is just a CRUD.
- makapuf 5y agoor logic is in db, with validation triggers and constraints constraints, but that is not always the case.
- out_of_protocol 5y agoNah, database can and should check data consistency but not the business logic (otherwise you whole app is just sql triggers and stuff like that). Also, business logic tend to change over time, but existing items do not