[
https://issues.apache.org/jira/browse/PIG-2923?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13461228#comment-13461228
]
Dmitriy V. Ryaboy commented on PIG-2923:
----------------------------------------
Oh wow the patch I attached was the old version that breaks DistinctDataBag
(due to the fact that size() on DDB makes it non-distinct.. ). The version I
have sitting on my laptop uses getMemorySize() and does document what
"spill_register_threshold" is (between patches it changes from 100 elements to
100 KB in ram).
> Lazily register bags with SpillableMemoryManager
> ------------------------------------------------
>
> Key: PIG-2923
> URL: https://issues.apache.org/jira/browse/PIG-2923
> Project: Pig
> Issue Type: Improvement
> Reporter: Dmitriy V. Ryaboy
> Assignee: Dmitriy V. Ryaboy
> Attachments: bagspill_delayed_register.patch
>
>
> Currently, all Spillable DataBags get registered by the BagFactory at the
> moment of creation. In practice, a lot of these bags will not get large
> enough to be worth spilling; we can avoid a lot of memory overhead and
> cheapen the process of finding a bag to spill when we do need it, by allowing
> Bags themselves to register when they grow to some respectable threshold.
> Related JIRAs: PIG-2917, PIG-2918
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira