efficient bulk update rails database

后端 未结 5 942
借酒劲吻你
借酒劲吻你 2020-12-25 10:15

I\'m trying to build a rake utility that will update my database every so often.

This is the code I have so far:

namespace :utils do

  # utils:updat         


        
5条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-25 10:45

    Use the database level utilities for high speed Luke!

    Unfortunately, they're db specific. But they are fast For mysql, see http://dev.mysql.com/doc/refman/5.1/en/load-data.html

提交回复
热议问题