2013年10月30日

mongo细节

摘要: mongo创建表db.createCollection(name, {capped: , autoIndexId: , size: , max: } )db.createCollection(name, {capped: , autoIndexId: , size: , max: } )name: collection名称,相当于mysql中的tablecapped:如果为true,则如果表的大小超过指定的上限时,新增的记录会覆盖old记录,且,如果为true,则必须指定size大小;如果为false,那么新建的collection是一个普通的collection;autoIndexID:为t 阅读全文

posted @ 2013-10-30 10:48 awildfish 阅读(263) 评论(0) 推荐(0) 编辑

导航