From: Laurence von Bottorff <borgauf@gmail.com>
To: Ihor Radchenko <yantar92@posteo.net>
Cc: yeti <yeti@tilde.institute>, emacs-orgmode@gnu.org
Subject: Re: org-id-locations as a large-scale database store?
Date: Tue, 12 Mar 2024 15:57:33 -0500 [thread overview]
Message-ID: <CAFAhFSXT8yXrNDcnsr_TRtK2UdQ+sH4h2uMD8b7Lviq-nTs47A@mail.gmail.com> (raw)
In-Reply-To: <87h6hbjni6.fsf@localhost>
[-- Attachment #1: Type: text/plain, Size: 1307 bytes --]
Any docs on what org-id-locations is about, who/what uses it?
On Tue, Mar 12, 2024 at 1:44 PM Ihor Radchenko <yantar92@posteo.net> wrote:
> yeti <yeti@tilde.institute> 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 <https://orgmode.org/>.
> Support Org development at <https://liberapay.com/org-mode>,
> or support my work at <https://liberapay.com/yantar92>
>
>
--
⨽
Lawrence Bottorff
Grand Marais, MN, USA
borgauf@gmail.com
[-- Attachment #2: Type: text/html, Size: 2207 bytes --]
next prev parent reply other threads:[~2024-03-12 20:58 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-12 5:03 org-id-locations as a large-scale database store? Laurence von Bottorff
2024-03-12 16:49 ` yeti
2024-03-12 17:00 ` Rick Lupton
2024-03-12 17:20 ` Ihor Radchenko
2024-03-12 18:37 ` yeti
2024-03-12 18:47 ` Ihor Radchenko
2024-03-12 20:57 ` Laurence von Bottorff [this message]
2024-03-12 21:16 ` Ihor Radchenko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAFAhFSXT8yXrNDcnsr_TRtK2UdQ+sH4h2uMD8b7Lviq-nTs47A@mail.gmail.com \
--to=borgauf@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=yantar92@posteo.net \
--cc=yeti@tilde.institute \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).