[Tools-discuss] Re: Agenda Data Loading Slowly
Robert Sparks <rjsparks@nostrum.com> Mon, 13 October 2025 17:15 UTC
Return-Path: <rjsparks@nostrum.com>
X-Original-To: tools-discuss@mail2.ietf.org
Delivered-To: tools-discuss@mail2.ietf.org
Received: from localhost (localhost [127.0.0.1]) by mail2.ietf.org (Postfix) with ESMTP id 40DD67294BDE for <tools-discuss@mail2.ietf.org>; Mon, 13 Oct 2025 10:15:31 -0700 (PDT)
X-Virus-Scanned: amavisd-new at ietf.org
X-Spam-Flag: NO
X-Spam-Score: -2.097
X-Spam-Level:
X-Spam-Status: No, score=-2.097 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, HTML_MESSAGE=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: mail2.ietf.org (amavisd-new); dkim=pass (2048-bit key) header.d=nostrum.com
Received: from mail2.ietf.org ([166.84.6.31]) by localhost (mail2.ietf.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id YzRWEYr_Q3vk for <tools-discuss@mail2.ietf.org>; Mon, 13 Oct 2025 10:15:28 -0700 (PDT)
Received: from magus.nostrum.com (magus.nostrum.com [104.236.102.164]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by mail2.ietf.org (Postfix) with ESMTPS id D452A7294BC2 for <tools-discuss@ietf.org>; Mon, 13 Oct 2025 10:15:28 -0700 (PDT)
Received: by magus.nostrum.com (Postfix) id 3FCA8745C8E; Mon, 13 Oct 2025 12:15:28 -0500 (CDT)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=nostrum.com; s=submissiondev2025; t=1760375728; bh=rEwpnITIvwfDAdPzFvdjQvNHyrc1QunvU17vecYe4Qg=; h=Date:Subject:To:Cc:References:From:In-Reply-To; b=hgL4/ieKQYO9VXBvx6iR1XTed25s/qYNGHRpT8/WYEkJmjAy8bbI9XS+0ZA6ZZUGN SfA5p6gzv6/oCyo62b7rwqowlnUv7BX/1+F8XM0pTUAXeotVjk6JMDDJl5IMy8KVeG fwBi4KyElG7SLwed6Xm9ZzJWZuGU0CBvBMgMcGK3eaLVm9juO2CqpZAo8CpQtkmL1h 7pSuintTCBEFXWVlZtr+LTwAclE1DogWRrXU7sp70k3AA49NMQNWYeWZwbOgeZqtmX dGTCd8pUE6YfcyihGqhXHn8Wd2ZEEe360PJVhvhdk8cN6wKmCDNXDv4sCwcoANfb4X Wnbxi8yE7v9JA==
Content-Type: multipart/alternative; boundary="------------gUY963n0mbzr6CxbPEliLmGn"
Message-ID: <a5c2b820-cdf2-4d10-bfc2-35d844a082e8@nostrum.com>
Date: Mon, 13 Oct 2025 12:15:27 -0500
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
To: Eric Rescorla <ekr@rtfm.com>
References: <CABcZeBPhbyjj77XnfkUK5JnYe-hSmmrKi5Hb51qKENMTmrnFJg@mail.gmail.com> <CF629982-B435-4440-8E21-02A1319A7EE9@gmail.com> <CABcZeBO=t3NcEx2oo9Fu3-avo-ag4YmLNHL2NgrHTW4MFcOowA@mail.gmail.com> <b5150421-cbdd-424b-bede-8f39c2c40290@nostrum.com> <CABcZeBM8Zi+QZ43iwV7ShKyko-dBHh20qKNM7BAxvqTMgE_9ww@mail.gmail.com>
Content-Language: en-US
From: Robert Sparks <rjsparks@nostrum.com>
Autocrypt: addr=rjsparks@nostrum.com; keydata= xsDNBFx4PQwBDADIIJqFKIeYNmVR3iH8YnNqwApV+ci83VqFaPg0UXZAZ1utH/2O2LOLJKmV Ol11+lOSfH4OJgpARt37PWbqfG2TzzGfEucRBPMAV8TEDmzKL+7/OUMLEoPeexgxz6ADxK2Q ACK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HZ5Z7 I8lfj4rMCctcE0pudHYWrhznMBoUaEADjiOpdw==
In-Reply-To: <CABcZeBM8Zi+QZ43iwV7ShKyko-dBHh20qKNM7BAxvqTMgE_9ww@mail.gmail.com>
Message-ID-Hash: Z3D3P367AUAOTL3SV2LK5X7RO43SJ2UD
X-Message-ID-Hash: Z3D3P367AUAOTL3SV2LK5X7RO43SJ2UD
X-MailFrom: rjsparks@nostrum.com
X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-tools-discuss.ietf.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header
CC: tools-discuss@ietf.org
X-Mailman-Version: 3.3.9rc6
Precedence: list
Subject: [Tools-discuss] Re: Agenda Data Loading Slowly
List-Id: IETF Tools Discussion <tools-discuss.ietf.org>
Archived-At: <https://mailarchive.ietf.org/arch/msg/tools-discuss/y0FlrU2y_t7Dv1ydjJ8ZdBQMvZ0>
List-Archive: <https://mailarchive.ietf.org/arch/browse/tools-discuss>
List-Help: <mailto:tools-discuss-request@ietf.org?subject=help>
List-Owner: <mailto:tools-discuss-owner@ietf.org>
List-Post: <mailto:tools-discuss@ietf.org>
List-Subscribe: <mailto:tools-discuss-join@ietf.org>
List-Unsubscribe: <mailto:tools-discuss-leave@ietf.org>
First line at https://github.com/ietf-tools/datatracker/blob/ed6b061cfe4279328dbb7b914f5f7f76644521f9/ietf/meeting/views.py#L2312-L2443. It's a simple origin-side cache, time is the only invalidator. More complicated invalidation would bring a new set of slow calculations. Again, reworking this to use a celery task to push the result to a bucket on a similar period +/- so the browser never sees the time the work takes would be one incremental step we could make. There's not a concrete schedule for doing that. It's highly likely that we can do this between 124 and 125, but there are a lot of other things in flight. A larger refactor that would make a lot of the calculation in that view, such as a data structure that makes finding the times/rooms of all scheduled sessions on the official agenda in the set of all sessions scheduled in different time/rooms in draft agendas or those not scheduled at all, be more efficient manner is needed - what's grown incrementally from the original scheduling management tooling is over-complicated at this point. _That_ level of refactor is much further out. In the meantime, if you let me know what you're trying to take from the page, I might be able to point you to places that aren't doing a lot of the work that endpoint does that you might not be using. RjS On 10/13/25 11:50 AM, Eric Rescorla wrote: > On Mon, Oct 13, 2025 at 9:41 AM Robert Sparks <rjsparks@nostrum.com> > wrote: > > Yes, the agenda is cached, and when the cache expires it is > recalculated - that recalculation is very complicated (as it > returns, for instance, the current versions of each > (agenda/slides/drafts) for each group). > > Can you say more about how the caching works here? Is it just a simple > time-based cache or something else? > > We could (and will) refactor the page to distribute the the work > that's currently done in that one massive json load. We can also > move keeping a computed version published so the browser never > sees the time the computation takes, but that's not going to > happen before IETF 124. > > Is there a timeline for this work? > > -Ekr > > RjS > > On 10/13/25 10:59 AM, Eric Rescorla wrote: >> >> >> On Mon, Oct 13, 2025 at 8:54 AM Bob Hinden <bob.hinden@gmail.com> >> wrote: >> >> Ekr, >> >> For what it’s worth, I just went to both links, only took a >> few seconds for me. >> >> >> Yes, presumably it's being cached somewhere. However, it's not at >> all uncommon >> for this to be slow, and I've seen the then-current agenda take a >> long time on >> a number of occasions, so I do think it's worth addressing. >> >> -Ekr >> >> >> Bob >> >> >>> On Oct 13, 2025, at 8:49 AM, Eric Rescorla <ekr@rtfm.com> wrote: >>> >>> Hi folks, >>> >>> I just went to load the agenda for IETF 123 >>> (https://datatracker.ietf.org/meeting/123/agenda) for <reasons>. >>> >>> It took 17s for the datatracker to send me the underlying >>> JSON file for the agenda >>> (https://datatracker.ietf.org/api/meeting/123/agenda-data) >>> It seems like it's faster on repeated load, so presumably >>> there is some caching going on, but 17s still seems pretty >>> excessive. >>> >>> -Ekr >>> >>> >>> >>> >>> <image.png> >>> >>> ----------------------------------------------- >>> Tools-discuss mailing list -- tools-discuss@ietf.org >>> To unsubscribe send an email to tools-discuss-leave@ietf.org >>> https://mailarchive.ietf.org/arch/browse/tools-discuss/ >> >> >> ----------------------------------------------- >> Tools-discuss mailing list --tools-discuss@ietf.org >> To unsubscribe send an email totools-discuss-leave@ietf.org >> https://mailarchive.ietf.org/arch/browse/tools-discuss/ > ----------------------------------------------- > Tools-discuss mailing list -- tools-discuss@ietf.org > To unsubscribe send an email to tools-discuss-leave@ietf.org > https://mailarchive.ietf.org/arch/browse/tools-discuss/ >
- [Tools-discuss] Agenda Data Loading Slowly Eric Rescorla
- [Tools-discuss] Re: Agenda Data Loading Slowly Bob Hinden
- [Tools-discuss] Re: Agenda Data Loading Slowly Eric Rescorla
- [Tools-discuss] Re: Agenda Data Loading Slowly Robert Sparks
- [Tools-discuss] Re: Agenda Data Loading Slowly Eric Rescorla
- [Tools-discuss] Re: Agenda Data Loading Slowly Robert Sparks
- [Tools-discuss] Re: Agenda Data Loading Slowly Eric Rescorla
- [Tools-discuss] Re: Agenda Data Loading Slowly Robert Sparks
- [Tools-discuss] Re: Agenda Data Loading Slowly Robert Sparks
- [Tools-discuss] Re: Agenda Data Loading Slowly Eric Rescorla
- [Tools-discuss] Re: Agenda Data Loading Slowly Rob Sayre
- [Tools-discuss] Re: Agenda Data Loading Slowly John C Klensin
- [Tools-discuss] Re: Agenda Data Loading Slowly Rob Sayre