We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f55dee4 commit 3ad7b48Copy full SHA for 3ad7b48
src/query/mod.rs
@@ -61,10 +61,13 @@ use crate::utils::time::TimeRange;
61
pub static QUERY_SESSION: Lazy<SessionContext> =
62
Lazy::new(|| Query::create_session_context(PARSEABLE.storage()));
63
64
-/// Dedicated multi-threaded runtime to run
+/// Dedicated multi-threaded runtime to run all queries on
65
pub static QUERY_RUNTIME: Lazy<Runtime> =
66
Lazy::new(|| Runtime::new().expect("Runtime should be constructible"));
67
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.
71
pub async fn execute(
72
query: Query,
73
stream_name: &str,
0 commit comments