DEV Community

Discussion on: Handling huge data on Postgres

Collapse
 
itspavan profile image
Pavan Kumar

I agree, but the reason to prefer a trigger over count is that, if the count occurs all the time, it's better to take a hit in terms of triggers, rather than having a slower performance on every read.