Re: [Tools-discuss] bibxml3 database reload frequency

Carsten Bormann <cabo@tzi.org> Fri, 21 August 2020 08:59 UTC

Return-Path: <cabo@tzi.org>
X-Original-To: tools-discuss@ietfa.amsl.com
Delivered-To: tools-discuss@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 0A8CD3A08CC for <tools-discuss@ietfa.amsl.com>; Fri, 21 Aug 2020 01:59:34 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.897
X-Spam-Level:
X-Spam-Status: No, score=-1.897 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham 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 p_myT0KkUtF7 for <tools-discuss@ietfa.amsl.com>; Fri, 21 Aug 2020 01:59:31 -0700 (PDT)
Received: from gabriel-vm-2.zfn.uni-bremen.de (gabriel-vm-2.zfn.uni-bremen.de [134.102.50.17]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 985BC3A08C1 for <tools-discuss@ietf.org>; Fri, 21 Aug 2020 01:59:31 -0700 (PDT)
Received: from [172.16.42.100] (p5089ae91.dip0.t-ipconnect.de [80.137.174.145]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by gabriel-vm-2.zfn.uni-bremen.de (Postfix) with ESMTPSA id 4BXwSK5ZVqz107w; Fri, 21 Aug 2020 10:59:29 +0200 (CEST)
Content-Type: text/plain; charset="utf-8"
Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.1\))
From: Carsten Bormann <cabo@tzi.org>
In-Reply-To: <6f903329-2280-c5bc-0d8e-3e96292e0850@gmx.de>
Date: Fri, 21 Aug 2020 10:59:29 +0200
Cc: tools-discuss@ietf.org
X-Mao-Original-Outgoing-Id: 619693169.33587-eb02c83c6110d15f5955e55cc6318d65
Content-Transfer-Encoding: quoted-printable
Message-Id: <45FEA6AC-C3EB-47D7-969C-F5FD23DA7B62@tzi.org>
References: <010001740c9e6adf-5f978dea-f19a-4298-8376-b82bf3be0835-000000@email.amazonses.com> <5d239c70-0124-c4d4-5dd2-8e712c7b14cd@levkowetz.com> <010001740df92895-fbde9921-36cf-455c-a1a6-4dbd2f32ebfd-000000@email.amazonses.com> <6f903329-2280-c5bc-0d8e-3e96292e0850@gmx.de>
To: Julian Reschke <julian.reschke@gmx.de>
X-Mailer: Apple Mail (2.3608.120.23.2.1)
Archived-At: <https://mailarchive.ietf.org/arch/msg/tools-discuss/coeoXSRXB4GzWSPwYlv2q3QM-IU>
Subject: Re: [Tools-discuss] bibxml3 database reload frequency
X-BeenThere: tools-discuss@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: IETF Tools Discussion <tools-discuss.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/tools-discuss>, <mailto:tools-discuss-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/tools-discuss/>
List-Post: <mailto:tools-discuss@ietf.org>
List-Help: <mailto:tools-discuss-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tools-discuss>, <mailto:tools-discuss-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 21 Aug 2020 08:59:34 -0000

On 2020-08-21, at 09:43, Julian Reschke <julian.reschke@gmx.de> wrote:
> 
> Am 21.08.2020 um 00:24 schrieb Kent Watsen:
>> Hi Henrik and Carsten - thanks for the responses!
>> ...
> 
> FWIW, another way to avoid this is to reference the ID *with* version
> number. That's a static, reliable reference.

Using kramdown-rfc’s indirection methods that actually is less painful than it sounds.  Still requires going through the references once (which idnits can do, with a few missed and a few false positives).  Certainly better than fighting with an old cache entry.

> And yes, that means that the source document needs to be updated when
> the ID is replaced. I consider that a feature, at least in those cases
> where the concrete version of the ID matters (such as when referencing
> specific details that might change or move to other sections).

That is indeed sometimes a useful editorial device.  It is too bad that the standard bibxml files use the same anchor for specific versions and for the generic “most-recent" reference, so you cannot have both references (or references to multiple versions) in one document; again, fixed by kramdown-rfc’s anchor replacement mechanism.

My recommendation would be:
When you need to reference a specific version, reference that, and use anchor replacement to get the version number into the label.
When you just want to reference the draft, use the “most-recent” reference, unless you have just changed that — in which case, use the reference to that specific version.  Occasionally, you will get an old version.  Kramdown-rfc’s cache lifetime is 1 h, but that doesn’t help with the longer processing intervals on the server.

Grüße, Carsten