Pinned
implemented postgres extended query protocol pipelining, makes queries at notion go about 50% faster
why? notion runs many queries in transactions so we can use pgbouncer txn pooling + SET LOCAL; many reads look like this:
await query(sql`BEGIN; SET LOCAL search_path = ...`)