The Argument
The system I work on keeps its sales documents in two databases, and every few weeks the same argument comes back to our standup.
One side: "The data is already in Phoenix. Let's build the monthly report there. Why copy anything?" The report is a GROUP BY over a few months of documents. It runs for minutes, loads the region servers, and the dashboard times out first.
The other side: "It's one document with the wrong status. Just fix it in ClickHouse." The fix is an ALTER TABLE ... UPDATE . It changes one row and rewrites far more than one row, and a day of such fixes leaves a queue of mutations behind it.
I have argued both sides, sometimes in the same week.
The usual way to settle it is a label. Phoenix is OLTP, ClickHouse is OLAP; one stores rows, the other stores columns; one is an LSM tree, the other is not.…