▲ | mschuster91 3 days ago | |||||||
alternatively, why not use database views? That way you can make sure that customers can only see their own data. Permissions can be handled with normal database users by only granting them SELECT rights on the views. If you're afraid of users tanking performance, read replicas. As instantaneous as it gets, and no customer can tank others. | ||||||||
▲ | crabmusket 2 days ago | parent [-] | |||||||
I think my gut would feel safer having a serialisation boundary between the customer's queries and the primary data store. But yes in principle I don't see why this approach wouldn't work just as well. Food for thought. | ||||||||
|