Write events in parquet format and use DuckDB for your analytics?
I’ve had good experience with ClickHouse, too, but it feels a bit more like Postgres rather than SQLite in terms of portability.
https://clickhouse.com/docs/en/chdb
https://clickhouse.com/docs/en/operations/utilities/clickhou...
I'm writing in PHP, so it looks like that's a nonstarter for now, but _very_ interested to see if a PHP extension pops up for this in the future.
Do you mean periodically flushing a queue of logs into a new parquet file (e.g. named with a timestamp)?