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 7A995200BDA for ; Tue, 13 Dec 2016 14:06:00 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 79674160B32; Tue, 13 Dec 2016 13:06:00 +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 C9E3C160B31 for ; Tue, 13 Dec 2016 14:05:59 +0100 (CET) Received: (qmail 7850 invoked by uid 500); 13 Dec 2016 13:05:58 -0000 Mailing-List: contact oak-issues-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: oak-dev@jackrabbit.apache.org Delivered-To: mailing list oak-issues@jackrabbit.apache.org Received: (qmail 7534 invoked by uid 99); 13 Dec 2016 13:05:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Dec 2016 13:05:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 666942C03E2 for ; Tue, 13 Dec 2016 13:05:58 +0000 (UTC) Date: Tue, 13 Dec 2016 13:05:58 +0000 (UTC) From: "Thomas Mueller (JIRA)" To: oak-issues@jackrabbit.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (OAK-5237) Change default query limit configuration MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 13 Dec 2016 13:06:00 -0000 [ https://issues.apache.org/jira/browse/OAK-5237?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15745121#comment-15745121 ] Thomas Mueller commented on OAK-5237: ------------------------------------- [~alexander.klimetschek] yes there is some overlap, both this issue and OAK-4888 try to prevent unexpected behavior (out-of-memory, very slow queries). But OAK-4888 is only ensures an index is used. When an index is used, OAK-4888 doesn't bark. But even with an index, queries can be slow, or run out of memory. For example queries that read many nodes (from an index), or sort by an unindexed column (that is, just use an index for filtering), and so on. This issue complements OAK-4888 by ensuring a query doesn't eat up too many resources. Query limits are a basic monitoring and intervention system. > Change default query limit configuration > ---------------------------------------- > > Key: OAK-5237 > URL: https://issues.apache.org/jira/browse/OAK-5237 > Project: Jackrabbit Oak > Issue Type: Improvement > Components: query > Reporter: Thomas Mueller > Assignee: Thomas Mueller > Fix For: 1.6 > > > By default, queries can read an unlimited number of nodes, and an unlimited number of entries in memory (for "order by" and "union"). > I would like to change the default settings to: > {noformat} > -Doak.queryLimitInMemory=500000 > -Doak.queryLimitReads=100000 > {noformat} -- This message was sent by Atlassian JIRA (v6.3.4#6332)