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 ...
阅读全文
摘要:rails中的回调可跳过,使用下列方法即可:decrementdecrement_counterdelete delete_allincrementincrement_countertoggle touchupdate_columnupdate_columnsupdate_allupdate_cou...
阅读全文
摘要:1.前言 无论是用ruby做系统管理,还是用rails做web开发,都可能遇到周期性任务,它们按照一定时间周期(1小时,2天......)持续地触发。在ruby中,我认为一次性任务使用sidekiq来完成是非常方便的,而周期性的任务就需要用到whenever,sidetiq,clockwork等等...
阅读全文