1 line
2.6 KiB
Plaintext
1 line
2.6 KiB
Plaintext
<!-- SC_OFF --><div class="md"><p>Hi all, is anyone using org-ql with a big number of files, probably in combination with org-roam, instead of say deft? How well does it scale to thousands of files? I know that org-agenda can get pretty sluggish around a thousand files, but it's my understanding that org-ql is faster, although maybe not <em>that</em> faster. Any experience? Thanks!</p> <p>NOTE: this is not for TODOs but for general search, I've seen workarounds that exclude files not containing tasks nor projects from the search, but that's not what I'm interested in, I want to search every file and ideally using more structured queries like those of org-ql (vs deft).</p> <p>EDIT: I've been experimenting a bit with this:</p> <ul> <li>I cloned this <a href="https://github.com/Zettelkasten-Method/10000-markdown-files">big nonsense ZK</a> which is designed to stress-test note-taking apps.</li> <li>I converted all notes from md to org using pandoc: <code>for f in *; do pandoc --to org "$f" > "${f%%.md}.org"; done</code>. Not really necessary for what it follows, except for the file extension part, but anyway.</li> <li>Now, searching for some text with ripgrep is very fast, as expected, for example with 56/10000 matches:</li> </ul> <p>```</p> <blockquote> <p>time rg -c "to queer noises" *.org | wc -l 56</p> </blockquote> <p>real 0m0.317s user 0m0.195s sys 0m0.316s ```</p> <ul> <li>Now with org-ql the same search setting <code>org-directory</code> to be the ZK folder, requiring no grouping and just random order, and doing a <code>(regexp "to queer noises")</code> freezes, at least I've been waiting for minutes now for it to end. Repeating the search in a subset of that ZK with just a few hundred notes, it ends after some seconds, but it's still borderline usable.</li> </ul> <p>So I guess the answer is a sound NO, org-ql can't be reasonably used in a setup like this one. <a href="/u/github-alphapapa">u/github-alphapapa</a> do you have any objection to my methodology here? Thanks!</p> <p>EDIT: deft has also been terribly sluggish with this same ZK, both in generating the deft buffer and in searching through it, so the best option seems to be something like consult-ripgrep.</p> </div><!-- SC_ON -->   submitted by   <a href="https://www.reddit.com/user/nnenneplex"> /u/nnenneplex </a> <br/> <span><a href="https://www.reddit.com/r/orgmode/comments/r719tf/orgql_with_many_files/">[link]</a></span>   <span><a href="https://www.reddit.com/r/orgmode/comments/r719tf/orgql_with_many_files/">[comments]</a></span> |