Giter VIP home page Giter VIP logo

Comments (4)

jaroslawr avatar jaroslawr commented on August 15, 2024

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.

Hipska avatar Hipska commented on August 15, 2024

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.

Felixoid avatar Felixoid commented on August 15, 2024

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.

Felixoid avatar Felixoid commented on August 15, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.