zhannngchen commented on code in PR #38487: URL: https://github.com/apache/doris/pull/38487#discussion_r1695038629
########## be/src/olap/base_tablet.cpp: ########## @@ -1242,6 +1244,33 @@ Status BaseTablet::update_delete_bitmap(const BaseTabletSPtr& self, TabletTxnInf } auto t3 = watch.get_elapse_time_us(); + // If a rowset is produced by compaction before the commit phase of the partial update load + // and is not included in txn_info->rowset_ids, we can skip the alignment process of that rowset + // because data remains the same before and after compaction. But we still need to calculate the + // the delete bitmap for that rowset. + std::vector<RowsetSharedPtr> rowsets_skip_alignment; + if (is_partial_update) { + std::vector<RowsetSharedPtr> remained_rowsets; + for (const auto& rowset : specified_rowsets) { + if (rowset->produced_by_compaction()) { Review Comment: should consider that it's end version is less or equal to the max version in txn_info->rowset_ids. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org