Comments (2)
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.
Additional info:
- I see partition index on time is by default in descending order, so expected value on hypertable level should be near -1.
- For one particular chunk where correlation was near 0,2 I executed:
CLUSTER my_chunk USING index_on_time_column;
- 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:
- 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.
- 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)
- Exclude osm chunks in show_chunk output HOT 1
- [Flaky test] job_errors_permissions
- [Bug]: Crash on insert or deletion into compressed chunk HOT 21
- [Enhancement]: Compression job should process chunks in order of range_start HOT 3
- NOTIFY / LISTEN on Hypertables HOT 4
- [Bug]: Foreign keys on compressed hypertables not working
- [Bug]: ERROR XX000 (internal_error) more than one invalidation watermark found HOT 2
- [Flaky test] chunk_utils HOT 1
- [Bug]: server crash: DETAIL: Failed process was running: autovacuum: ANALYZE _timescaledb_internal._hyper_1553_1989_chunk HOT 2
- [Bug]: DELETE FROM compressed chunks ignoring subquery HOT 7
- [Bug]: Update for single row on compressed hypertable tries to scan compressed chunks when using date_trunc or time_bucket HOT 1
- [Bug]: Attribute not suitable recommended for segment_by
- [Bug]: time_bucket_gapfill using timezone returns incorrect data for daylight saving HOT 12
- [Bug]: SQL Error [XX000]: ERROR: variable not found in subplan target list HOT 2
- [Bug]: start_offset and end_offset set to NULL in refresh policies do not takes min() and max() of the hypertable HOT 9
- [feature-request]: reorder policy that wont blocks writes HOT 1
- [Bug]: pg_upgrade cannot upgrade 2.12.2-pg13 to 2.14.2-pg15 HOT 5
- [Bug]: max_tuples_decompressed_per_dml_transaction is not working as expected HOT 5
- [Bug]: Add_dimension errors that only integer, timestamp and date data fields are supported, but smallint is also working HOT 4
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 timescaledb.