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

Commit 28daf8e1 authored by 胡佳晨's avatar 胡佳晨

提交mongo 分片 索引

parent 99ab9040
...@@ -38,17 +38,17 @@ db.PerformanceMemberAuditParam.createIndex({performancesId:"hashed"}); ...@@ -38,17 +38,17 @@ db.PerformanceMemberAuditParam.createIndex({performancesId:"hashed"});
#创建分片 #创建分片
sh.enableSharding("prod_ln_scene"); sh.enableSharding("prod_ln_scene");
db.shardCollection("prod_ln_scene.KylinCheckUserPerformanceVo",{"checkUserId":"hashed"}); sh.shardCollection("prod_ln_scene.KylinCheckUserPerformanceVo",{"checkUserId":"hashed"});
db.shardCollection("prod_ln_scene.KylinCheckUserVo",{"checkUserId":"hashed"}); sh.shardCollection("prod_ln_scene.KylinCheckUserVo",{"checkUserId":"hashed"});
db.shardCollection("prod_ln_scene.KylinOrderRefundEntitiesVo",{"orderRefundsEntitiesId":"hashed"}); sh.shardCollection("prod_ln_scene.KylinOrderRefundEntitiesVo",{"orderRefundsEntitiesId":"hashed"});
db.shardCollection("prod_ln_scene.KylinOrderRefundPicVo",{"refundPicId":"hashed"}); sh.shardCollection("prod_ln_scene.KylinOrderRefundPicVo",{"refundPicId":"hashed"});
db.shardCollection("prod_ln_scene.KylinOrderRefundsVoBase",{"orderRefundsId":"hashed"}); sh.shardCollection("prod_ln_scene.KylinOrderRefundsVoBase",{"orderRefundsId":"hashed"});
db.shardCollection("prod_ln_scene.KylinOrderTicketEntitiesVo",{"orderTicketEntitiesId":"hashed"}); sh.shardCollection("prod_ln_scene.KylinOrderTicketEntitiesVo",{"orderTicketEntitiesId":"hashed"});
db.shardCollection("prod_ln_scene.KylinOrderTicketVo",{"orderTicketsId":"hashed"}); sh.shardCollection("prod_ln_scene.KylinOrderTicketVo",{"orderTicketsId":"hashed"});
db.shardCollection("prod_ln_scene.KylinPerformanceVo",{"performancesId":"hashed"}); sh.shardCollection("prod_ln_scene.KylinPerformanceVo",{"performancesId":"hashed"});
db.shardCollection("prod_ln_scene.KylinRoadShowVo",{"roadShowsId":"hashed"}); sh.shardCollection("prod_ln_scene.KylinRoadShowVo",{"roadShowsId":"hashed"});
db.shardCollection("prod_ln_scene.KylinPerformanceMisVo",{"performancesId":"hashed"}); sh.shardCollection("prod_ln_scene.KylinPerformanceMisVo",{"performancesId":"hashed"});
db.shardCollection("prod_ln_scene.KylinTicketPartnerVo",{"ticketsId":"hashed"}); sh.shardCollection("prod_ln_scene.KylinTicketPartnerVo",{"ticketsId":"hashed"});
db.shardCollection("prod_ln_scene.KylinTicketTimesPartnerVo",{"ticketTimesId":"hashed"}); sh.shardCollection("prod_ln_scene.KylinTicketTimesPartnerVo",{"ticketTimesId":"hashed"});
db.shardCollection("prod_ln_scene.PerformanceMemberAuditParam",{"performancesId":"hashed"}); sh.shardCollection("prod_ln_scene.PerformanceMemberAuditParam",{"performancesId":"hashed"});
...@@ -38,16 +38,16 @@ db.PerformanceMemberAuditParam.createIndex({performancesId:"hashed"}); ...@@ -38,16 +38,16 @@ db.PerformanceMemberAuditParam.createIndex({performancesId:"hashed"});
#创建分片 #创建分片
sh.enableSharding("test_ln_scene"); sh.enableSharding("test_ln_scene");
db.shardCollection("test_ln_scene.KylinCheckUserPerformanceVo",{"checkUserId":"hashed"}); sh.shardCollection("test_ln_scene.KylinCheckUserPerformanceVo",{"checkUserId":"hashed"});
db.shardCollection("test_ln_scene.KylinCheckUserVo",{"checkUserId":"hashed"}); sh.shardCollection("test_ln_scene.KylinCheckUserVo",{"checkUserId":"hashed"});
db.shardCollection("test_ln_scene.KylinOrderRefundEntitiesVo",{"orderRefundsEntitiesId":"hashed"}); sh.shardCollection("test_ln_scene.KylinOrderRefundEntitiesVo",{"orderRefundsEntitiesId":"hashed"});
db.shardCollection("test_ln_scene.KylinOrderRefundPicVo",{"refundPicId":"hashed"}); sh.shardCollection("test_ln_scene.KylinOrderRefundPicVo",{"refundPicId":"hashed"});
db.shardCollection("test_ln_scene.KylinOrderRefundsVoBase",{"orderRefundsId":"hashed"}); sh.shardCollection("test_ln_scene.KylinOrderRefundsVoBase",{"orderRefundsId":"hashed"});
db.shardCollection("test_ln_scene.KylinOrderTicketEntitiesVo",{"orderTicketEntitiesId":"hashed"}); sh.shardCollection("test_ln_scene.KylinOrderTicketEntitiesVo",{"orderTicketEntitiesId":"hashed"});
db.shardCollection("test_ln_scene.KylinOrderTicketVo",{"orderTicketsId":"hashed"}); sh.shardCollection("test_ln_scene.KylinOrderTicketVo",{"orderTicketsId":"hashed"});
db.shardCollection("test_ln_scene.KylinPerformanceVo",{"performancesId":"hashed"}); sh.shardCollection("test_ln_scene.KylinPerformanceVo",{"performancesId":"hashed"});
db.shardCollection("test_ln_scene.KylinRoadShowVo",{"roadShowsId":"hashed"}); sh.shardCollection("test_ln_scene.KylinRoadShowVo",{"roadShowsId":"hashed"});
db.shardCollection("test_ln_scene.KylinPerformanceMisVo",{"performancesId":"hashed"}); sh.shardCollection("test_ln_scene.KylinPerformanceMisVo",{"performancesId":"hashed"});
db.shardCollection(test_ln_scene.KylinTicketPartnerVo",{"ticketsId":"hashed"}); sh.shardCollection("test_ln_scene.KylinTicketPartnerVo",{"ticketsId":"hashed"});
db.shardCollection(test_ln_scene.KylinTicketTimesPartnerVo",{"ticketTimesId":"hashed"}); sh.shardCollection("test_ln_scene.KylinTicketTimesPartnerVo",{"ticketTimesId":"hashed"});
db.shardCollection("test_ln_scene.PerformanceMemberAuditParam",{"performancesId":"hashed"}); sh.shardCollection("test_ln_scene.PerformanceMemberAuditParam",{"performancesId":"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