5 ms·
On the subject of readable database source code: * LMDB is legendary for its performance, but it is source code is kind of hard to read. Found there's a pretty
by emmanueloga_ 8y ago
On the subject of readable database source code:
* LMDB is legendary for its performance, but it is source code is kind of hard to read. Found there's a pretty decent port to Java which looks a lot more readable [1].
* LMDB doesn't support SQL. But there's this SQL implementation: Apache Calcite [2]. Creating a DB using llmdbjava + Calcite sound like an interesting project.
1: https://github.com/lmdbjava/lmdbjava/tree/master/src/main/java/org/lmdbjava https://github.com/lmdbjava/lmdbjava/tree/master/src/main/ja...
2: https://calcite.apache.org/ https://calcite.apache.org/
- snaky 8y agoMaybe it would be better to start with https://github.com/leo-yuriev/libmdbx https://github.com/leo-yuriev/libmdbx
- emmanueloga_ 8y agoThis looks super interesting! Although it still looks more complicated to understand than lmdbjava. I feel any C codebase will be more difficult to follow since there's gonna be a lot more code related to memory management that happens automatically in a GC language like java.