Comments (4)
In investigating a performance bottleneck, we have run into this same issue, except without using tags - this is not specific to tags. We have a lot (20 000) different paths , doing
SELECT ... FROM graphite ... WHERE Path IN (SELECT Path FROM graphite_tree WHERE Path LIKE '...')
can be 5 times as fast as doing:
SELECT Path FROM graphite_tree WHERE Path LIKE '...'
and using the results to construct a huge static Path IN query:
SELECT ... FROM graphite ... WHERE Path IN (SELECT Path FROM graphite_tree WHERE Path IN ('abc', 'def', ...)
Apparently the subquery form allows clickhouse to run additional optimizations.
from graphite-clickhouse.
Also came to this issue when doing a seriesByTag
that results in a lot of paths. This time the ClickHouse server throws errors because the resulting query (Path IN ( ..
) is too big.
from graphite-clickhouse.
Hello, colleagues.
Since the logic of a data fetching is slightly changed after ClickHouse internal aggregation was implemented, now it's necessary to first get the data locally, group metrics by the retention scheme, and only then send specific queries with proper step and aggregate function to the DB.
Although, #100 may address the issue mentioned here since benchmarks look promissing. It would be nice if you could test it and bring your feedback.
from graphite-clickhouse.
I assume this should be solved with #100, but feel free to open it in case of another opinion!
from graphite-clickhouse.
Related Issues (20)
- How to let graphite-web's tag works with graphite-clickhouse? HOT 20
- graphite-clickhouse is broken with ClickHouse >21.1 over tls HOT 5
- Tags and grafana multi-value variables
- Carbonapi got unexpected EOF on some queries responce HOT 2
- "Too many simultaneous queries" error after upgrading to 0.12 HOT 6
- Automate packages pushing for autobuilds and releases HOT 5
- Wrong glibc version in Debian Buster HOT 1
- Cannot disable index table HOT 1
- Metrics with NULL values are not processed correctly HOT 4
- Purpose of filter "Path in metrics_list" HOT 4
- empty output in CH because of different timezone in cluster and on carbon-clickhouse/graphite-clichouse/carbonapi node HOT 5
- seriesByTag('') causes "index out of range [0] with length 0" HOT 6
- Unescaped metric name in the response. HOT 5
- Printed default config is invalid HOT 1
- seriesByTag invalid regular expression parsing HOT 4
- Question: Skip Aggregation on the first retention policy HOT 1
- Internal aggregation is using incorrect from and until unix timestamps when maxDataPoint is used HOT 7
- invalid memory address or nil pointer dereference HOT 1
- graphite-clickhouse 0.13+ - not support tree-table? HOT 3
- Release new version? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from graphite-clickhouse.