Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -279,11 +279,13 @@ impl QueryHandler for InternalHttpQueryHandler { | |
&measurement_scope, | ||
); | ||
context.observe_system_api_calls(&self.metrics.query_system_api_calls); | ||
context.observe_evaluated_canisters(&self.metrics.query_evaluated_canisters); | ||
|
||
// Add the query execution result to the query cache (if the query caching is enabled). | ||
if self.config.query_caching == FlagStatus::Enabled { | ||
if let (Some(key), Some(env)) = (cache_entry_key, cache_entry_env) { | ||
let call_counters = context.system_api_call_counters(); | ||
let _evaluated_ids = context.evaluated_canister_ids(); | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
dfinity-berestovskyy
Author
Member
|
||
self.query_cache.push(key, env, &result, call_counters); | ||
} | ||
} | ||
|
2 comments
on commit 130a4a6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dfinity-berestovskyy does these changes affect only the composite queries?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hey @Luca8991 Yes, those changes affect only composite queries, as for normal queries we get the result immediately, there are no nested calls, callbacks etc.
@dfinity-berestovskyy what's the purpose of this unused variable?