Skip to content

Commit 3ad7b48

Browse files
author
Devdutt Shenoi
committed
doc: explain the change
1 parent f55dee4 commit 3ad7b48

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/query/mod.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,13 @@ use crate::utils::time::TimeRange;
6161
pub static QUERY_SESSION: Lazy<SessionContext> =
6262
Lazy::new(|| Query::create_session_context(PARSEABLE.storage()));
6363

64-
/// Dedicated multi-threaded runtime to run
64+
/// Dedicated multi-threaded runtime to run all queries on
6565
pub static QUERY_RUNTIME: Lazy<Runtime> =
6666
Lazy::new(|| Runtime::new().expect("Runtime should be constructible"));
6767

68+
69+
/// This function executes a query on the dedicated runtime, ensuring that the query is not isolated to a single CPU
70+
/// at a time and has access to the entire thread, enabling better concurrent processing, and thus quicker results.
6871
pub async fn execute(
6972
query: Query,
7073
stream_name: &str,

0 commit comments

Comments
 (0)