mongoDB
sonic123456789
这个作者很懒,什么都没留下…
展开
-
mongoDB profile: warning ns ccms_api.system.profile does not exist
在一个mongoDB的replicate Set 的环境的日志中一直有如下警告: profile: warning ns ccms_api.system.profile does not exist 解决办法如下: use local db.createCollection("system.profile", {capped:true, size:100000}) ...原创 2012-03-08 20:10:29 · 188 阅读 · 0 评论 -
spring data 4 mongoDB 自动创建复合索引
spring data 4 mongodb 在domain上添加annation,自动创建复合索引时需要使用CompoundIndexes。 例如: @CompoundIndex(name = "shop_index", def = "{platform : 1, shopId : 1}") 程序也不会有编译错误或者执行错误,但是spring data不会建立任何索引, 下面这样写...2013-02-26 15:54:26 · 2461 阅读 · 0 评论