记得上下班打卡 | 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
83ebfd85
Commit
83ebfd85
authored
Mar 02, 2022
by
zhengfuxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改 mongodb
parent
8b4f85bb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
2 deletions
+17
-2
mongo_db_ddl.sql
...oblin/liquidnet-service-goblin-impl/docu/mongo_db_ddl.sql
+17
-2
No files found.
liquidnet-bus-service/liquidnet-service-goblin/liquidnet-service-goblin-impl/docu/mongo_db_ddl.sql
View file @
83ebfd85
...
@@ -34,7 +34,14 @@ sh.shardCollection("dev_ln_scene.GoblinGoodsInfoVo",{"spuId":"hashed"});
...
@@ -34,7 +34,14 @@ sh.shardCollection("dev_ln_scene.GoblinGoodsInfoVo",{"spuId":"hashed"});
sh
.
shardCollection
(
"dev_ln_scene.GoblinGoodsSkuInfoVo"
,
{
"skuId"
:
"hashed"
}
);
sh
.
shardCollection
(
"dev_ln_scene.GoblinGoodsSkuInfoVo"
,
{
"skuId"
:
"hashed"
}
);
sh
.
shardCollection
(
"dev_ln_scene.GoblinStoreCouponBasicVo"
,
{
"storeCouponId"
:
"hashed"
}
);
sh
.
shardCollection
(
"dev_ln_scene.GoblinStoreCouponBasicVo"
,
{
"storeCouponId"
:
"hashed"
}
);
sh
.
shardCollection
(
"dev_ln_scene.GoblinUserCouponVo"
,
{
"ucouponId"
:
"hashed"
}
);
sh
.
shardCollection
(
"dev_ln_scene.GoblinUserCouponVo"
,
{
"ucouponId"
:
"hashed"
}
);
sh
.
shardCollection
(
"dev_ln_scene.GoblinFrontBanner"
,
{
"bannerId"
:
"hashed"
}
);
sh
.
shardCollection
(
"dev_ln_scene.GoblinFrontCube"
,
{
"cubeId"
:
"hashed"
}
);
sh
.
shardCollection
(
"dev_ln_scene.GoblinFrontHotWord"
,
{
"hotWordId"
:
"hashed"
}
);
sh
.
shardCollection
(
"dev_ln_scene.GoblinFrontMoudleIndex"
,
{
"moudleIndexId"
:
"hashed"
}
);
sh
.
shardCollection
(
"dev_ln_scene.GoblinFrontNavigation"
,
{
"navigationId"
:
"hashed"
}
);
sh
.
shardCollection
(
"dev_ln_scene.GoblinFrontSeckill"
,
{
"seckilId"
:
"hashed"
}
);
sh
.
shardCollection
(
"dev_ln_scene.GoblinFrontSelectGoods"
,
{
"selectGoodsId"
:
"hashed"
}
);
sh
.
shardCollection
(
"dev_ln_scene.GoblinShoppingCartVoo"
,
{
"goblinShoppingCartId"
:
"hashed"
}
);
//
==================================================
创建索引
//
==================================================
创建索引
db
.
GoblinStoreGoodsCategoryVo
.
createIndex
(
{
storeId
:
"hashed"
}
);
db
.
GoblinStoreGoodsCategoryVo
.
createIndex
(
{
storeId
:
"hashed"
}
);
db
.
GoblinMgtCategorySpecVo
.
createIndex
(
{
cateId
:
"hashed"
}
);
db
.
GoblinMgtCategorySpecVo
.
createIndex
(
{
cateId
:
"hashed"
}
);
...
@@ -49,4 +56,12 @@ db.GoblinGoodsInfoVo.createIndex({spuNo:"hashed"});
...
@@ -49,4 +56,12 @@ db.GoblinGoodsInfoVo.createIndex({spuNo:"hashed"});
db
.
GoblinGoodsSkuInfoVo
.
createIndex
(
{
skuId
:
"hashed"
}
);
db
.
GoblinGoodsSkuInfoVo
.
createIndex
(
{
skuId
:
"hashed"
}
);
db
.
GoblinGoodsSkuInfoVo
.
createIndex
(
{
storeId
:
"hashed"
}
);
db
.
GoblinGoodsSkuInfoVo
.
createIndex
(
{
storeId
:
"hashed"
}
);
db
.
GoblinStoreCouponBasicVo
.
createIndex
(
{
storeCouponId
:
"hashed"
}
);
db
.
GoblinStoreCouponBasicVo
.
createIndex
(
{
storeCouponId
:
"hashed"
}
);
db
.
GoblinUserCouponVo
.
createIndex
(
{
uid
:
"hashed"
}
);
db
.
GoblinUserCouponVo
.
createIndex
(
{
uid
:
"hashed"
}
);
\ No newline at end of file
db
.
GoblinFrontBanner
.
createIndex
(
{
bannerId
:
"hashed"
}
);
db
.
GoblinFrontCube
.
createIndex
(
{
cubeId
:
"hashed"
}
);
db
.
GoblinFrontHotWord
.
createIndex
(
{
hotWordId
:
"hashed"
}
);
db
.
GoblinFrontMoudleIndex
.
createIndex
(
{
moudleIndexId
:
"hashed"
}
);
db
.
GoblinFrontNavigation
.
createIndex
(
{
navigationId
:
"hashed"
}
);
db
.
GoblinFrontSeckill
.
createIndex
(
{
seckilId
:
"hashed"
}
);
db
.
GoblinFrontSelectGoods
.
createIndex
(
{
selectGoodsId
:
"hashed"
}
);
db
.
GoblinShoppingCartVoo
.
createIndex
(
{
goblinShoppingCartId
:
"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