pgr0ss
Distributed Data, Centralized Fixes
LLMs Are Too Big. My Log Router Doesn't Need to Sing
Advent of Management
This depends on how you implement the ledger. For pgledger, I store the balance in every entry, so to find a historical balance, you just need to find the most recent entry before that time:
https://github.com/pgr0ss/pgledger/blob/df5541dcf25f416a6a24...
I have a mental TODO to add a query function to make this simpler.
Double-Entry Ledgers: The Missing Primitive in Modern Software
Double-Entry Ledgers: The Missing Primitive in Modern Software
Visualizing Financial Data with DuckDB and Plotly
A Ledger in PostgreSQL Is Fast
The Next Generation of the Heroku Platform
DuckDB over Pandas/Polars
The Many Ways to Read Tech News
duckdb -c \
"select * from ( \
select unnest(assets)->>'browser_download_url' as url \
from read_json('https://api.github.com/repos/go-gitea/gitea/releases/latest') \
) \
where url like '%linux-amd64'"DuckDB as the New jq
> And it is bizarre to me that you could run a payments system without high-availability or immutability at its core.
I’m not sure what you’re referring to here as my post didn’t really go into these topics.
> Also putting logs in a database alongside your core data is such a bad idea.
I’m not suggesting putting all logs into the database. I’m suggesting that for a certain type of info (that is often logged), I find it more useful to put it in the database instead.