You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by se...@apache.org on 2016/02/20 09:11:35 UTC

ignite git commit: ignite-1232 - geo index cost fixed

Repository: ignite
Updated Branches:
  refs/heads/ignite-1232 ce0bafc93 -> b325f746c


ignite-1232 - geo index cost fixed


Project: http://git-wip-us.apache.org/repos/asf/ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/b325f746
Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/b325f746
Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/b325f746

Branch: refs/heads/ignite-1232
Commit: b325f746c4608445e41e201b45f3a0d322f09b81
Parents: ce0bafc
Author: S.Vladykin <sv...@gridgain.com>
Authored: Sat Feb 20 11:11:19 2016 +0300
Committer: S.Vladykin <sv...@gridgain.com>
Committed: Sat Feb 20 11:11:19 2016 +0300

----------------------------------------------------------------------
 .../internal/processors/query/h2/opt/GridH2SpatialIndex.java      | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/b325f746/modules/geospatial/src/main/java/org/apache/ignite/internal/processors/query/h2/opt/GridH2SpatialIndex.java
----------------------------------------------------------------------
diff --git a/modules/geospatial/src/main/java/org/apache/ignite/internal/processors/query/h2/opt/GridH2SpatialIndex.java b/modules/geospatial/src/main/java/org/apache/ignite/internal/processors/query/h2/opt/GridH2SpatialIndex.java
index b4618c1..2ebbae8 100644
--- a/modules/geospatial/src/main/java/org/apache/ignite/internal/processors/query/h2/opt/GridH2SpatialIndex.java
+++ b/modules/geospatial/src/main/java/org/apache/ignite/internal/processors/query/h2/opt/GridH2SpatialIndex.java
@@ -230,7 +230,8 @@ public class GridH2SpatialIndex extends GridH2IndexBase implements SpatialIndex
 
     /** {@inheritDoc} */
     @Override public double getCost(Session ses, int[] masks, TableFilter[] filters, int filter, SortOrder sortOrder) {
-        return SpatialTreeIndex.getCostRangeIndex(masks, rowCnt, columns);
+        return SpatialTreeIndex.getCostRangeIndex(masks,
+            table.getRowCountApproximation(), columns) / 10;
     }
 
     /** {@inheritDoc} */