[Tools-discuss] Re: Agenda Data Loading Slowly
Eric Rescorla <ekr@rtfm.com> Mon, 13 October 2025 17:32 UTC
Return-Path: <ekr@rtfm.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 41A9C72972B9 for <tools-discuss@mail2.ietf.org>; Mon, 13 Oct 2025 10:32:31 -0700 (PDT)
X-Virus-Scanned: amavisd-new at ietf.org
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, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=0.001] autolearn=ham autolearn_force=no
Authentication-Results: mail2.ietf.org (amavisd-new); dkim=pass (2048-bit key) header.d=rtfm-com.20230601.gappssmtp.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 8Rba-Lab6Qgb for <tools-discuss@mail2.ietf.org>; Mon, 13 Oct 2025 10:32:30 -0700 (PDT)
Received: from mail-yw1-x112b.google.com (mail-yw1-x112b.google.com [IPv6:2607:f8b0:4864:20::112b]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by mail2.ietf.org (Postfix) with ESMTPS id 7BF6072972B2 for <tools-discuss@ietf.org>; Mon, 13 Oct 2025 10:32:30 -0700 (PDT)
Received: by mail-yw1-x112b.google.com with SMTP id 00721157ae682-78113fdfd07so17713777b3.2 for <tools-discuss@ietf.org>; Mon, 13 Oct 2025 10:32:30 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rtfm-com.20230601.gappssmtp.com; s=20230601; t=1760376750; x=1760981550; darn=ietf.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=U7qTIFD9vFajmzj0U7w1RmZxQQi9mIn1j1hsH6+20h4=; b=u75TvgGNxl8qWZvyDPD46IbPEqWEtASHvNL83xBRZs67eXlmFG4loZBhzilqLjlEdp cwylTdsjb/pBFMpsorVHQe58w7kRo8E47BKZeOrlwqdgqoqVmzO99vzCFms+qRk6rHNA AczcoXTJbi2SuxwDgkbFrUdcJgBL4lb08Yfk8qK0gf+xQFAXz9MuqlOl6tpAcXMfffPm A/C8pYnvdaZtS95zPhk5e1hUsFly1nkW7qvFjoGLg/GTWMmoD3jrO9cp3dI9nROqy3ht RGYRSzboyGBYQ7Hojbbugz2+BdchgCoBEUbHcXAKzwUxV53/jB9wIBLNi4cmow/1RbCt bziQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1760376750; x=1760981550; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=U7qTIFD9vFajmzj0U7w1RmZxQQi9mIn1j1hsH6+20h4=; b=H9BcFjBojTT4xR/Z0bMZ4UzqMskf++chsd56G0InVagxSB+ysZJ4cr66NurX4ZkspJ aOWaGn2vsUhyJnkFZU5bbg0m9ZU2v7C8LGqHAcOkjlBjzItMiPTjXvmPt44nUuJyiSB2 nd5VqhZObXzHqvMUbwXNL7jfzdpFLn4P734o8CE7uc10kxrzffEz78WyktQxVDx/e1O+ gRYJzY5AlPw/esuaMw63/9E6XKdeFyS3tyQDHSTL7GT63C6Mcs+BTTxCgOTF0LAoaKCp IVT9ahilAlVIxbBPlns7JjaIfLQnxGHXjcGTZTzjhO6yNpo+hgibnw3vXU5N81aUBeIo +Oyg==
X-Gm-Message-State: AOJu0YzlATRsAJ4j2tziXXqDlCdbEu2K7/5zfVJ06aWziYVwlP6jzqLk kKDAeUmkM/tajSptS/B4GLLQ10F4I1hkuyfaivc7jyRjSgzt7fwy9jZXQ7P21yyRZS4z+Y8kHDZ e6A2sGCPgL55XP+Kqu8Wv9nj+hfNXPnluzxExH+omaKAANiYY2rR8GDR5kw==
X-Gm-Gg: ASbGncvOen/27njeiOmbgZQgVt6o4o2uQ2CwRQF/1Jbbw0F2bRlsPcSGgWvkigOfuxD DiYtMFk/Eh/8YH76aF1Us6LejKHcBfTKkLW7Hd+wwvttIL6vDXqAO8ZBdRb+prao6wNsKlXyhQk J3nEbRywBjXePqyEA49sq4Ey/mF3+mZCYZcjjB1vplIMCR3o29xd8Hd/kzLKAhR9XH+NIhIjfJh GWtJiyc9qbKILlxM+i+YRF2FXzDCrZUdjbVyNNosSGYorDBUNN/S9iZY8kTwTaVjHaqL8NeSkfv 6C7jpvxeFmBgJNj1e2SIjXCa6Qz80aw51qF8YgwIfWfaIeTekcxs7G815BkGbA==
X-Google-Smtp-Source: AGHT+IHwrIAbxdfcxkoiqRKG/FLCdAmaeA0mrZKucV/HOeprduH2zyB90que6BBHcoGUxUAYGs0Okd0BR4nGVsV0V38=
X-Received: by 2002:a53:c452:0:b0:604:3ec3:d78 with SMTP id 956f58d0204a3-63ccb7ea5c2mr14042531d50.11.1760376749838; Mon, 13 Oct 2025 10:32:29 -0700 (PDT)
MIME-Version: 1.0
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> <a5c2b820-cdf2-4d10-bfc2-35d844a082e8@nostrum.com>
In-Reply-To: <a5c2b820-cdf2-4d10-bfc2-35d844a082e8@nostrum.com>
From: Eric Rescorla <ekr@rtfm.com>
Date: Mon, 13 Oct 2025 10:31:41 -0700
X-Gm-Features: AS18NWB203qs0zyMz052GeLcO82zEtNAiAYFt9zm8Zz9iVUOpAttTVPXC0jrbUo
Message-ID: <CABcZeBO=LSorKYx1VNuLkcBXt+VOYpho7DXAqDSdzPLGRXP08Q@mail.gmail.com>
To: Robert Sparks <rjsparks@nostrum.com>
Content-Type: multipart/alternative; boundary="000000000000d870d006410da6da"
Message-ID-Hash: 23BYBJPILE2AIXGZWMD2HXSE77SE5IRP
X-Message-ID-Hash: 23BYBJPILE2AIXGZWMD2HXSE77SE5IRP
X-MailFrom: ekr@rtfm.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/dK89rQ-2KDv2N8jbewY_c-KTgTw>
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>
On Mon, Oct 13, 2025 at 10:15 AM Robert Sparks <rjsparks@nostrum.com> wrote: > 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. > It seems like an even more incremental step would just be to use celery to re-generate the top X slow view, thus keeping the cache warm. This would have similar timeliness and performance consequences properties but with no need to mess around with buckets. -Ekr 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 to tools-discuss-leave@ietf.orghttps://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