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

Optimized nested collections deletion in DocumentPersister #1879

Closed
wants to merge 2 commits into from

Conversation

watari
Copy link
Contributor

@watari watari commented Oct 19, 2018

Implemented CollectionPersister::deleteAll method for simultaneous deletion of collections that is belong to one document.

Q A
Type improvement
BC Break no
Fixed issues

Summary

Improved removal of scheduled for removal collections. Now all collections that is belong to one parent is deleted in one query.

…letion of collections that is belong to one document.
@malarzm malarzm added this to the 2.0.0 milestone Oct 19, 2018
$user = $this->getTestUser('jwage');

$persister->deleteAll(
[$user->categories[0]->children[0]->children, $user->categories[0]->children[1]->children],
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What would happen if the method is called with [$user->categories[0]->children[0]->children, $user->categories ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added filter for excluding of all sub-paths from the paths set.
Changes cant be found in PR to the master

@watari
Copy link
Contributor Author

watari commented Oct 22, 2018

Close this PR to 1.2.x since same PR is opened to master

@watari watari closed this Oct 22, 2018
@watari
Copy link
Contributor Author

watari commented Oct 22, 2018

Close this PR to 1.2.x since same PR is opened to master

@alcaeus alcaeus removed this from the 2.0.0-Beta1 milestone Dec 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants