All series

TIL

2 chapters, arranged in reading order.

  1. 01 Chapter
    9 min read

    Proving SQLx’s Statement Cache with bpftrace

    SQLx prepares and caches every query you run, transparently, in an LRU that belongs to the connection rather than the pool. This post traces the Postgres wire protocol with bpftrace to watch what is happening under the hood.

  2. 02 Chapter
    11 min read

    One Lock to Rule Them All

    How to simplify migrations thanks to postgres advisory locks using rust and sqlx. Observing the locks with bpftrace.