logoalt Hacker News

Kinranytoday at 1:17 PM1 replyview on HN

One query isn't cheaper than two queries that do the same amount of IO and processing and operate in the same memory space


Replies

silon42today at 3:21 PM

Yes, (index) scans are rarely faster typical web apps.

Unless you have toy amounts data... or doing batch operations which is not typical (and can be problematic for other transactions due to locking, etc...)