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

Fetch revisions in small batches. #13

Closed
wants to merge 2 commits into from

Conversation

iandunn
Copy link

@iandunn iandunn commented Apr 3, 2015

If there are a large number of revisions to fetch (e.g., 20,000) then the request can time out and the process can run out of memory.

Fixes #9

iandunn added 2 commits April 2, 2015 17:29
If there are a large number of revisions to fetch (e.g., 20,000) then the request can time out and the process can run out of memory.

Fixes markjaquith#9
Previously, if a large number of revisions were being fetched (e.g., 100,000), the number of duplicates would grow exponentially and the process could run out of memory before it purged them at the end of the loop.

Purging them on each iteration is more expensive, but necessary to keep the process alive in those circumstances.

See markjaquith#9
@DrewAPicture
Copy link

FWIW, I've been holding onto a slightly more robust version of batching for this for a couple of months. I submitted the PR over on #14 if you're interested in a different take. Whoops :)

@iandunn
Copy link
Author

iandunn commented Jan 26, 2017

Closing in favor of #14

@iandunn iandunn closed this Jan 26, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

PHP Warning, Not Updating
2 participants