Replying to Avatar Alex Gleason

Been feeling frustrated by the lack of high quality database libraries in TypeScript.

Then I discovered that Postgres ITSELF does not support query cancellation properly:

"Query cancellation works by opening a new connection [...] That means there is no guarantee that the query will be canceled, and due to the possible race conditions it might even result in canceling another query."

You cannot actually cancel a query. You can only cancel a connection. 🤦 Race conditions are inherent to the design.

Wow! Postgres sucks. How is it so popular? MySQL is looking better and better. It's like the bell curve meme with Postgres in the middle and MySQL on the outside. Nothing is ever easy, everything is hard.

Avatar
cloud fodder 1y ago

mysql is most excellent, i was surprised you went w postgres cause it seemed like you have experience running stuff at scale.. but also, i get wanting to try new things if that's why. ive seen postgres fail so much i cant take it serious anymore.

Reply to this note

Please Login to reply.

Discussion

No replies yet.