changelog:

0.1.3 xunch cache extender 0.1.2 add special, android_channel 0.1.1 add followerx2_group

用于:

subapp2 core shouji2 home square podcast outside backend baiduyy chezai litewap pc thirdparty wap weixin_public

model如何对应分表?

分表的TrackRecord,对应100张表有(TrackRecord0-TrackRecord99)100个类,根据key找类:TrackRecord.shard(key) #=> TrackRecord59

拿到返回的类再操作,是线程安全的,例如: TrackRecord.shard(key).where TrackRecord.shard(key).create TrackRecord.shard(key).new

svn地址: svn://192.168.3.221/zdjt/ting/ting_model

测试: ruby test/stn.rb (不安全,报错) ruby test/shard.rb (安全,并行处理并输出)