From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id eNjYDf/B8GWq/QAA62LTzQ:P1 (envelope-from ) for ; Tue, 12 Mar 2024 21:58:39 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id eNjYDf/B8GWq/QAA62LTzQ (envelope-from ) for ; Tue, 12 Mar 2024 21:58:39 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=FmMFLUjs; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1710277118; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=CrFR4U07tW41M/cpOtwUrjmqwmueaSh52scoSYgoZeo=; b=K6xLihgR4+9/JHCE23l48ysyFkHVYXWcsT28gqo7a7YsQPhPFVDwhN/qrsb37K5XngbDlO hWm5YzGMGnkwLann9JoaFzyHitRFUTLf9yU9VVTksKoPrzO4O6UILqtjzEXmNMjigLSymr +bfbn4TAhGZFyLIni5RVkCv2zrxnl5TMdIl89v3M3Tv3MNkjqkpHVIX3oKdKK1DFFovicj GwdVKPu3UqKo0qkQAKUDy1lseazoi++6aStVxPWchgtwCVeM1jVXu+93lxPowY2yk/+l8M 9K+/yfTRpZiXRAjPqQldy1qWXKPykbObvN7aUliA06DhexxY4flPzljS1EfclQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1710277118; a=rsa-sha256; cv=none; b=IZQOlkIbEh8MHe/JYg0Ua4vKGpFnritn3xC1FA4+t4rwtyY6QMnJYvDMHorKvtaGVhW1aL PvTOpq7UN0nB5TcQ+Kg0DaSo+tQp0EwaXH9Pa+YhGiwZR5+ALxxmix8VMRQevtONbwK+g6 yPSftAkFg3M3TE2oAGPeX80UbqJLkKhDdtjaXbyyAuD/4EpXqz0xLOH9u4H+g7YZP3GLvR WLXvP06De0QPQ8aVHL3EnkbrX9aenrxU1DbY35URCTVoXwpqxzIOMeFNKrIazyjpahPjai UZsgRybi8eSyt51OeP/trLWYQUtxQ6w7Zg+fyNARBht3oFydteSfz20N5TMckg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=FmMFLUjs; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gmail.com Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id BCFFE68D5E for ; Tue, 12 Mar 2024 21:58:38 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rk9C3-0008QK-Rs; Tue, 12 Mar 2024 16:57:51 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rk9C0-0008Q4-52 for emacs-orgmode@gnu.org; Tue, 12 Mar 2024 16:57:48 -0400 Received: from mail-ot1-x32d.google.com ([2607:f8b0:4864:20::32d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rk9By-0004gP-Aq for emacs-orgmode@gnu.org; Tue, 12 Mar 2024 16:57:47 -0400 Received: by mail-ot1-x32d.google.com with SMTP id 46e09a7af769-6e4e78f9272so1518473a34.2 for ; Tue, 12 Mar 2024 13:57:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1710277065; x=1710881865; darn=gnu.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=CrFR4U07tW41M/cpOtwUrjmqwmueaSh52scoSYgoZeo=; b=FmMFLUjswgLWiIRJnGlo68XnSHQ0rOBt6mhqUdTCQPB9XJsRQEM0jK7VNsu6mi2290 +PmXNwuuEeQkWlaZFTXY8ZfmJ827MLGOfR9tEqf8CNURIjGRsoNiD1l79xqKqStkq9BC vHx8NBKlgBG8E/cU9GCC7+ijNvhDJCxFv6ptNJRBYWdp79lz0sQEWB0NyqhyxXQBzVVv rH2j8WnwmGzqd4sMSodVQwkhLmYq/hIuSm5nS2fG/g1QEHWnsHvniSK7n6pEJDmBXlHG F2gTzhDUaJMoEQwCMaetuXeRfrVeVMTnJXpE4KRJSpP1UqRrZZ1nFnmxopzu/oAR/CEy rsOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710277065; x=1710881865; 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=CrFR4U07tW41M/cpOtwUrjmqwmueaSh52scoSYgoZeo=; b=uN/HxQCyhE7/DIYcZaOLX+W4OaRgdZoHnEnGA7A5XEbKZqsqUdwx/RdAoZB2PEn/T5 KViIBeZy+ibH0x/cBRJatA5tAK0BuS6FZ4WWkN8w8SP4lFznd985ec5zRiwklWfLTy84 yjByiD/BCwMxYYrTtQkSEmXzylsSQUtbljrm8HpFeduoK05g8vSfAQiWFVMdrSBhjyC4 laNlxb6ekNFoHf31AVIZ48aRQRMo9bPl3O336C9PfQqJOeIeRd5wrKiNH59HNyJeNHfy tKDrNnxWrGP/gnLHtOECr9n4BC/yLuxOMk34nDbFqtjkv76Kh+MD5BR9i8lVl4JAacHb +oOw== X-Forwarded-Encrypted: i=1; AJvYcCU8OH8vTG6nO/7fhqo0F2/wruOgLyyBkzVXOrFQ23iSYiJ2UluwkzIxgl8MqdhUmlgEnaaJzkTSc0Z//brKPP3BIayPytU= X-Gm-Message-State: AOJu0YwCq3ZMDrTrQFHWD3dDctn7RMPdoMYRQR5MQpfiCsNDqZaic4tT L6wvnSWfJbigIuV8hkZ9wf5PrAstkmjAjjUDx7FeCogbB9p6OviVEYAUawV5Eyt4PmH27ipKNBz EQdlylnS0m/uok5cMTlnMoY98LtFFihHn X-Google-Smtp-Source: AGHT+IH7OTxoqfS9Ysz3OTVNC/+1rFpGMU0pyDrOW4nnwgegMMojK/EnxXFyG6CFv9repqw3jorpoejgLRZnWS8Jxnk= X-Received: by 2002:a05:6830:128a:b0:6e5:1e6a:c438 with SMTP id z10-20020a056830128a00b006e51e6ac438mr10464648otp.16.1710277064813; Tue, 12 Mar 2024 13:57:44 -0700 (PDT) MIME-Version: 1.0 References: <87h6hb2y57.fsf@tilde.institute> <87jzm7jrjj.fsf@localhost> <87cyrz2t5f.fsf@tilde.institute> <87h6hbjni6.fsf@localhost> In-Reply-To: <87h6hbjni6.fsf@localhost> From: Laurence von Bottorff Date: Tue, 12 Mar 2024 15:57:33 -0500 Message-ID: Subject: Re: org-id-locations as a large-scale database store? To: Ihor Radchenko Cc: yeti , emacs-orgmode@gnu.org Content-Type: multipart/alternative; boundary="000000000000ea757506137ce8b7" Received-SPF: pass client-ip=2607:f8b0:4864:20::32d; envelope-from=borgauf@gmail.com; helo=mail-ot1-x32d.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -5.57 X-Spam-Score: -5.57 X-Migadu-Queue-Id: BCFFE68D5E X-Migadu-Scanner: mx11.migadu.com X-TUID: r7ztBLcmxCG2 --000000000000ea757506137ce8b7 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Any docs on what org-id-locations is about, who/what uses it? On Tue, Mar 12, 2024 at 1:44=E2=80=AFPM Ihor Radchenko wrote: > yeti writes: > > >> Does org-brain have anything to do with org-id-locations? > > > > I think so... > > > > E.g. org-brain.el 788-794: > > > > -------------------------------8<--------------------------------------= - > > (defun org-brain-entry-from-id (id) > > "Get entry from ID." > > (unless org-id-locations (org-id-locations-load)) > > (when-let ((path (gethash id org-id-locations))) > > (list (org-brain-path-entry-name path) > > (org-brain-headline-at (org-id-find id t)) > > id))) > > That's redundant. Calling `org-id-find' would suffice (org-id-find > internally arranges org-id-locations to be updated). > > In any case, loading and searching id locations scales well for > thousands of entries - I currently have 60+k entries there without > issues. > > -- > Ihor Radchenko // yantar92, > Org mode contributor, > Learn more about Org mode at . > Support Org development at , > or support my work at > > --=20 =E2=A8=BD Lawrence Bottorff Grand Marais, MN, USA borgauf@gmail.com --000000000000ea757506137ce8b7 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Any docs on what org-id-locations is about, who/what uses = it?

On Tue, Mar 12, 2024 at 1:44=E2=80=AFPM Ihor Radchenko <yantar92@posteo.net> wrote:
yeti <yeti@tilde.institute&= gt; writes:

>> Does org-brain have anything to do with org-id-locations?
>
> I think so...
>
> E.g. org-brain.el 788-794:
>
> -------------------------------8<----------------------------------= -----
> (defun org-brain-entry-from-id (id)
>=C2=A0 =C2=A0"Get entry from ID."
>=C2=A0 =C2=A0(unless org-id-locations (org-id-locations-load))
>=C2=A0 =C2=A0(when-let ((path (gethash id org-id-locations)))
>=C2=A0 =C2=A0 =C2=A0(list (org-brain-path-entry-name path)
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(org-brain-headline-at (org-id= -find id t))
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0id)))

That's redundant. Calling `org-id-find' would suffice (org-id-find<= br> internally arranges org-id-locations to be updated).

In any case, loading and searching id locations scales well for
thousands of entries - I currently have 60+k entries there without
issues.

--
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,=
or support my work at <https://liberapay.com/yantar92>



--
=E2=A8=BD
Lawrence Bottorff
Grand Marais, = MN, USA
--000000000000ea757506137ce8b7--