Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iteration risk note #955

Merged
merged 1 commit into from Mar 23, 2014
Merged

iteration risk note #955

merged 1 commit into from Mar 23, 2014

Commits on Feb 17, 2014

  1. iteration risk note

    > instead of loading the whole result into memory at once
    is not the full truth.
    
    There is a certain risk of processes getting killed due to memory allocation with large iteration. This is caused by result buffering of the client not being visible to PHP and thus not from 'within' the process.
    
    It is not certain that this occurs with all database clients but seems rather likely to at this point.
    
    This is only a proposal for discussion as I am not certain how to best add the information or if to add it at all (was it obvious before?). Personally I got confused by the existing description and didn't notice the memory implication until further investigation using `top` reported the process to run at 3+GB memory while PHP reported 400M real peak usage.
    Maik Penz committed Feb 17, 2014
    Copy the full SHA
    0677423 View commit details
    Browse the repository at this point in the history