mongo 创建封顶表

#创建表上限: 250GB、 1kw条数据

db.createCollection("lcc", { capped : true, size : 268435456000, max : 10000000 } )

创建 大小80G的表

db.createCollection("tripsta", { capped : true, size : 80000000000 } )


size: 76293 表大小(MB)

count: 数据条数51万多

storageSize: 11426(MB)

那么说明了,压缩率很高,76G压缩到了11G

db.createCollection("tripsta", { capped : true, size : 450000000000, max : 3000000} )

db.createCollection("airticket", { capped : true, size : 450000000000, max : 1500000 } )

db.createCollection("easyjet", { capped : true, size : 80000000000 } )

db.createCollection("budgetair", { capped : true, size : 450000000000, max : 1500000 } )

db.createCollection("gotogate", { capped : true, size : 50000000000, max : 800000 } )

db.createCollection("priceline", { capped : true, size : 50000000000, max : 800000 } )

db.createCollection("omega", { capped : true, size : 50000000000, max : 800000 } )

db.createCollection("bravofly_android", { capped : true, size : 50000000000, max : 800000 } )

db.createCollection("expedia", { capped : true, size : 50000000000, max : 800000 } )

results for ""

    No results matching ""