用户数据分表存储

This commit is contained in:
life
2015-11-19 17:56:53 +08:00
parent d26561a089
commit e50b518715
7 changed files with 109 additions and 35 deletions

View File

@@ -12,8 +12,10 @@ if(!/login.html/.test(location.href)) {
Server.start();
}
// 数据库初始化
var db = require('db');
db.init();
// db.init();
db.initGlobal();
// 所有service, 与数据库打交道
var Service = {