10000 RFE: collect database operations · Issue #10 · drogus/bulk_api · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

RFE: collect database operations #10

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

Open
stiller opened this issue Jun 8, 2011 · 1 comment
Open

RFE: collect database operations #10

stiller opened this issue Jun 8, 2011 · 1 comment

Comments

@stiller
Copy link
stiller commented Jun 8, 2011

A single bulk call on multiple items still results in multiple db operations. Perhaps these could be bundles together somehow. (Example: marking all as done or clearing al marked-as-done in todos app)

@drogus
Copy link
Owner
drogus commented Jun 11, 2011

I agree that this could be done better, but there is no easy mechanism for that in Rails. Basically when you have validations and callbacks you can't just always update multiple items with one query. I guess we could have some kind of API to allow run specific methods in certain situations (like: mark_as_completed, which will mark multiple items as completed with one SQL query), but I don't have idea how could it look like. If you have any ideas on that, feel free to comment and/or send patch :)

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

2 participants
0