timoninmaxim commented on code in PR #11342:
URL: https://github.com/apache/ignite/pull/11342#discussion_r1598855150
##########
modules/core/src/main/java/org/apache/ignite/internal/cache/query/index/IndexQueryProcessor.java:
##########
@@ -125,6 +131,38 @@ public <K, V> IndexQueryResult<K, V> queryLocal(
IgniteBiTuple<K, V> row = currVal;
+ if (cctx.events().isRecordable(EVT_CACHE_QUERY_OBJECT_READ) &&
Review Comment:
Let's cache the result of `isRecordable` for the iterator. This method might
be pretty expensive, as checks some volatile collections. Events are changed
rarely, so it's safe to cache the result for whole iterator
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]