You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running ./manage.py fetch_flickr_photos --days=all on a 512MB Digital Ocean box ended up with the process being killed after importing about 1500 photos. Works fine on my MacBook.
Running ps aux | grep 'python' while it runs shows the RSS usage continuing to grow as the script runs (from about 46,000 to 87,000 on my MacBook).
I rejigged ditto/flickr/fetch/fetchers.py to save photo data after fetching a page of photos (500 photos), rather than storing all the data up and saving it all at the end, but that doesn't seem to change much.
I tried poking around in ditto/flickr/fetch/fetchers.py with a couple of memory profiling things, but couldn't see anything that was growing, that didn't reset after starting a subsequent page of photos.
I'm stumped, so leaving this for now.
The text was updated successfully, but these errors were encountered:
Rather than fetching all the data and then saving the Photos, save them after
fetching a single page (500 photos).
An attempt to reduce the memory usage, but I don't think it achieved anything.
Ref #148
Running
./manage.py fetch_flickr_photos --days=all
on a 512MB Digital Ocean box ended up with the process being killed after importing about 1500 photos. Works fine on my MacBook.Running
ps aux | grep 'python'
while it runs shows the RSS usage continuing to grow as the script runs (from about 46,000 to 87,000 on my MacBook).I rejigged
ditto/flickr/fetch/fetchers.py
to save photo data after fetching a page of photos (500 photos), rather than storing all the data up and saving it all at the end, but that doesn't seem to change much.I tried poking around in
ditto/flickr/fetch/fetchers.py
with a couple of memory profiling things, but couldn't see anything that was growing, that didn't reset after starting a subsequent page of photos.I'm stumped, so leaving this for now.
The text was updated successfully, but these errors were encountered: