Slackbot
05/01/2023, 6:17 AMBibek Sahoo
05/01/2023, 6:59 AMBibek Sahoo
05/01/2023, 7:00 AM{
"type": "compact",
"dataSource": "test",
"ioConfig": {
"type": "compact",
"inputSpec": {
"type": "interval",
"interval": "Provide your interval"
}
},
"granularitySpec": {
"segmentGranularity": "DAY",
}
}Bibek Sahoo
05/01/2023, 7:04 AMsegmentGranularity to Day/week/month/quarter/year.Viraj Raul
05/01/2023, 9:31 AMBibek Sahoo
05/01/2023, 11:56 AMViraj Raul
05/02/2023, 4:51 AMViraj Raul
05/02/2023, 4:53 AMViraj Raul
05/02/2023, 4:53 AMBibek Sahoo
05/02/2023, 4:55 AMViraj Raul
05/02/2023, 4:58 AMViraj Raul
05/02/2023, 11:49 AMBibek Sahoo
05/02/2023, 11:54 AMViraj Raul
05/02/2023, 11:54 AMViraj Raul
05/02/2023, 11:57 AMViraj Raul
05/02/2023, 3:14 PMViraj Raul
05/02/2023, 3:14 PMBibek Sahoo
05/03/2023, 5:03 AMViraj Raul
05/03/2023, 5:18 AMBibek Sahoo
05/03/2023, 5:32 AMBy default, compaction does not modify the underlying data of the segments. However, there are cases when you may want to modify data during compaction to improve query performance:
If, after ingestion, you realize that data for the time interval is sparse, you can use compaction to increase the segment granularity.
If you don't need fine-grained granularity for older data, you can use compaction to change older segments to a coarser query granularity. For example, from minute to hour or hour to day. This reduces the storage space required for older data.
You can change the dimension order to improve sorting and reduce segment size.
You can remove unused columns in compaction or implement an aggregation metric for older data.
You can change segment rollup from dynamic partitioning with best-effort rollup to hash or range partitioning with perfect rollup. For more information on rollup, see perfect vs best-effort rollup.Viraj Raul
05/03/2023, 5:36 AM"type": "compact",
"dataSource": "test",
"ioConfig": {
"type": "compact",
"inputSpec": {
"type": "interval",
"interval": "Provide your interval"
}
},
"granularitySpec": {
"segmentGranularity": "DAY",
}
}
i used this spec which you gave and changed the segment granularity to month cause it is set to month in my original table
the task duration for my original table is 1HViraj Raul
05/03/2023, 5:36 AMBibek Sahoo
05/03/2023, 5:37 AMBibek Sahoo
05/03/2023, 5:38 AMViraj Raul
05/03/2023, 5:38 AMViraj Raul
05/03/2023, 5:39 AMBibek Sahoo
05/03/2023, 5:39 AMViraj Raul
05/03/2023, 5:40 AMViraj Raul
05/09/2023, 11:33 AMViraj Raul
05/09/2023, 11:33 AMViraj Raul
05/09/2023, 11:34 AMBibek Sahoo
05/09/2023, 11:56 AMViraj Raul
05/10/2023, 5:07 AMViraj Raul
05/10/2023, 5:09 AMBibek Sahoo
05/10/2023, 5:14 AMViraj Raul
05/10/2023, 5:23 AMViraj Raul
05/10/2023, 5:25 AMBibek Sahoo
05/10/2023, 5:38 AM