Skip to content

Bulk processing #72

Description

@mvrhov

What's the best way to process something in bulk when using iterator e.g.

$foos = $model->findAll();

foreach ($foos as $foo) {
	if (foo) {
		$existed++;
	} else {
		$model->deleteOne($foo);
		$removed++;
	}

	unset($foo);
}

unset doesn't seem to do anything. And the memory just keeps going up.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions