From dev-return-48977-archive-asf-public=cust-asf.ponee.io@couchdb.apache.org Thu Jan 16 15:57:00 2020 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 ED46818060E for ; Thu, 16 Jan 2020 16:56:59 +0100 (CET) Received: (qmail 30403 invoked by uid 500); 16 Jan 2020 15:56:59 -0000 Mailing-List: contact dev-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list dev@couchdb.apache.org Received: (qmail 30391 invoked by uid 99); 16 Jan 2020 15:56:59 -0000 Received: from Unknown (HELO mailrelay1-lw-us.apache.org) (10.10.3.159) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Jan 2020 15:56:59 +0000 Received: from mail-lf1-f46.google.com (mail-lf1-f46.google.com [209.85.167.46]) by mailrelay1-lw-us.apache.org (ASF Mail Server at mailrelay1-lw-us.apache.org) with ESMTPSA id BFA921005 for ; Thu, 16 Jan 2020 15:56:58 +0000 (UTC) Received: by mail-lf1-f46.google.com with SMTP id m30so15837803lfp.8 for ; Thu, 16 Jan 2020 07:56:58 -0800 (PST) X-Gm-Message-State: APjAAAWKKTQlw7I0V8unWPRAGxTO7IXF6k1Yl7f0kuztMDxJaKVTOiM6 x2ZanzcUBonD1M+gY4eCDA8ngZyGA1JIBWyNT+0xuA== X-Google-Smtp-Source: APXvYqz647JL2Y6RkWYdRId5xa2aPZcwhjxyUu4A8vGdvRmI6iqcWj5j4+w6DyXs7D/MJ+rd5SBUFjFQxy44UeIDj9Q= X-Received: by 2002:a19:48c5:: with SMTP id v188mr2934941lfa.100.1579190217881; Thu, 16 Jan 2020 07:56:57 -0800 (PST) MIME-Version: 1.0 References: <469A0404-DA3B-4374-AC9F-704E86FB9B7C@apache.org> In-Reply-To: <469A0404-DA3B-4374-AC9F-704E86FB9B7C@apache.org> From: Garren Smith Date: Thu, 16 Jan 2020 17:56:47 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: FDB: Map index key/value limits To: dev@couchdb.apache.org Content-Type: multipart/alternative; boundary="000000000000f8537f059c43dfd9" --000000000000f8537f059c43dfd9 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Option A is similar to what we do currently when a doc fails to be mapped and a user/admin would see the errors in the log. Keeping an index is a nice idea, But what do we do with it? How would we expose that to the user? I=E2=80=99= m guessing we would have to add a new api endpoint or add it to the _info endpoint On Thu, Jan 16, 2020 at 5:35 PM Adam Kocoloski wrote: > Option C - keep a separate index of document IDs that failed indexing. > > I could be convinced of either Option C or Option A, and tentatively agre= e > with Paul that the document indexing ought to be atomic for an entire vie= w > group. > > Adam > > > On Jan 16, 2020, at 9:48 AM, Paul Davis > wrote: > > > > For A you also want to consider multiple emitted K/Vs on whether we > > index some or none. I'd assume none as that would match the existing > > equivalent of a doc throwing an exception during indexing. > > > > On Thu, Jan 16, 2020 at 8:45 AM Garren Smith wrote: > >> > >> Hi Everyone, > >> > >> We want to impose limits on the size of keys and values for map indexe= s. > >> See the RFC for full details - > >> https://github.com/apache/couchdb-documentation/pull/410 > >> > >> The question I have is what is the best user experience if the user do= es > >> exceed the key or value limit? > >> > >> Option A - Do not index the key/value and log the error > >> > >> Option B - Throw an error and don't build the index > >> > >> Option C - Any other ideas? > >> > >> Cheers > >> Garren > > --000000000000f8537f059c43dfd9--