From 43ab38f4621d7e923709bf014b05d31a5b0489ec Mon Sep 17 00:00:00 2001 From: Timothy Quilling Date: Tue, 9 Dec 2025 15:18:00 -0500 Subject: [PATCH] fix: try not segmenting --- migrations/2025-11-01-114839_posts/up.sql | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/migrations/2025-11-01-114839_posts/up.sql b/migrations/2025-11-01-114839_posts/up.sql index 62b7f91b..1fd3d16e 100644 --- a/migrations/2025-11-01-114839_posts/up.sql +++ b/migrations/2025-11-01-114839_posts/up.sql @@ -300,11 +300,10 @@ SELECT create_hypertable( COMMENT ON TABLE posts IS 'TimescaleDB hypertable for posts (complete + stubs). Partitioned by rkey with 7-day chunks. Manual compression. No retention policy (full network scale).'; --- Enable compression +-- Enable compression (no segmentation for better compression ratio) ALTER TABLE posts SET ( timescaledb.compress, - timescaledb.compress_segmentby = 'actor_id', - timescaledb.compress_orderby = 'rkey DESC' + timescaledb.compress_orderby = 'actor_id, rkey DESC' ); -- Note: Compression policy omitted - compress chunks manually when needed -- 2.51.2