Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 2A7C3200D60 for ; Fri, 1 Dec 2017 13:31:10 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 29073160C06; Fri, 1 Dec 2017 12:31:10 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 49763160BFB for ; Fri, 1 Dec 2017 13:31:09 +0100 (CET) Received: (qmail 37991 invoked by uid 500); 1 Dec 2017 12:31:08 -0000 Mailing-List: contact user-help@ignite.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@ignite.apache.org Delivered-To: mailing list user@ignite.apache.org Received: (qmail 37981 invoked by uid 99); 1 Dec 2017 12:31:08 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Dec 2017 12:31:08 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 7AC15C66AC for ; Fri, 1 Dec 2017 12:31:07 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 4.099 X-Spam-Level: **** X-Spam-Status: No, score=4.099 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, KAM_BADIPHTTP=2, KAM_SHORT=0.001, KB_WAM_FROM_NAME_SINGLEWORD=0.2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id eZa3lcIzl9AJ for ; Fri, 1 Dec 2017 12:31:06 +0000 (UTC) Received: from mail-io0-f169.google.com (mail-io0-f169.google.com [209.85.223.169]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 49D3E5F46D for ; Fri, 1 Dec 2017 12:31:06 +0000 (UTC) Received: by mail-io0-f169.google.com with SMTP id d14so11037968ioc.5 for ; Fri, 01 Dec 2017 04:31:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=g9MV0u5saNdgVNKMilLns3Ro6YAEVMjKJA7oKOdR+Hs=; b=PZ8dyd6AzgyG+gJA5x4v4WOdP5fhFC3mPQxBtDMtXJEERboeGwX2T/94EUNqAgsTqM 5ZcWOudTeI3hgWg8oHV+xGv1wI8U/TRaxxZRAtkt44KeWOJ4JAHjZ/nALTgtNrl3am7R lAahEGRF/WjmCK2qRRVgptLryKVVw1fJbqF1EZO5B7x2r8viXpeYMjWkRAp/gaG72Wtb vf3BMiSd2wXgIzkSuwvOJGCU/Zg1aUYP9apD+qUYNlU/Bl+lzc+fQ1cTI+MwS8mlBTxA 7qmm+SeEbltSrYdvMWraoE//sOsWnmKFlTkmJUJd6CM1w6HZz+pV0yCZurX6HrfTfKzf zeQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=g9MV0u5saNdgVNKMilLns3Ro6YAEVMjKJA7oKOdR+Hs=; b=RU/65dZs3+RIf3EkgVUNq2RSD2m5soO36FtPYTWEAnwHEMKdI3dbzNkJS7PjNqyDS4 e3yps8tHqNoTxwAy8Z2Sd3yoo3rwP7QO/qUSaV1pUjBI+Xtwj7k7nz/XSaHCVzj4Pxqt 9wjOM6MsWxjk4nZHo+ioAAFd4V/gybwesr4OiUITqPjFHtNhyeaBMNuBoechXoruwNb0 m85QIt2EWeW58IhPWlfoO0Ek2vcLi/D1UgPr1d3V3z3/NlNdEx4Mi1UBmiHeHUeTysg2 i6hlhe5tj+zOg6TQUQP9rLTO6MWeIlRTOPWoi7IdN1sdJmYOLPz0xjP0Uvju6ZSeU+eD uu6A== X-Gm-Message-State: AJaThX64j+7Os2ep3p/0lxKQIQwJe9shSi95hsOr7jLAs+Iv1GijSVsp f1zgY9I7qmBOE+v6dBNCPqKR2YuoBpsaLKgEoZM= X-Google-Smtp-Source: AGs4zMZPA0qcJqkEJo04e8NKBGjnLQAZ3WrjoHiYXRIMURm0FqDnTRJYmwajC69fN6lq48JUtK6NI6AXYEd0aPRGUHw= X-Received: by 10.107.185.9 with SMTP id j9mr13032033iof.267.1512131465363; Fri, 01 Dec 2017 04:31:05 -0800 (PST) MIME-Version: 1.0 References: <364ba99b.a466.15fed580023.Coremail.wanxing987@163.com> <2cea1adc.11bd.15ffcc9ac6b.Coremail.wanxing987@163.com> <5b546b72.8969.16006a7915e.Coremail.wanxing987@163.com> <4e71a2ba.7e17.1600c0c584d.Coremail.wanxing987@163.com> In-Reply-To: <4e71a2ba.7e17.1600c0c584d.Coremail.wanxing987@163.com> From: Denis Mekhanikov Date: Fri, 01 Dec 2017 12:30:54 +0000 Message-ID: Subject: Re: Re: Re:Poor performance select query with jdbc thin mode To: user@ignite.apache.org Content-Type: multipart/alternative; boundary="94eb2c06cb38d8c926055f468a52" archived-at: Fri, 01 Dec 2017 12:31:10 -0000 --94eb2c06cb38d8c926055f468a52 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Lucky, How much data do you retrieve in this query? There is some overhead, caused by network communication, when you are using JDBC drivers, but it's not expected to be so big. Also do you connect over JDBC to the same node, on which you test IgniteCache#query() ? Denis =D1=87=D1=82, 30 =D0=BD=D0=BE=D1=8F=D0=B1. 2017 =D0=B3. =D0=B2 11:30, Lucky= : > Denis, > It's worse! > There just have several sql can be faster, the other took more time. > Thanks. > > > > > > =E5=9C=A8 2017-11-29 21:31:05=EF=BC=8C"Denis Mekhanikov" =E5=86=99=E9=81=93=EF=BC=9A > > Lucky, > > Try enabling *enforceJoinOrder *parameter in JDBC connection string and > let us know the result. > Your JDBC connection string should look like this: > jdbc:ignite:thin://127.0.0.1?*enforceJoinOrder=3Dtrue* > > Denis > >> >> --94eb2c06cb38d8c926055f468a52 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Lucky,

How much data do you retri= eve in this query?
There is some overhead, caused by network communicat= ion, when you are using JDBC drivers, but it's not expected to be so bi= g.
Also do you connect over JDBC to the same node, on which you t= est IgniteCache#query() ?

Denis

=D1=87=D1=82, 30 =D0=BD=D0=BE=D1= =8F=D0=B1. 2017 =D0=B3. =D0=B2 11:30, Lucky <wanxing987@163.com>:
Denis,
=C2=A0 It's worse!
=C2=A0 There = just have several sql=C2=A0 can be faster, the other took more time.
<= div>=C2=A0 Thanks.





=E5=9C=A8 = 2017-11-29 21:31:05=EF=BC=8C"Denis Mekhanikov" <dmekhanikov@gmail.com> = =E5=86=99=E9=81=93=EF=BC=9A
Lucky,

Try enabling=C2= =A0enforceJoinOrder parameter in= JDBC connection string and let us know the result.
Your JDBC connection string should look like this:= =C2=A0
jdbc:ignite:thin://127.0.0.1?enforceJoinOrder=3Dtrue

=
Denis

--94eb2c06cb38d8c926055f468a52--