首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > 其他 > 用于轨道的插件:一个更好的运行重查询的方法

用于轨道的插件:一个更好的运行重查询的方法

  • 资源大小:8.67 kB
  • 上传时间:2021-06-30
  • 下载次数:0次
  • 浏览次数:1次
  • 资源积分:1积分
  • 标      签: ruby plugin rails

资 源 简 介

Boling For Batches v1.0.2 Plugin for Rails I often need to execute really large computations on really large data sets. I usually end up writing a rake task to do it, which calls methods in my models. But something about the process bugged me. Each time I had to re-implement my "batching code" that allowed me to not chew up GB after GB of memory due to klass.find(:all, :include => [:everything\_under\_the\_sun]). Re-implementation of the same logic over and over across many projects is not very DRY, so I got out my blow torch and lit it up. The difficulty was that the part that was different each time I batched was at the center of the code, right in the middle of the batch loop. But I didn"t let that stop me! Install SVN: svn checkout http://boling-for-batches.googlecode.com/svn/trunk/boling_for_batches Rails Plugin: ./script/plugin install http://boling-for-batches.googlecode.com/svn/tru

文 件 列 表

boling_for_batches
init.rb
install.rb
lib
MIT-LICENSE
Rakefile
README
tasks
test
uninstall.rb

相 关 资 源

您 可 能 感 兴 趣 的

同 类 别 推 荐

VIP VIP
  • 猕猴桃 4小时前 成为了本站会员

  • 11 7小时前 成为了本站会员

  • 开心快活人 10小时前 成为了本站会员

  • 晋财 11小时前 成为了本站会员

  • WYG 1天前 成为了本站会员

  • Shine 1天前 成为了本站会员

  • 柳贻 1天前 成为了本站会员

  • hallelujah_HL 1天前 成为了本站会员

  • 焦昱贺 1天前 成为了本站会员

  • Rubin 1天前 成为了本站会员

0.242449s