Re: [regext] Éric Vyncke's No Objection on draft-ietf-regext-rdap-sorting-and-paging-16: (with COMMENT)
Mario Loffredo <mario.loffredo@iit.cnr.it> Tue, 22 September 2020 15:06 UTC
Return-Path: <mario.loffredo@iit.cnr.it>
X-Original-To: regext@ietfa.amsl.com
Delivered-To: regext@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 8D9753A0F87; Tue, 22 Sep 2020 08:06:53 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.899
X-Spam-Level:
X-Spam-Status: No, score=-1.899 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, NICE_REPLY_A=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=unavailable autolearn_force=no
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 N2ZBFW0aGvlP; Tue, 22 Sep 2020 08:06:51 -0700 (PDT)
Received: from smtp.iit.cnr.it (mx4.iit.cnr.it [146.48.98.151]) by ietfa.amsl.com (Postfix) with ESMTP id A4C513A0F7A; Tue, 22 Sep 2020 08:06:49 -0700 (PDT)
Received: from localhost (localhost [127.0.0.1]) by smtp.iit.cnr.it (Postfix) with ESMTP id 66B33B80308; Tue, 22 Sep 2020 17:06:48 +0200 (CEST)
X-Virus-Scanned: Debian amavisd-new at mx4.iit.cnr.it
Received: from smtp.iit.cnr.it ([127.0.0.1]) by localhost (mx4.iit.cnr.it [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id o97dsgXUT-CB; Tue, 22 Sep 2020 17:06:45 +0200 (CEST)
Received: from [192.12.193.108] (pc-loffredo.nic.it [192.12.193.108]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by smtp.iit.cnr.it (Postfix) with ESMTPSA id 1706EB80088; Tue, 22 Sep 2020 17:06:45 +0200 (CEST)
To: "Eric Vyncke (evyncke)" <evyncke=40cisco.com@dmarc.ietf.org>, The IESG <iesg@ietf.org>
Cc: "regext-chairs@ietf.org" <regext-chairs@ietf.org>, "draft-ietf-regext-rdap-sorting-and-paging@ietf.org" <draft-ietf-regext-rdap-sorting-and-paging@ietf.org>, "regext@ietf.org" <regext@ietf.org>, "tomh@apnic.net" <tomh@apnic.net>
References: <160043414369.27718.13984513177906805196@ietfa.amsl.com> <1554277d-b5b2-6c09-ff4b-6fc821b3ddec@iit.cnr.it> <BN6PR11MB1844FF7A123C446B198BFF20A93C0@BN6PR11MB1844.namprd11.prod.outlook.com> <4D4E9B47-369C-4FF4-8D4C-EE7145A15F4E@cisco.com>
From: Mario Loffredo <mario.loffredo@iit.cnr.it>
Message-ID: <7f9bab8b-3659-c9fc-a15d-f99975db9e82@iit.cnr.it>
Date: Tue, 22 Sep 2020 17:03:26 +0200
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0
MIME-Version: 1.0
In-Reply-To: <4D4E9B47-369C-4FF4-8D4C-EE7145A15F4E@cisco.com>
Content-Type: multipart/alternative; boundary="------------5DF9CB9E2F30B6BA3527672B"
Content-Language: it
Archived-At: <https://mailarchive.ietf.org/arch/msg/regext/qht8Ixk4cqKMHOBqKsufi37FqeE>
Subject: Re: [regext] Éric Vyncke's No Objection on draft-ietf-regext-rdap-sorting-and-paging-16: (with COMMENT)
X-BeenThere: regext@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Registration Protocols Extensions <regext.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/regext>, <mailto:regext-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/regext/>
List-Post: <mailto:regext@ietf.org>
List-Help: <mailto:regext-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/regext>, <mailto:regext-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 22 Sep 2020 15:06:54 -0000
Hi Eric, plase find my comments below. Il 22/09/2020 15:45, Eric Vyncke (evyncke) ha scritto: > > Mario > > It seems that I forgot to press SEND on this one ;-) > > First thank you for your reply > > Look for EV> below (I have removed a couple of parts where we are all > in agreement) > > -éric > > Hi Eric, > > thanks a lot for your review. Please find my comments inline. > > Il 18/09/2020 15:02, Éric Vyncke via Datatracker ha scritto: > > Éric Vyncke has entered the following ballot position for > > -- Section 2.2 -- > > I am concerned that a server having to compute "totalCount" (even if > only to > > return the first 10 entries) may spend a lot of time computing this > number in > > the absence of index... The security section does not offer a > definitive answer > > to this issue IMHO. E.g., I would prefer to allow the server to > refuse to serve > > "totalCount" until the last page (and even). > > [ML] The count operator is optional so a server can support it or not. > Moreover, it's reasonable to expect that an RDAP server will rely on > some db indexes to efficiently perform searches no matter if it supports > counting or not. > > EV> While I fully understand the use of totalCount (as explained > below), the server should be able to refuse to serve this totalCount > in the case of non-existing index. There are also indexes that are not > really useful to count: e.g., in SQL ‘col LIKE “%foo%” will require a > parsing of all rows. > [ML] Absolutely but, in general, if the server allows the selection of a result set, it can allow results count as well. Regarding your example, servers are obviously not recommended to support a wildcard prefixed search pattern no matter if the count operator is requested. Conversely, if a server support this kind of search, it can allow counting because, in any case, a SQL select count takes much less time than a SQL select. > > > The purpose of the count operator is just to enable users to immediately > know the size of the result set and, consequently, evaluate if the > result set is worthy to be scanned. Sometimes, the number of results is > itself considered a relevant information. > > Lastly, there's no need to count the total number of results through a > query at each possible result set page because, in general, it doesn't > change. Therefore, when an initial query includes the count operator two > strategies can be implemented: > > - the server includes the totalCount value in the first page and doesn't > include the count operator in the possible pagination links so the > totalCount value is not displayed in the following pages; > > - the server includes the totalCount value in the first page, encode it > in the cursor value and include the count operator in the possible > pagination links so that the totalCount value is passed from page to > page and always displayed. > > In both cases, only one counting query is processed. > > > -- Section 2.3 -- > > > > I am concerned that a server having to sort on client-side selection of > > properties may have a huge performance impact in the absence of > relevant DB > > indexes.The security section does not offer a definitive answer to > this issue > > IMHO. > [ML] A server is not required to implement all and only the sorting > properties reported in the document. Obviously, an RDAP server is > expected to support only those sorting properties which are mapped onto > db indexed fields. > > EV> I am afraid that while I was reading of the document, I failed to > spot this specific list of properties as the bare minimum and having > the possibility for the server to refuse to serve a filtering based on > some properties. > > [ML] The sorting properties included in the document are those which are more likely to be supported. They are listed in the document just to improve the interoperability between clients and servers. They are not required and, most probably, they aren't the only ones. > > > > > == NITS == > > > > -- Section 2.2 -- > > Should the URI be > > "https://example.com/rdap/domains?name=*example.com&count=true" (also > > applicable to section 2.3) > > > [ML] I'm not sure to catch your comment. count and sort are two optional > query parameters which can be used together or separately. > > EV> simply to use the documentation/examples domains both in the host > and in the query 😉 > > [ML] Undestood. I'll uniform the queries. Moreover, to make the examples more realistic, I'll change all the prefixed wildcard patterns into suffixed wildcard patterns. Best, Mario > _______________________________________________ > regext mailing list > regext@ietf.org > https://www.ietf.org/mailman/listinfo/regext -- Dr. Mario Loffredo Systems and Technological Development Unit Institute of Informatics and Telematics (IIT) National Research Council (CNR) via G. Moruzzi 1, I-56124 PISA, Italy Phone: +39.0503153497 Mobile: +39.3462122240 Web: http://www.iit.cnr.it/mario.loffredo
- [regext] Éric Vyncke's No Objection on draft-ietf… Éric Vyncke via Datatracker
- Re: [regext] Éric Vyncke's No Objection on draft-… Mario Loffredo
- Re: [regext] Éric Vyncke's No Objection on draft-… Eric Vyncke (evyncke)
- Re: [regext] Éric Vyncke's No Objection on draft-… Mario Loffredo