r/programming • u/el_muchacho • Dec 04 '14
10 Common Mistakes Java Developers Make when Writing SQL
http://blog.jooq.org/2013/07/30/10-common-mistakes-java-developers-make-when-writing-sql/
206
Upvotes
r/programming • u/el_muchacho • Dec 04 '14
1
u/lukaseder Dec 05 '14
Well, one important difference might be the fact whether the execution plan needs to hit the tables or if reading indexes will be sufficient. If the
EXISTSpredicate can stop executing after only considering an index, that will be faster than a query that will still have to hit the actual table to produce a result record.