Hi, > Looking at what EXPLAIN produces, H2 (1.0.79) uses indexes for > everything but the ordering. As a result, the query is quite slow on > large tables.
Ordering is slow for large results, however it doesn't matter how large the table is. The optimizer doesn't calculate the expected number of rows at the moment, so it doesn't use the order on the index. > Is there any way I can cause H2 to execute this or a similar query > more quickly? No, I'm afraid not. Regards, Thomas --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
