News for hackers. Stuff that matters.
Re:SQLite on Rails: The how and why of optimal performance by rodgerd on Wednesday September 11, 2024 @07:14PM (#41516122)
Write events in parquet format and use DuckDB for your analytics?
Re:SQLite on Rails: The how and why of optimal performance by notpushkin on Wednesday September 11, 2024 @09:40PM (#41516845)
This. If you’re looking for something portable, DuckDB is hard to beat. It’s pretty much the SQLite for analytics.

I’ve had good experience with ClickHouse, too, but it feels a bit more like Postgres rather than SQLite in terms of portability.

Re:SQLite on Rails: The how and why of optimal performance by tosh on Thursday September 12, 2024 @04:11AM (#41518634)
Take a look at chDB and clickhouse-local. Clickhouse can do a lot even without running it as a server.

https://clickhouse.com/docs/en/chdb

https://clickhouse.com/docs/en/operations/utilities/clickhou...

Re:SQLite on Rails: The how and why of optimal performance by iambateman on Wednesday September 11, 2024 @10:18PM (#41516984)
Thanks for this...I'd never heard of DuckDB.

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.

Re:SQLite on Rails: The how and why of optimal performance by pradeepchhetri on Wednesday September 11, 2024 @10:31PM (#41517035)
There was a great talk[0] recently from Laravel core team member about ClickHouse, Probably you will enjoy watching it.

[0] https://www.youtube.com/watch?v=_jjvaFWWKqg

Re:SQLite on Rails: The how and why of optimal performance by pradeepchhetri on Wednesday September 11, 2024 @10:25PM (#41517011)
You should look at ClickHouse which has good PHP client

[0] https://github.com/smi2/phpClickHouse

Re:SQLite on Rails: The how and why of optimal performance by tosh on Thursday September 12, 2024 @04:09AM (#41518615)
afaiu appending to parquet files is not cheap, you basically have to re-write the file.

Do you mean periodically flushing a queue of logs into a new parquet file (e.g. named with a timestamp)?