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 CF9EB200BC0 for ; Tue, 15 Nov 2016 22:01:56 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id CE406160B03; Tue, 15 Nov 2016 21:01:56 +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 24C12160AF2 for ; Tue, 15 Nov 2016 22:01:55 +0100 (CET) Received: (qmail 80808 invoked by uid 500); 15 Nov 2016 21:01:55 -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 80798 invoked by uid 99); 15 Nov 2016 21:01:55 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Nov 2016 21:01:55 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id CBA72185F1F for ; Tue, 15 Nov 2016 21:01:54 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.174 X-Spam-Level: ** X-Spam-Status: No, score=2.174 tagged_above=-999 required=6.31 tests=[DKIM_ADSP_CUSTOM_MED=0.001, NML_ADSP_CUSTOM_MED=1.2, RCVD_IN_DNSWL_NONE=-0.0001, SPF_SOFTFAIL=0.972, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id YzZRu3K9Cwxy for ; Tue, 15 Nov 2016 21:01:53 +0000 (UTC) Received: from mbob.nabble.com (mbob.nabble.com [162.253.133.15]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id E60C25F295 for ; Tue, 15 Nov 2016 21:01:52 +0000 (UTC) Received: from static.162.255.23.37.macminivault.com (unknown [162.255.23.37]) by mbob.nabble.com (Postfix) with ESMTP id 17F67360AB8B for ; Tue, 15 Nov 2016 12:51:30 -0800 (PST) Date: Tue, 15 Nov 2016 14:01:22 -0700 (MST) From: vkulichenko To: user@ignite.apache.org Message-ID: <1479243682671-9007.post@n6.nabble.com> In-Reply-To: References: Subject: Re: Limit the number of results query MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit archived-at: Tue, 15 Nov 2016 21:01:57 -0000 Do you mean OOM on the server or on the client? On server you indeed will need some spare space for any ongoing operations (not only queries, actually). You should make sure that this space is enough for you load. On client you should not get OOM because results are sent in pages (unless you call QueryCursor.getAll). If you iterate through the cursor, you will have only one page in client memory at a time which is 1024 rows by default. Query cancellation and timeout will be available in 1.8: https://issues.apache.org/jira/browse/IGNITE-2680 -Val -- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Limit-the-number-of-results-query-tp9002p9007.html Sent from the Apache Ignite Users mailing list archive at Nabble.com.