mmap vs pread in a real Go storage engine 0 ▲ Internals for Interns 4 hours ago · Tech · hide · 0 comments When you build a storage engine in Go, sooner or later you need to answer a very plain question: “How should the code read bytes from files?” This sounds too low-level to matter. A database has bigger ideas: partitions, blocks, indexes, filters, compression, compaction, caches, query planning. But all of these ideas end up doing the same simple action many times: “Read N bytes from file F at offset O.” No comments yet. Log in to reply on the Fediverse. Comments will appear here.