Re: [netconf] restconf collections

Robert Varga <nite@hq.sk> Tue, 29 September 2020 23:23 UTC

Return-Path: <nite@hq.sk>
X-Original-To: netconf@ietfa.amsl.com
Delivered-To: netconf@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 5518F3A13BB for <netconf@ietfa.amsl.com>; Tue, 29 Sep 2020 16:23:53 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.312
X-Spam-Level:
X-Spam-Status: No, score=-2.312 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, NICE_REPLY_A=-0.213, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=hq.sk
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id u_Qc9n6cGT7r for <netconf@ietfa.amsl.com>; Tue, 29 Sep 2020 16:23:51 -0700 (PDT)
Received: from mail.hq.sk (hq.sk [81.89.59.181]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 7C9B63A13B2 for <netconf@ietf.org>; Tue, 29 Sep 2020 16:23:51 -0700 (PDT)
Received: from nitebug.nitenet.local (chello085216197060.chello.sk [85.216.197.60]) by mail.hq.sk (Postfix) with ESMTPSA id 8235C24704A; Wed, 30 Sep 2020 01:23:49 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=hq.sk; s=mail; t=1601421829; bh=GnScfSz0xCek9ow9WBENSQDgu3xCh0+OL0F61CJy1yk=; h=Subject:To:Cc:References:From:Date:In-Reply-To; b=nPtvMupBcyubWjjoMKZ2D1DGbmG5Y718mY96nGEOxtUCy8ZEQQraSkIMV6h4TGBRK 1QS3KEItFL3xL2LRgGJLsH2Cn1fqr39FMxpSlTR6ICDMW3gl8iJIokH6uDVst5yygv Jjor9o5+tcZ+BhcOFE2hqfVv9mtEU2DIQLCtFC/E=
To: =?UTF-8?Q?Martin_Bj=c3=b6rklund?= <mbj+ietf@4668.se>, kent+ietf@watsen.net
Cc: netconf@ietf.org
References: <CABCOCHTT=vQWNY9iTUG8Dy8s7qrA0sP5rKcRgsjZkWuXG+q78Q@mail.gmail.com> <01000174d5174af9-848a769d-ef3f-49a6-b1d6-1eb8349a489f-000000@email.amazonses.com> <01000174daf6ded3-0ba5564d-f1c7-4c65-90dc-d8a22f2f9395-000000@email.amazonses.com> <20200929.205710.165167541047857442.id@4668.se>
From: Robert Varga <nite@hq.sk>
Message-ID: <a3b512a2-7399-3956-e7af-1e8d31f4d9cb@hq.sk>
Date: Wed, 30 Sep 2020 01:23:49 +0200
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.11.0
MIME-Version: 1.0
In-Reply-To: <20200929.205710.165167541047857442.id@4668.se>
Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="B4qgGWHLEAK4Nart151jbYHhAUGMrwLL1"
Archived-At: <https://mailarchive.ietf.org/arch/msg/netconf/Xz5SDoK1wu9AjjPPyeO37k-0zIg>
Subject: Re: [netconf] restconf collections
X-BeenThere: netconf@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: NETCONF WG list <netconf.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/netconf>, <mailto:netconf-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/netconf/>
List-Post: <mailto:netconf@ietf.org>
List-Help: <mailto:netconf-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/netconf>, <mailto:netconf-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 29 Sep 2020 23:23:53 -0000

On 29/09/2020 20:57, Martin Björklund wrote:
> Also, since the main objective is efficient retrieval, "sort-by"
> can perhaps be removed.  Consider large lists in operational state
> that also change often.

+1.

Getting hold of enough state to guarantee stable iteration order can be
done quite efficiently.

Sorting requires touching the data indices at the very least (to
understand that no sorting is needed), potentially a huge
CPU/MEM/network operation at the worst (a.k.a. "establish global order
of entities in a distributed system").

If the criteria is user-specified, the possibility of a DoS becomes very
real -- and hence the question becomes 'can the query be sufficiently
analyzed to reject it early and prevent overloading the system?' :)

Regards,
Robert