摘要:
Rails 的 transaction 事务处理程序开发2009年11月10日 07:56最近太做一个数据排名统计,统计过程中需要删除旧的缓存统计数据,最开始写的时候就直接 CachePostTotal.connection.execute("truncate table cache_post_totals") 先把这个表给重置了,然后再循环往里面插入新的统计数据。但后面发现,这样的做法存在大问题... 阅读全文
posted @ 2010-12-07 10:17
lexus
阅读(509)
评论(0)
推荐(0)