From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id SH3MMRTFJ2OzvAAAbAwnHQ (envelope-from ) for ; Mon, 19 Sep 2022 03:25:40 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id 4F+xMRTFJ2NmiwAAauVa8A (envelope-from ) for ; Mon, 19 Sep 2022 03:25:40 +0200 Received: from mail.notmuchmail.org (yantan.tethera.net [135.181.149.255]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 5D4EA1FD3A for ; Mon, 19 Sep 2022 03:25:40 +0200 (CEST) Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 7BF7A5E012; Mon, 19 Sep 2022 01:25:37 +0000 (UTC) Received: from fethera.tethera.net (fethera.tethera.net [IPv6:2607:5300:60:c5::1]) by mail.notmuchmail.org (Postfix) with ESMTP id 50DA35DC08 for ; Mon, 19 Sep 2022 01:25:34 +0000 (UTC) Received: by fethera.tethera.net (Postfix, from userid 1001) id 6152C5FBC0; Sun, 18 Sep 2022 21:25:33 -0400 (EDT) Received: (nullmailer pid 3184635 invoked by uid 1000); Mon, 19 Sep 2022 01:25:32 -0000 From: David Bremner To: Jose A Ortega Ruiz , notmuch@notmuchmail.org Subject: Re: Notmuch emacs client is slow when opening inbox. In-Reply-To: <871qs9riqd.fsf@mail.jao.io> References: <875yhmfglb.fsf@gmail.com> <871qs9riqd.fsf@mail.jao.io> X-List-To: notmuch Date: Sun, 18 Sep 2022 22:25:32 -0300 Message-ID: <87zgew6tpv.fsf@tethera.net> MIME-Version: 1.0 Message-ID-Hash: D6CTELHWBY4GBIR4IGA3PSQA4BPEW7KJ X-Message-ID-Hash: D6CTELHWBY4GBIR4IGA3PSQA4BPEW7KJ X-MailFrom: david@tethera.net X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-notmuch.notmuchmail.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.3 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: DE ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1663550740; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-owner:list-unsubscribe:list-subscribe:list-post; bh=+izZZnCKl8pf9nRIYrUJodKWk7GV/IZaSxMqTyNSGZY=; b=fwrVR0rFSRBOvcU3IxzXgbL+1Ob2rGqwyeYfbGcqnkG44EwfotmAwiB+3zzbx7DZ3LnlB5 eX7bcpkb2G0325/faAb1oGaOmqhO/IbXRemiKnc+nZSE0nS0yrdrZZNeVXluwlZVGKYFAQ ORWHcXbXIzBFM1NFHVeBouvAJH6pnUHGz1qgDg6G8Eg48b5DpaTQQSlIC40/yKllRwyaqh E9OQ/AK1kPBy6eYj6PReNCVIELFYNDUG4HoXlVOVf22NtVkfXKrBwZtHxbxGYfhgb7F+AB ewkaYphfj9dAEGLQzUNFgra8S0hwPGVfA9XEzD2G+26Ky60oy4C4tCO5aNHZyA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1663550740; a=rsa-sha256; cv=none; b=QJ5fAjeLl+J/F+LcVY1DgUqQEFo5oQ99xjGTw7CyHhSw9+fk+Hr8qtXivRGp95rCaoQG4y 4xPABEBYZVqdLrLI1J+2XdKUI7wkINUwTTfYpwMyvv8cUr1cIy14a36/5ewiyzTn5ZefS0 BgtEPMhu+/ZFRPz7lb+K2Y2Cxa7bmvJx6ly4XSFSXJtNzOY8R61B682xoJqRN6cl37dWEJ KEdvadZKLvd1HlBx567cls2NEuSBERZZyZK8DvagpbAKa0yDuDrBp8iREtD1oq7fbp8LcT wwIUsy+AqaTuNCe/63feL5knubnWTC+zBik/1gk5ObvamhFw8eLmEROw4k4dFA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 135.181.149.255 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Spam-Score: -2.12 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 135.181.149.255 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: 5D4EA1FD3A X-Spam-Score: -2.12 X-Migadu-Scanner: scn1.migadu.com X-TUID: M4tilfWWc869 Jose A Ortega Ruiz writes: > > interesting! if we were to have this, i think i'd prefer pagination > rather than increasing the limit and keeping the old ones, and make it > work for tree searches too. and perhaps the limit (page size) could be > a query parameter, so that one could have different page sizes for > different queries. if that makes sense (and i'm not missing a better > way already in place), i might try to implement it when i have a bit of > time. Before going to far with pagination, maybe get Jani to recap the difficulties he saw at the time that led him to propose the simpler approach. I can think of a few issues, but I don't really know if they are blockers. - the result set is going to vary dynamically as messages are added and removed from the database - As far as I can tell, there isn't really an easy way to jump to page n of the results.