title: H2 performance query
body: <p>I'm using an H2 database and the table Matrix has around 500 000 rows. At this time, this query is a little slow.</p>
  <pre><code>SELECT MAX(b.version) FROM Matrix b WHERE b.state NOT LIKE 'published' AND b.state NOT LIKE 'obsolete'
  </code></pre>
  <p>Can I use indexes on column state? They work well if I use LIKE?</p>
  <p>Thank you</p>