8 points · by wq · 10y ago · 0 comments
No comments yet.
Avoid using SQL COUNT(*) when you could use SQL EXISTS
When checking for the existence of data, avoid using COUNT(*) > 0 as many implementations will nto be able to avoid the work of calculating the exact count
Java, SQL and jOOQ.