07 2014 档案

摘要:A relational database, like mysql, provides transactions to wrap several operations in one unit, make them all pass or all fail. All isolation levels ... 阅读全文
posted @ 2014-07-18 12:19 wangyuyu 阅读(780) 评论(0) 推荐(0) 编辑
摘要:rails中的回调可跳过,使用下列方法即可:decrementdecrement_counterdelete delete_allincrementincrement_countertoggle touchupdate_columnupdate_columnsupdate_allupdate_cou... 阅读全文
posted @ 2014-07-10 19:44 wangyuyu 阅读(741) 评论(0) 推荐(0) 编辑
摘要:1.前言 无论是用ruby做系统管理,还是用rails做web开发,都可能遇到周期性任务,它们按照一定时间周期(1小时,2天......)持续地触发。在ruby中,我认为一次性任务使用sidekiq来完成是非常方便的,而周期性的任务就需要用到whenever,sidetiq,clockwork等等... 阅读全文
posted @ 2014-07-01 17:38 wangyuyu 阅读(4508) 评论(2) 推荐(1) 编辑

点击右上角即可分享
微信分享提示