Tag: nexora
All the stories with the tag "nexora".
-
Building a Graph Database 9 - Lua Scripting Layer
How Nexora embeds Lua 5.4 as a scripting and REPL layer — the UserData bridge that turns GraphStore methods into Lua calls, the sandbox that keeps scripts from escaping to the OS, and the REPL's expression auto-eval trick.
-
Building a Graph Database 8 - Write-Ahead Log
How Nexora's WAL intercepts every page write, what a WAL frame looks like on disk, how recovery scans the sidecar file after a crash, and how checkpoint-on-close moves data back to the main file.
-
Building a Graph Database 7 - Indexes
How Nexora maps a logical page number to a physical page ID in O(1), what a directory page looks like on disk, and how the index grows when the database exceeds a single directory page.
-
Building a Graph Database 6 - Buffer Store
How Nexora caches pages in memory to avoid redundant disk reads, what the clock eviction algorithm does, and how dirty pages are written back on close.
-
Building a Graph Database 5 - Labels and Strings
How Nexora deduplicates label strings, maps label IDs to string data in O(1), and stores variable-length strings in a two-ended buffer with overflow chaining.