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

Updating associated records saves each record individually #24

Open
brendanstennett opened this issue Jul 23, 2015 · 0 comments
Open

Updating associated records saves each record individually #24

brendanstennett opened this issue Jul 23, 2015 · 0 comments

Comments

@brendanstennett
Copy link
Collaborator

It seems each records gets updated and saved individually rather than using update_all. Using the current method to update each record is slow and any failure (possibly due to transient database connectivity problems) will effect the integrity of the denormalized data.

I propose switching using update_all which is much faster and only requires 1 query to update all documents, lowering the possibility of the update failing.

Any objects to this?

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