Re:In-memory vs. disk-based DB: Why do you need a larger tha...
by boywitharupee on Saturday September 02, 2023 @03:15PM
(#37364573)
Basically, your solution ended up residing on-disk, but the data was fragmented in such a way that efficient lookup was possible? Did this copy from kernel space to userspace, also?
[ Parent
| on HN ]
Re:In-memory vs. disk-based DB: Why do you need a larger tha...
by hakunin on Saturday September 02, 2023 @03:26PM
(#37364682)
>the data was fragmented in such a way that efficient lookup was possible
Yeah, there's a build step that sorts and arranges data into "cells", making binary search possible.
Not sure about kernel/user space. I'm just calling `pread` from ruby, so only a few bytes are loaded per lookup.