记得上下班打卡 | git大法好,push需谨慎
Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liquidnet-bus-v1
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
董敬伟
liquidnet-bus-v1
Commits
971375fc
Commit
971375fc
authored
Mar 10, 2022
by
张国柄
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
~opt;
parent
eb24358d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
30 deletions
+33
-30
mongo_db_ddl.sql
...oblin/liquidnet-service-goblin-impl/docu/mongo_db_ddl.sql
+33
-30
No files found.
liquidnet-bus-service/liquidnet-service-goblin/liquidnet-service-goblin-impl/docu/mongo_db_ddl.sql
View file @
971375fc
...
@@ -27,35 +27,7 @@ db.createCollection("GoblinOrderLogVo");
...
@@ -27,35 +27,7 @@ db.createCollection("GoblinOrderLogVo");
db
.
createCollection
(
"GoblinOrderSkuVo"
);
db
.
createCollection
(
"GoblinOrderSkuVo"
);
db
.
createCollection
(
"GoblinSelfMarketingVo"
);
db
.
createCollection
(
"GoblinSelfMarketingVo"
);
db
.
createCollection
(
"GoblinStoreOrderVo"
);
db
.
createCollection
(
"GoblinStoreOrderVo"
);
//
==================================================
创建分片
sh
.
enableSharding
(
"test_ln_scene"
);
sh
.
shardCollection
(
"test_ln_scene.GoblinSelfGoodsCategoryVo"
,
{
"cateId"
:
"hashed"
}
);
sh
.
shardCollection
(
"test_ln_scene.GoblinStoreGoodsCategoryVo"
,
{
"cateId"
:
"hashed"
}
);
sh
.
shardCollection
(
"test_ln_scene.GoblinMgtCategorySpecVo"
,
{
"cateId"
:
"hashed"
}
);
sh
.
shardCollection
(
"test_ln_scene.GoblinSelfTagVo"
,
{
"tagId"
:
"hashed"
}
);
sh
.
shardCollection
(
"test_ln_scene.GoblinServiceSupportVo"
,
{
"ssid"
:
"hashed"
}
);
sh
.
shardCollection
(
"test_ln_scene.GoblinStoreNoticeVo"
,
{
"noticeId"
:
"hashed"
}
);
sh
.
shardCollection
(
"test_ln_scene.GoblinStoreConfigVo"
,
{
"storeId"
:
"hashed"
}
);
sh
.
shardCollection
(
"test_ln_scene.GoblinStoreInfoVo"
,
{
"storeId"
:
"hashed"
}
);
sh
.
shardCollection
(
"test_ln_scene.GoblinGoodsInfoVo"
,
{
"spuId"
:
"hashed"
}
);
sh
.
shardCollection
(
"test_ln_scene.GoblinGoodsSkuInfoVo"
,
{
"skuId"
:
"hashed"
}
);
sh
.
shardCollection
(
"test_ln_scene.GoblinStoreCouponBasicVo"
,
{
"storeCouponId"
:
"hashed"
}
);
sh
.
shardCollection
(
"test_ln_scene.GoblinUserCouponBasicVo"
,
{
"ucouponId"
:
"hashed"
}
);
sh
.
shardCollection
(
"test_ln_scene.GoblinFrontBanner"
,
{
"bannerId"
:
"hashed"
}
);
sh
.
shardCollection
(
"test_ln_scene.GoblinFrontCube"
,
{
"cubeId"
:
"hashed"
}
);
sh
.
shardCollection
(
"test_ln_scene.GoblinFrontHotWord"
,
{
"hotWordId"
:
"hashed"
}
);
sh
.
shardCollection
(
"test_ln_scene.GoblinFrontMoudleIndex"
,
{
"moudleIndexId"
:
"hashed"
}
);
sh
.
shardCollection
(
"test_ln_scene.GoblinFrontNavigation"
,
{
"navigationId"
:
"hashed"
}
);
sh
.
shardCollection
(
"test_ln_scene.GoblinFrontSeckill"
,
{
"seckilId"
:
"hashed"
}
);
sh
.
shardCollection
(
"test_ln_scene.GoblinFrontSelectGoods"
,
{
"selectGoodsId"
:
"hashed"
}
);
sh
.
shardCollection
(
"test_ln_scene.GoblinShoppingCartVoo"
,
{
"goblinShoppingCartId"
:
"hashed"
}
);
sh
.
shardCollection
(
"test_ln_scene.GoblinBackOrderVo"
,
{
"backOrderId"
:
"hashed"
}
);
sh
.
shardCollection
(
"test_ln_scene.GoblinMailVo"
,
{
"mailId"
:
"hashed"
}
);
sh
.
shardCollection
(
"test_ln_scene.GoblinMarketingZhengzaiRelationVo"
,
{
"selfMarketId"
:
"hashed"
}
);
sh
.
shardCollection
(
"test_ln_scene.GoblinOrderLogVo"
,
{
"orderId"
:
"hashed"
}
);
sh
.
shardCollection
(
"test_ln_scene.GoblinOrderSkuVo"
,
{
"orderSkuId"
:
"hashed"
}
);
sh
.
shardCollection
(
"test_ln_scene.GoblinStoreOrderVo"
,
{
"orderId"
:
"hashed"
}
);
sh
.
shardCollection
(
"test_ln_scene.GoblinSelfMarketingVo"
,
{
"selfMarketId"
:
"hashed"
}
);
//
==================================================
创建索引
//
==================================================
创建索引
db
.
GoblinSelfGoodsCategoryVo
.
createIndex
(
{
cateId
:
"hashed"
}
);
db
.
GoblinSelfGoodsCategoryVo
.
createIndex
(
{
cateId
:
"hashed"
}
);
...
@@ -98,4 +70,35 @@ db.GoblinSelfMarketingVo.createIndex({performanceId:"hashed"});
...
@@ -98,4 +70,35 @@ db.GoblinSelfMarketingVo.createIndex({performanceId:"hashed"});
db
.
GoblinStoreOrderVo
.
createIndex
(
{
orderId
:
"hashed"
}
);
db
.
GoblinStoreOrderVo
.
createIndex
(
{
orderId
:
"hashed"
}
);
db
.
GoblinStoreOrderVo
.
createIndex
(
{
storeId
:
"hashed"
}
);
db
.
GoblinStoreOrderVo
.
createIndex
(
{
storeId
:
"hashed"
}
);
db
.
GoblinStoreOrderVo
.
createIndex
(
{
status
:
"hashed"
}
);
db
.
GoblinStoreOrderVo
.
createIndex
(
{
status
:
"hashed"
}
);
db
.
GoblinStoreOrderVo
.
createIndex
(
{
orderCode
:
"hashed"
}
);
db
.
GoblinStoreOrderVo
.
createIndex
(
{
orderCode
:
"hashed"
}
);
\ No newline at end of file
//
==================================================
创建分片
sh
.
enableSharding
(
"test_ln_scene"
);
sh
.
shardCollection
(
"test_ln_scene.GoblinSelfGoodsCategoryVo"
,
{
"cateId"
:
"hashed"
}
);
sh
.
shardCollection
(
"test_ln_scene.GoblinStoreGoodsCategoryVo"
,
{
"cateId"
:
"hashed"
}
);
sh
.
shardCollection
(
"test_ln_scene.GoblinMgtCategorySpecVo"
,
{
"cateId"
:
"hashed"
}
);
sh
.
shardCollection
(
"test_ln_scene.GoblinSelfTagVo"
,
{
"tagId"
:
"hashed"
}
);
sh
.
shardCollection
(
"test_ln_scene.GoblinServiceSupportVo"
,
{
"ssid"
:
"hashed"
}
);
sh
.
shardCollection
(
"test_ln_scene.GoblinStoreNoticeVo"
,
{
"noticeId"
:
"hashed"
}
);
sh
.
shardCollection
(
"test_ln_scene.GoblinStoreConfigVo"
,
{
"storeId"
:
"hashed"
}
);
sh
.
shardCollection
(
"test_ln_scene.GoblinStoreInfoVo"
,
{
"storeId"
:
"hashed"
}
);
sh
.
shardCollection
(
"test_ln_scene.GoblinGoodsInfoVo"
,
{
"spuId"
:
"hashed"
}
);
sh
.
shardCollection
(
"test_ln_scene.GoblinGoodsSkuInfoVo"
,
{
"skuId"
:
"hashed"
}
);
sh
.
shardCollection
(
"test_ln_scene.GoblinStoreCouponBasicVo"
,
{
"storeCouponId"
:
"hashed"
}
);
sh
.
shardCollection
(
"test_ln_scene.GoblinUserCouponBasicVo"
,
{
"ucouponId"
:
"hashed"
}
);
sh
.
shardCollection
(
"test_ln_scene.GoblinFrontBanner"
,
{
"bannerId"
:
"hashed"
}
);
sh
.
shardCollection
(
"test_ln_scene.GoblinFrontCube"
,
{
"cubeId"
:
"hashed"
}
);
sh
.
shardCollection
(
"test_ln_scene.GoblinFrontHotWord"
,
{
"hotWordId"
:
"hashed"
}
);
sh
.
shardCollection
(
"test_ln_scene.GoblinFrontMoudleIndex"
,
{
"moudleIndexId"
:
"hashed"
}
);
sh
.
shardCollection
(
"test_ln_scene.GoblinFrontNavigation"
,
{
"navigationId"
:
"hashed"
}
);
sh
.
shardCollection
(
"test_ln_scene.GoblinFrontSeckill"
,
{
"seckilId"
:
"hashed"
}
);
sh
.
shardCollection
(
"test_ln_scene.GoblinFrontSelectGoods"
,
{
"selectGoodsId"
:
"hashed"
}
);
sh
.
shardCollection
(
"test_ln_scene.GoblinShoppingCartVoo"
,
{
"goblinShoppingCartId"
:
"hashed"
}
);
sh
.
shardCollection
(
"test_ln_scene.GoblinBackOrderVo"
,
{
"backOrderId"
:
"hashed"
}
);
sh
.
shardCollection
(
"test_ln_scene.GoblinMailVo"
,
{
"mailId"
:
"hashed"
}
);
sh
.
shardCollection
(
"test_ln_scene.GoblinMarketingZhengzaiRelationVo"
,
{
"selfMarketId"
:
"hashed"
}
);
sh
.
shardCollection
(
"test_ln_scene.GoblinOrderLogVo"
,
{
"orderId"
:
"hashed"
}
);
sh
.
shardCollection
(
"test_ln_scene.GoblinOrderSkuVo"
,
{
"orderSkuId"
:
"hashed"
}
);
sh
.
shardCollection
(
"test_ln_scene.GoblinStoreOrderVo"
,
{
"orderId"
:
"hashed"
}
);
sh
.
shardCollection
(
"test_ln_scene.GoblinSelfMarketingVo"
,
{
"selfMarketId"
:
"hashed"
}
);
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment