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

Model.all.each instead of Model.all.run.each #6

Open
hakunin opened this issue May 4, 2011 · 0 comments
Open

Model.all.each instead of Model.all.run.each #6

hakunin opened this issue May 4, 2011 · 0 comments

Comments

@hakunin
Copy link

hakunin commented May 4, 2011

I think that doing

Model.all.run.each { |m| ... }

Puts all the models into an array and thus if you have many many of them, you will go over the allowed memory on appengine.
Doing this, would be much nicer memory wise:

Model.all.each { |m| ... }

But thats not supported in my version of Mirah datastore.

I rewrote my query to use the bassic AppEngine API and I was able to go through 80k+ rows in a single request, thats pretty impressive. We should have that ability too :)

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

No branches or pull requests

1 participant