You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Andrzej Bialecki (JIRA)" <ji...@apache.org> on 2019/06/18 18:05:00 UTC
[jira] [Commented] (LUCENE-8864) Add Query Memory Estimation
Ability in QueryVisitor
[ 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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org