Giter VIP home page Giter VIP logo

Comments (2)

mkindahl avatar mkindahl commented on June 10, 2024 1

Hello @igor2x and thanks for the bug report.

It looks like, to my surprise, data in my chunks are really super "fragmented" (non-clustered) and I need to cluster them, to increase performance.

Chunks are not automatically clustered in any way just because they are chunks. You have to run cluster on them explicitly to get the correlation back. If you do a lot of updates on the table, correlation will go down because the new row versions are added last in the data file, which affects correlation.

However, running cluster and then analyze should get the correlation statistics back.

from timescaledb.

igor2x avatar igor2x commented on June 10, 2024

Additional info:

  1. I see partition index on time is by default in descending order, so expected value on hypertable level should be near -1.
  2. For one particular chunk where correlation was near 0,2 I executed: CLUSTER my_chunk USING index_on_time_column;
  3. I have rechecked the correlation on time column on now clustered chunk and I have got: -0.9999673. This is very near -1 and this is pretty much expected value.

Conclusions:

  1. It looks like on hypertable correlations not updated. Maybe this is the value when first time PostgreSQL table was created and before it was converted to hypertable. Why, I assume value near 1, is not usual for TimescaleDB, it should be near -1, because of descending order of index.
  2. It looks like, to my surprise, data in my chunks are really super "fragmented" (non-clustered) and I need to cluster them, to increase performance.

from timescaledb.

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.