This message was deleted.
# general
s
This message was deleted.
b
With reindexing you can perform schema changes, repartition data, filter out unwanted data, enrich existing data, and so on. With compaction you can optimize segment size for better query performance.
u
it means whatever i can do with compaction i can do with re-indexing too.
a
You could setup auto-compaction which can be very useful despite it offering a subset of re-indexing's capabilities
b
Yes, We can do, There is an process called Auto compaction, which you need not do anything and druid will take care of compacting the segments for you
b
"whatever i can do with compaction i can do with re-indexing too." - I believe so; compaction is like one special case of reindexing, which is more general.
u
got it. thanks
b
yw!
a
Compaction is simpler than re-indexing in two situations, one of which is to schedule it via auto-compaction. The other is that it also doesn't require you to know or configure the schema and granularities of the datasource as they are auto-determined