mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2025-12-26 08:00:01 +00:00
chore(mito): nit avoid clone the batch object on inverted index building (#7388)
fix: avoid clone the batch object on inverted index building Signed-off-by: lyang24 <lanqingy93@gmail.com>
This commit is contained in:
@@ -660,8 +660,8 @@ impl IndexBuildTask {
|
|||||||
// TODO(SNC123): optimize index batch
|
// TODO(SNC123): optimize index batch
|
||||||
loop {
|
loop {
|
||||||
match parquet_reader.next_batch().await {
|
match parquet_reader.next_batch().await {
|
||||||
Ok(Some(batch)) => {
|
Ok(Some(mut batch)) => {
|
||||||
indexer.update(&mut batch.clone()).await;
|
indexer.update(&mut batch).await;
|
||||||
}
|
}
|
||||||
Ok(None) => break,
|
Ok(None) => break,
|
||||||
Err(e) => {
|
Err(e) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user