~/talk

In-memory database with indices from scratch

Talkat NDC TechTown 2023 · 2023-09-18..09-21· [databases]
slides:none on file

Shows a practical C++ implementation that layers co_await-based fetch and a tiny scheduler on top of libcurl multi API to run many downloads in one thread, exposes utilities like all/optional/all_ranges and cancellation, and uses streamed 3-character n-grams to fetch index shards and intersect postings to answer searches. Demonstrates it hitting about 400–500 MB/s, includes a working hello world demo and reports using it to download and merge large JSON indexes in production.

AI-written summary · about

  1. 0:00Introduction
  2. 3:44High-level async in C++
  3. 9:04Coroutines in C++
  4. 15:56Coroutines internals
  5. 28:43Divide function example
  6. 30:09Promise type and async ops
  7. 34:05Scheduling with libcurl
  8. 37:40Simplified scheduler
  9. 39:27Multi API for downloads
  10. 41:16Implementing fetch
  11. 42:01All and optional promises
  12. 44:09Ranges and pipable ops
  13. 45:39Fetching and scraping
  14. 47:04Search engine with indices
  15. 49:20Q&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.