[ 
https://issues.apache.org/jira/browse/DRILL-3874?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14939085#comment-14939085
 ] 

Chris Westin commented on DRILL-3874:
-------------------------------------

The fix I'm testing adds tracking the memory used so far, once we determine 
that we're dealing with very large records. Usage is sampled periodically, and 
used to rachet down the batch size limit to avoid consuming so much memory.

> flattening large JSON objects consumes too much direct memory
> -------------------------------------------------------------
>
>                 Key: DRILL-3874
>                 URL: https://issues.apache.org/jira/browse/DRILL-3874
>             Project: Apache Drill
>          Issue Type: Bug
>          Components: Execution - Flow
>    Affects Versions: 1.1.0
>            Reporter: Chris Westin
>            Assignee: Chris Westin
>
> A JSON record has a field whose value is an array with 20,000 elements; the 
> record's size is 4MB. A select is used to flatten this. The query profile 
> reports that the peak memory utilization was 8GB, most of it used by the 
> flatten. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to