记得上下班打卡 | git大法好,push需谨慎

Commit 4be7bce8 authored by 胡佳晨's avatar 胡佳晨

修改 mongo文件

parent dfbc10c5
use test_ln_scene; use dev_ln_scene;
// ================================================== 创建集合 // ================================================== 创建集合
db.createCollection("GoblinSelfGoodsCategoryVo"); db.createCollection("GoblinSelfGoodsCategoryVo");
db.createCollection("GoblinStoreGoodsCategoryVo"); db.createCollection("GoblinStoreGoodsCategoryVo");
...@@ -20,7 +20,6 @@ db.createCollection("GoblinFrontNavigation"); ...@@ -20,7 +20,6 @@ db.createCollection("GoblinFrontNavigation");
db.createCollection("GoblinFrontSeckill"); db.createCollection("GoblinFrontSeckill");
db.createCollection("GoblinFrontSelectGoods"); db.createCollection("GoblinFrontSelectGoods");
db.createCollection("GoblinShoppingCartVoo"); db.createCollection("GoblinShoppingCartVoo");
db.createCollection("GoblinBackOrderVo"); db.createCollection("GoblinBackOrderVo");
db.createCollection("GoblinMailVo"); db.createCollection("GoblinMailVo");
db.createCollection("GoblinMarketingZhengzaiRelationVo"); db.createCollection("GoblinMarketingZhengzaiRelationVo");
...@@ -29,34 +28,35 @@ db.createCollection("GoblinOrderSkuVo"); ...@@ -29,34 +28,35 @@ db.createCollection("GoblinOrderSkuVo");
db.createCollection("GoblinSelfMarketingVo"); db.createCollection("GoblinSelfMarketingVo");
db.createCollection("GoblinStoreOrderVo"); db.createCollection("GoblinStoreOrderVo");
// ================================================== 创建分片 // ================================================== 创建分片
sh.enableSharding("test_ln_scene"); sh.enableSharding("dev_ln_scene");
sh.shardCollection("test_ln_scene.GoblinSelfGoodsCategoryVo",{"cateId":"hashed"}); sh.shardCollection("dev_ln_scene.GoblinSelfGoodsCategoryVo",{"cateId":"hashed"});
sh.shardCollection("test_ln_scene.GoblinStoreGoodsCategoryVo",{"cateId":"hashed"}); sh.shardCollection("dev_ln_scene.GoblinStoreGoodsCategoryVo",{"cateId":"hashed"});
sh.shardCollection("test_ln_scene.GoblinMgtCategorySpecVo",{"cateId":"hashed"}); sh.shardCollection("dev_ln_scene.GoblinMgtCategorySpecVo",{"cateId":"hashed"});
sh.shardCollection("test_ln_scene.GoblinSelfTagVo",{"tagId":"hashed"}); sh.shardCollection("dev_ln_scene.GoblinSelfTagVo",{"tagId":"hashed"});
sh.shardCollection("test_ln_scene.GoblinServiceSupportVo",{"ssid":"hashed"}); sh.shardCollection("dev_ln_scene.GoblinServiceSupportVo",{"ssid":"hashed"});
sh.shardCollection("test_ln_scene.GoblinStoreNoticeVo",{"noticeId":"hashed"}); sh.shardCollection("dev_ln_scene.GoblinStoreNoticeVo",{"noticeId":"hashed"});
sh.shardCollection("test_ln_scene.GoblinStoreConfigVo",{"storeId":"hashed"}); sh.shardCollection("dev_ln_scene.GoblinStoreConfigVo",{"storeId":"hashed"});
sh.shardCollection("test_ln_scene.GoblinStoreInfoVo",{"storeId":"hashed"}); sh.shardCollection("dev_ln_scene.GoblinStoreInfoVo",{"storeId":"hashed"});
sh.shardCollection("test_ln_scene.GoblinGoodsInfoVo",{"spuId":"hashed"}); sh.shardCollection("dev_ln_scene.GoblinGoodsInfoVo",{"spuId":"hashed"});
sh.shardCollection("test_ln_scene.GoblinGoodsSkuInfoVo",{"skuId":"hashed"}); sh.shardCollection("dev_ln_scene.GoblinGoodsSkuInfoVo",{"skuId":"hashed"});
sh.shardCollection("test_ln_scene.GoblinStoreCouponBasicVo",{"storeCouponId":"hashed"}); sh.shardCollection("dev_ln_scene.GoblinStoreCouponBasicVo",{"storeCouponId":"hashed"});
sh.shardCollection("test_ln_scene.GoblinUserCouponVo",{"ucouponId":"hashed"}); sh.shardCollection("dev_ln_scene.GoblinUserCouponVo",{"ucouponId":"hashed"});
sh.shardCollection("test_ln_scene.GoblinFrontBanner",{"bannerId":"hashed"}); sh.shardCollection("dev_ln_scene.GoblinFrontBanner",{"bannerId":"hashed"});
sh.shardCollection("test_ln_scene.GoblinFrontCube",{"cubeId":"hashed"}); sh.shardCollection("dev_ln_scene.GoblinFrontCube",{"cubeId":"hashed"});
sh.shardCollection("test_ln_scene.GoblinFrontHotWord",{"hotWordId":"hashed"}); sh.shardCollection("dev_ln_scene.GoblinFrontHotWord",{"hotWordId":"hashed"});
sh.shardCollection("test_ln_scene.GoblinFrontMoudleIndex",{"moudleIndexId":"hashed"}); sh.shardCollection("dev_ln_scene.GoblinFrontMoudleIndex",{"moudleIndexId":"hashed"});
sh.shardCollection("test_ln_scene.GoblinFrontNavigation",{"navigationId":"hashed"}); sh.shardCollection("dev_ln_scene.GoblinFrontNavigation",{"navigationId":"hashed"});
sh.shardCollection("test_ln_scene.GoblinFrontSeckill",{"seckilId":"hashed"}); sh.shardCollection("dev_ln_scene.GoblinFrontSeckill",{"seckilId":"hashed"});
sh.shardCollection("test_ln_scene.GoblinFrontSelectGoods",{"selectGoodsId":"hashed"}); sh.shardCollection("dev_ln_scene.GoblinFrontSelectGoods",{"selectGoodsId":"hashed"});
sh.shardCollection("test_ln_scene.GoblinShoppingCartVoo",{"goblinShoppingCartId":"hashed"}); sh.shardCollection("dev_ln_scene.GoblinShoppingCartVoo",{"goblinShoppingCartId":"hashed"});
sh.shardCollection("dev_ln_scene.GoblinBackOrderVo",{"backOrderId":"hashed"});
sh.shardCollection("dev_ln_scene.GoblinMailVo",{"mailId":"hashed"});
sh.shardCollection("dev_ln_scene.GoblinMarketingZhengzaiRelationVo",{"selfMarketId":"hashed"});
sh.shardCollection("dev_ln_scene.GoblinOrderLogVo",{"selfMarketId":"hashed"});
sh.shardCollection("dev_ln_scene.GoblinOrderSkuVo",{"selfMarketId":"hashed"});
sh.shardCollection("dev_ln_scene.GoblinStoreOrderVo",{"orderId":"hashed"});
sh.shardCollection("dev_ln_scene.GoblinSelfMarketingVo",{"selfMarketId":"hashed"});
sh.createCollection("test_ln_scene.GoblinBackOrderVo",{"backOrderId":"hashed"});
sh.createCollection("test_ln_scene.GoblinMailVo",{"mailId":"hashed"});
sh.createCollection("test_ln_scene.GoblinMarketingZhengzaiRelationVo",{"selfMarketId":"hashed"});
sh.createCollection("test_ln_scene.GoblinOrderLogVo",{"selfMarketId":"hashed"});
sh.createCollection("test_ln_scene.GoblinOrderSkuVo",{"selfMarketId":"hashed"});
sh.createCollection("test_ln_scene.GoblinStoreOrderVo",{"orderId":"hashed"});
// ================================================== 创建索引 // ================================================== 创建索引
db.GoblinStoreGoodsCategoryVo.createIndex({storeId:"hashed"}); db.GoblinStoreGoodsCategoryVo.createIndex({storeId:"hashed"});
db.GoblinMgtCategorySpecVo.createIndex({cateId:"hashed"}); db.GoblinMgtCategorySpecVo.createIndex({cateId:"hashed"});
...@@ -80,7 +80,6 @@ db.GoblinFrontNavigation.createIndex({navigationId:"hashed"}); ...@@ -80,7 +80,6 @@ db.GoblinFrontNavigation.createIndex({navigationId:"hashed"});
db.GoblinFrontSeckill.createIndex({seckilId:"hashed"}); db.GoblinFrontSeckill.createIndex({seckilId:"hashed"});
db.GoblinFrontSelectGoods.createIndex({selectGoodsId:"hashed"}); db.GoblinFrontSelectGoods.createIndex({selectGoodsId:"hashed"});
db.GoblinShoppingCartVoo.createIndex({goblinShoppingCartId:"hashed"}); db.GoblinShoppingCartVoo.createIndex({goblinShoppingCartId:"hashed"});
db.GoblinBackOrderVo.createIndex({backOrderId:"hashed"}); db.GoblinBackOrderVo.createIndex({backOrderId:"hashed"});
db.GoblinBackOrderVo.createIndex({orderId:"hashed"}); db.GoblinBackOrderVo.createIndex({orderId:"hashed"});
db.GoblinMailVo.createIndex({mailId:"hashed"}); db.GoblinMailVo.createIndex({mailId:"hashed"});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment