Hacker News new | ask | show | jobs
by Kuyawa 97 days ago
I like OKF but...

I told AI to improve on that format and told me having to read all files just to get the frontmatter data is optimizable, sooo... to the trenches B)

AI > The problem with Frontmatter+YAML is O(n) read complexity. To know if a file is a "Person" or a "Meeting Note," the parser must read the entire file into memory, parse the YAML block, and then discard the content. For a vault of 10,000+ files, this becomes a massive I/O bottleneck

1 comments

Maybe store it in a Sqlite database and present records to the user as frontmatter + Markdown for import/export/editing?
Many competent embedded graph DBs out there. More suitable than graphs on SQLite projects.