[
https://issues.apache.org/jira/browse/LUCENE-8864?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16866896#comment-16866896
]
Andrzej Bialecki commented on LUCENE-8864:
-------------------------------------------
What kind of API do you propose here? Theoretically, if a query tree contains
queries that implement Accountable we can already use existing QueryVisitor API
to walk through the query tree and collect ramBytesUsed() from each sub-query.
And if a Query doesn't implement Accountable we have no way to predict this
(apart from \{{RamUsageEstimator.shallowSizeOf(Object)}}).
> Add Query Memory Estimation Ability in QueryVisitor
> ---------------------------------------------------
>
> Key: LUCENE-8864
> URL: https://issues.apache.org/jira/browse/LUCENE-8864
> Project: Lucene - Core
> Issue Type: Improvement
> Reporter: Atri Sharma
> Priority: Major
>
> In LUCENE-8855, there is a discussion around adding memory accounting
> capabilities to QueryVisitor to allow estimation of memory consumption by
> queries.'
> This Jira tracks the effort
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]