You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@carbondata.apache.org by akashrn5 <ak...@gmail.com> on 2019/04/01 06:32:40 UTC
Re: [DISCUSSION] Add new compaction type for compacting delta data
file
hi,
Thanks for clearing the doubt.
So according to my understanding, bascially you want to merge all the delete
delta files and base carbondtaa files and write a new segment. basically
this helps to reduce IO right?
So here i have some questions regarding that
1. are you planning for a new DDL for this operation? if you are, then DDL
structure?
2. how about the concurrency will handled with this? like update and delete,
compaction to table when this compaction is progress? if concurrent
operations are blocked well and good, else how the segment mapping wil be
maintained?
3. As jacky said, i agee with him, this will be costly operation as you
will be writing the whole segment again and time consuming, how this will be
handled so that user wont be blocked for query or other operation. or is it
recommended to do this operation in offpeak hours?
I suggest, can you please add the design document and create a JIRA for
this, it would be helpful.
Thanks.
Regards,
Akash R
--
Sent from: http://apache-carbondata-dev-mailing-list-archive.1130556.n5.nabble.com/
Re: [DISCUSSION] Add new compaction type for compacting delta data
file
Posted by akashrn5 <ak...@gmail.com>.
hi,
Thanks for reply. Once you create jira and design document is ready, we can
further decide the impact and any other things to handle.
Thank you
Regards,
Akash R
--
Sent from: http://apache-carbondata-dev-mailing-list-archive.1130556.n5.nabble.com/
Re: [DISCUSSION] Add new compaction type for compacting delta data
file
Posted by xm_zzc <44...@qq.com>.
Hi:
Just as I said before, we can add a compaction type called
'iud_delta_compact' for command 'alter table table_name compact' to support
this feature.
The concurrency for this feature will be handled as the same as other
compaction types, and it's
recommended to do this operation in off peak hours.
I will create a jira for this feature later.
--
Sent from: http://apache-carbondata-dev-mailing-list-archive.1130556.n5.nabble.com/
Re: [DISCUSSION] Add new compaction type for compacting delta data
file
Posted by xuchuanyin <xu...@apache.org>.
emm, eliminating delta files to enhance query performance is quite reasonable
and compaction is a candidate for it. However I have some questions about
this, maybe they will help in your design.
Q1:
A segment with delta files means there are some UD(update/delete) operations
on this segment before, which means there will still be some UD in the
future. So, is it worth conpacting this segment?
Also please keep in mind that UD operations will be blocked if the
compaction is going on.
Q2:
I feel there may be too many kinds of compaction in carbondata...
What if in the further I want another compaction that can merge smaller
carbondata file into larger ones? Will we add another kind of compaction? I
think it's time for us to consider extensibility for the further while
proposing this feature.
Q3:
Currently all kinds of compactions are using the query procedure to rewrite
all the records for the related segments.
Suppose we have a segment with 100 carbondata files and we only delete one
record in this segment. The
penalty of rewriting all the records for this segment is heavy.
--
Sent from: http://apache-carbondata-dev-mailing-list-archive.1130556.n5.nabble.com/
Re: [DISCUSSION] Add new compaction type for compacting delta data
file
Posted by xm_zzc <44...@qq.com>.
Hi:
Just as I said before, we can add a new compaction type called
'iud_delta_compact' for command 'alter table table_name compact' to support
this feature.
The concurrency of this feature will be handled as the same as other
compaction type, and it's recommended to do this operation in off peak
hours.
I will create a jira task for this feature later.
--
Sent from: http://apache-carbondata-dev-mailing-list-archive.1130556.n5.nabble.com/