|
|
|
|
|
by paulryanrogers
1554 days ago
|
|
Some features just don't scale or cannot easily integrate into app layers which need them. For example Pg connections are expensive, so you need a Pooler, now you don't want a DB user per end user. FK constraints too can prove hard to scale as one ends up with extra writes and contention, or do sharing. |
|
`RESET ROLE; SET ROLE app_username;` could be done for each query / transaction / when fetching the connection from the pool.