On 2015-12-22 05:28 AM, James Sheets wrote:
Try making another unit test, checking that the below query uses 'tbl_b_idx', 
and the test case will fail:

EXPLAIN ANALYZE
SELECT MAX(b.id)as id
FROM tbl_b b
GROUP BY b.tbl_a_id;


For this particular query, you need to read all of the rows, so there is no 
cost difference in using one index over another.

--
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to h2-database+unsubscr...@googlegroups.com.
To post to this group, send email to h2-database@googlegroups.com.
Visit this group at https://groups.google.com/group/h2-database.
For more options, visit https://groups.google.com/d/optout.

Reply via email to