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

2024-03-12 Thread yeti
Laurence von Bottorff  writes:

> So again, is this org-brain approach DOA for anything big?

I like it, but even my small pool of notes is slow with org-brain.

---8<---
~ $ hash-table-size $org-id-locations
1322
--->8---

-- 
I do not bite, I just want to play.




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

2024-03-12 Thread yeti
Ihor Radchenko  writes:

> yeti  writes:
>
>> Laurence von Bottorff  writes:
>>
>>> So again, is this org-brain approach DOA for anything big?
>>
>> I like it, but even my small pool of notes is slow with org-brain.
>>
>> ---8<---
>> ~ $ hash-table-size $org-id-locations
>> 1322
>> --->8---
>
> 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)))
--->8---

-- 
I do not bite, I just want to play.