From issues-return-95281-archive-asf-public=cust-asf.ponee.io@ignite.apache.org Tue Apr 16 12:55:03 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id 1DCC8180630 for ; Tue, 16 Apr 2019 14:55:03 +0200 (CEST) Received: (qmail 85100 invoked by uid 500); 16 Apr 2019 12:55:01 -0000 Mailing-List: contact issues-help@ignite.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ignite.apache.org Delivered-To: mailing list issues@ignite.apache.org Received: (qmail 84848 invoked by uid 99); 16 Apr 2019 12:55:01 -0000 Received: from mailrelay1-us-west.apache.org (HELO mailrelay1-us-west.apache.org) (209.188.14.139) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Apr 2019 12:55:01 +0000 Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 9BDA7E28C3 for ; Tue, 16 Apr 2019 12:55:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 2E64A24599 for ; Tue, 16 Apr 2019 12:55:00 +0000 (UTC) Date: Tue, 16 Apr 2019 12:55:00 +0000 (UTC) From: "Roman Kondakov (JIRA)" To: issues@ignite.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (IGNITE-11756) SQL: implement a table row count statistics for the local queries MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Roman Kondakov created IGNITE-11756: --------------------------------------- Summary: SQL: implement a table row count statistics for the l= ocal queries Key: IGNITE-11756 URL: https://issues.apache.org/jira/browse/IGNITE-11756 Project: Ignite Issue Type: Improvement Components: sql Reporter: Roman Kondakov Row count statistics should help the H2 optimizer to select the better quer= y execution plan.=C2=A0Currently the row count supplied to H2 engine is har= dcoded value=C2=A0=3D=3D 10000 (see {{org.h2.index.Index#getRowCountApproxi= mation}}).=C2=A0 As a first step we can provide an actual table size in the= case of local query. To prevent counting size on each invocation we can ca= che row count value and invalidate it in some cases: * Rebalancing * Multiple updates (after the initial loading) * On timeout (i.e. 1 minute) -- This message was sent by Atlassian JIRA (v7.6.3#76005)