Comments (4)
There are bulk updates in DM, eg:
Customer.all(:active => false).update!(:active => true)
This will perform one SQL query that targets only the rows where the customer is not active, and sets them to be active.
Can you describe more specifically what you're doing, perhaps supply a link to a gist with a simplified example?
from datamapper.github.com.
Heres something ive tried the first one works but is slow and the second one is so slow im not sure it works even. Theres maybe about 50000 inserts so maybe that just is too much.
https://gist.github.com/748761
from datamapper.github.com.
Heres the benshmark for 33460 data objects its not that bad!
storing this many chains: 33460
user system total real
113.740000 29.110000 142.850000 (315.949979)
from datamapper.github.com.
Closing issue, as not related to the website.
from datamapper.github.com.
Related Issues (16)
- Beginner Survey HOT 1
- bulk updates HOT 1
- Create a Beginner DM channel, and log it
- site-wide search
- List or link to Community Plugins
- New Rails 3.1 apps based on templates are missing asset handling and jQuery HOT 1
- Write tutorial on DM in Rails HOT 1
- templates incompatible with Rails 3.2.1
- Write comparison with ActiveRecord API in Rails 2
- Write about what DM can do that were pain points in AR HOT 1
- Bcrypt gem out of date
- Site temporarily disabled
- Add page for presentations (slides/videos/links/speakerrate)
- Review IRC logs for good questions
- :child_key option on Associations page is incorrect HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from datamapper.github.com.