Batch Inserts in PostgreSQL

I recently added support for batch inserts to koyo and thought I'd make a quick post about it. Here's what it looks like to use this feature: (define ib (make-insert-batcher #:on-conflict '(do-nothing (ticker)) 'tickers '([isin "TEXT"] [ticker "TEXT"] [added_at "TIMESTAMPTZ"]))) (with-database-connection [conn db] (for ([(isin ticker added-at) (in-sequence datasource)]) (ib-push! ib conn isin…