What is it about people, that they show up here asking for help, and
then somebody gives them a suggestion and they tell me they know better,
without even bothering to try it out.
If you already know the answer, then why are you asking?
On 2012-11-02 10:48, Jan Mřller wrote:
I tried that initially, but that does not seem to work
In the
article: http://www.mysqlperformanceblog.com/2006/09/01/order-by-limit-performance-optimization/
He claims that you should have the index cover both the WHERE clause
and the ORDER BY clause to get good performance. This is for MySql, so
I don't know if it applies to H2.
On Friday, November 2, 2012 9:29:45 AM UTC+1, Noel Grandin wrote:
you need
CREATE INDEX index2 ON myTable(x)
in order to make the ORDER BY run fast.
On 2012-11-02 09:50, Jan M�ller wrote:
> CREATE INDEX index2 ON myTable(id, x)
--
You received this message because you are subscribed to the Google
Groups "H2 Database" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/h2-database/-/lk-D69JsaTQJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/h2-database?hl=en.
--
You received this message because you are subscribed to the Google Groups "H2
Database" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/h2-database?hl=en.