Closed GoogleCodeExporter closed 8 years ago
Note to self:
The problem here is that the following method in org.h2.index.Index:
double getCost(Session session, int[] masks);
has no way of distinguishing between the costs of accessing the two different
indices.
Working back up the call-tree :
org.h2.table.Table#getBestPlanItem
org.h2.table.TableFilter#getBestPlanItem
org.h2.table.Plan#calculateCost
org.h2.command.dml.Optimizer#testPlan
we'd need to teach the code somewhere here about index-only vs. table-data
scans.
Original comment by noelgrandin
on 7 Feb 2013 at 1:55
Issue 409 has been merged into this issue.
Original comment by noelgrandin
on 8 Feb 2013 at 2:10
Yes, one solution would be to extend getCost(Session session, int[] masks) to
include the sort order. For example:
getCost(Session session, int[] masks, SortOrder order)
Original comment by thomas.t...@gmail.com
on 9 Feb 2013 at 11:13
Fixed in revision 4720
Original comment by noelgrandin
on 3 Apr 2013 at 3:32
Original comment by noelgrandin
on 3 Apr 2013 at 3:32
Original issue reported on code.google.com by
cleme...@google.com
on 5 Apr 2012 at 1:17