-
Notifications
You must be signed in to change notification settings - Fork 27
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
Bulk processing #72
Comments
That’s because of the The model manager is an entity CRUD oriented model. What you are trying to do in PHP would by far be better done in SQL using the WITH
deleted_foo AS (DELETE FROM foo WHERE {condition} RETURNING foo_id)
SELECT
count(foo.foo_id) AS existing_count,
count(deleted_foo.foo_id) AS deleted_count
FROM foo, deleted_foo |
Well that was not an good example :) |
I think maybe you should use a |
This means that I have to mix arrays and entities which is not nice. Having the ability to clear those entities would be nice. |
This is the job of another model manager, it will pop in in 3.0 |
What's the best way to process something in bulk when using iterator e.g.
unset doesn't seem to do anything. And the memory just keeps going up.
The text was updated successfully, but these errors were encountered: