Home / Companies / Tiger Data / Blog / June 2018

June 2018 Summaries

1 posts from Tiger Data

Filter
Month: Year:
Post Summaries Back to Blog
The problem lies in the query planning process of Postgres, which takes a long time for tables with many partitions, leading to performance degradation even when not processing all chunks in hypertables. The culprit was found to be in the `get_relation_info()` function, which fetches table statistics and opens metadata files from heap data files for all chunks, resulting in unnecessary work if chunk exclusion is possible. An optimization has been made by moving chunk exclusion to before stats are fetched, reducing planning times significantly in tests with large datasets, even when only a few chunks were involved.
Jun 27, 2018 744 words in the original blog post.