ORAEX · Blog · Data and Observability
Data and Observability ·
Data grows faster than the query
Logs, metrics, product events and security data grow every day. The hard part is no longer storing that data. It is asking questions about it and getting the answer in time to decide. ClickHouse, a recent ORAEX partner, was built for that kind of question.
A query that took seconds on a million rows can take minutes on a billion. For the operations team, that means a slow dashboard and an interrupted investigation. For the business, it means a decision made with yesterday’s data.
This is the territory of large-volume data analysis, known by the acronym OLAP (online analytical processing): queries that add up, group and compare many records at once, instead of fetching one record at a time.
What ClickHouse is
ClickHouse is a column-oriented database management system built for data analysis. According to its own documentation, it is available as open-source software under the Apache 2.0 license and also as a cloud service. It uses SQL as its query language, which lowers the barrier for teams that already work with data.
Why analytical queries are fast
The ClickHouse documentation points to a few technical reasons. The main ones:
- Column storage. Instead of storing each record whole, the database stores each column separately. A query that uses 3 columns of a 100-column table reads only those 3.
- Per-column compression. Similar data sits together and compresses better, which reduces disk reads and network traffic.
- Data pruning. Indexes and ordering let the engine skip blocks the query does not need. The documentation sums up the idea this way: the fastest way to read data is not to read it.
- Vectorization. Operators process batches of rows at once and use processor instructions designed for that.
- Parallelism. The query is split into slices of data, usually one per processor core, and processed at the same time. Scale comes from adding cores or distributing across a cluster.
As an order of magnitude, an example in the documentation shows a query over 100 million rows answered in 92 milliseconds. The test hardware is not detailed, so the number helps to understand the potential, not as a promise for any environment.
Where it usually fits
According to ClickHouse’s own material, the most frequent scenarios are:
- Real-time analytics. Dashboards and applications that query large volumes with many users at the same time.
- Observability. Storing and querying logs, metrics and traces for longer and with SQL, with OpenTelemetry support. The vendor argues that compression makes it possible to retain raw telemetry, without sampling. That is the vendor’s argument, to be validated against your volume and cost.
- Security data. The site does not present ClickHouse as a SIEM. It cites scenarios such as threat prevention and fraud detection within real-time analytics. Security logs have the same profile of volume and speed, which is why the subject matters to anyone who operates that kind of data.
- Data warehouse. Querying large volumes of historical data, with integrations such as dbt and BI tools.
The integrations cited on the site include Kafka, dbt, Grafana and BI tools such as Tableau and Metabase.
Where it is not the right tool
Every database makes trade-offs, and ClickHouse optimizes analytical reads. Its own documentation acknowledges that:
- it does not have full transaction support;
- operations that change whole rows become proportionally more expensive;
- updates and deletes exist, but as mutations, and they are not its strong point.
For a transactional system, with many small writes and row-by-row consistency, such as a customer record or an order, the usual path is a transactional database. In many architectures the two coexist: the transactional one records, the analytical one answers.
Cloud or your own environment
ClickHouse can be used as open-source software in your own environment. There is also ClickHouse Cloud, a managed service available on AWS, Google Cloud and Azure, with storage and compute scaled separately. The vendor reports SOC 2 Type II certification and encryption in transit and at rest. The choice between the two models depends on who will operate it, on security and data residency requirements and on total cost.
Questions to decide well
Before bringing any data engine into the architecture, it is worth answering:
- How much data comes in per day, and for how long must it be retained?
- Are the queries analytical (aggregating a lot) or transactional (fetching and changing little)?
- How many people and systems query at the same time?
- Does the answer need to arrive in seconds, or are minutes enough?
- Who operates the environment: the internal team, a managed service or a partner?
What this means for ORAEX
ORAEX is now a ClickHouse partner and brings this technology into its conversations with clients about data, observability and security. Each environment has its own volume, risk and budget, and the right recommendation starts with understanding them. If your challenge is asking fast questions over a lot of data, talk to us.
Sources consulted
Vendor content, not independently verified.
Next step
Bring your next challenge to ORAEX
Talk to our specialists about your environment, your operation or your next technology decision.
Talk about my environment