Skip to content

Commit c9b307c

Browse files
committed
Run Search on separate task
Search request are CPU intensive and will block the async runtime especially if run with parsing in the same time (For example in big DLT files) causing the app to lag. Also I've added block_in_place in places where we expecting the code to block due to intense CPU processes.
1 parent e76d9ea commit c9b307c

File tree

5 files changed

+776
-482
lines changed

5 files changed

+776
-482
lines changed

application/apps/indexer/processor/src/search/searchers/values.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ use super::{BaseSearcher, SearchState};
1515
pub type OperationResults = Result<ValueSearchOutput, SearchError>;
1616

1717
/// Contains the successful output of a value search operation.
18+
#[derive(Debug)]
1819
pub struct ValueSearchOutput {
1920
/// The range of processed lines numbers in which new matches were found.
2021
pub processed_range: Range<usize>,

0 commit comments

Comments
 (0)