~/talk

Writing High Performance Databases in Go

Talkat GopherCon 2014 · 2014-04-24..04-26· [databases, go]
links:none on file
slides:none on file

SkyDB and Bolt are written in Go with selective C integration via cgo and LuaJIT/LLVM for hot paths; design uses mmap, a B+ tree, MVCC and zero-copy reads. Batched commits show large gains (1→10 ≈ 9×, 100 ≈ 45×, larger batches ≈ 90×) and transaction coalescing trades latency for huge throughput. An unsafe direct-memory layout bypasses encoding and reaches 20 million values a second on reads, at the cost of portability and safety.

AI-written summary · about

  1. 0:00Writing databases in Go
  2. 1:30Two database types compared
  3. 2:53Why Go over C or Java
  4. 5:40Low-level Go optimizations
  5. 6:00Bolt design with mmap
  6. 7:21Batching writes for speed
  7. 8:46JSON encoding cost
  8. 10:14Zero-copy data mapping
  9. 13:22Performance optimization layers
  10. 15:15Mmap and disk trade-offs
  11. 17:03Go LMDB wrappers compared
  12. 18:05Designing intuitive APIs without sacrificing performance
  13. 19:30Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.