just common question is h2 using indexes at all? except sorting?

d2
id bigint
category varchar(60)
source varchar(100)
translation varchar(500)

index on (category)

select * from d2 where category="desc";  selectivity 20%

SELECT
d2."id",
d2."category",
d2."source",
d2."translation",
FROM PUBLIC."d2"
  /* PUBLIC.CATEGORY: "category" = 'desc' */
WHERE "category" = 'desc'

how can i see index is used?

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/h2-database.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to