emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: org-id-locations as a large-scale database store?


From: Laurence von Bottorff
Subject: Re: org-id-locations as a large-scale database store?
Date: Tue, 12 Mar 2024 15:57:33 -0500

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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]