阅读背景:

Rails:更快地对许多记录执行更新

来源:互联网 

In our Rails 3.2.13 app (Ruby 2.0.0 + Postgres on Heroku), we are often retreiving a large amount of Order data from an API, and then we need to update or create each order in our database, as well as the associations. A single order creates/updates itself plus approx. 10-15 associcated objects, and we are importing up to 500 orders at a time.In our Rails 3.2.13 app (Ruby 2.0.0 + Postgres




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: