You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by GitBox <gi...@apache.org> on 2021/01/21 07:14:06 UTC
[GitHub] [servicecomb-service-center] xzccfzy opened a new pull request #837: add mongo index
xzccfzy opened a new pull request #837:
URL: https://github.com/apache/servicecomb-service-center/pull/837
【issue】: #836
【特性/模块名称】:sc对接mongo
【修改内容】:
- service表建立超长索引时自定义索引名
- servcie schema rule dep建立索引,索引包含domain与project
【自测情况】:ut全部通过
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [servicecomb-service-center] tianxiaoliang edited a comment on pull request #837: add mongo index
Posted by GitBox <gi...@apache.org>.
tianxiaoliang edited a comment on pull request #837:
URL: https://github.com/apache/servicecomb-service-center/pull/837#issuecomment-768865525
这种索引建立方式不正确,有冗余数据,应该用bson tag来缩小字段长度
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [servicecomb-service-center] xzccfzy commented on a change in pull request #837: add mongo index
Posted by GitBox <gi...@apache.org>.
xzccfzy commented on a change in pull request #837:
URL: https://github.com/apache/servicecomb-service-center/pull/837#discussion_r562301820
##########
File path: datasource/mongo/database.go
##########
@@ -33,6 +33,10 @@ const (
CollectionRole = "role"
)
+const (
+ serviceAppIDNameEnvVersionIndex = "DomainProjectAppIdNameEnvVersion"
Review comment:
service索引的名称。
4.0版本根据service的appid,name,env,version建立的索引默认名字过长,在建立索引时指定该索引的名称。
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [servicecomb-service-center] xzccfzy commented on a change in pull request #837: add mongo index
Posted by GitBox <gi...@apache.org>.
xzccfzy commented on a change in pull request #837:
URL: https://github.com/apache/servicecomb-service-center/pull/837#discussion_r562301820
##########
File path: datasource/mongo/database.go
##########
@@ -33,6 +33,10 @@ const (
CollectionRole = "role"
)
+const (
+ serviceAppIDNameEnvVersionIndex = "DomainProjectAppIdNameEnvVersion"
Review comment:
service索引的名称。根据service的appid,name,env,version建立的索引默认名字过长,在建立索引时指定
##########
File path: datasource/mongo/database.go
##########
@@ -33,6 +33,10 @@ const (
CollectionRole = "role"
)
+const (
+ serviceAppIDNameEnvVersionIndex = "DomainProjectAppIdNameEnvVersion"
Review comment:
service索引的名称。
4.0版本根据service的appid,name,env,version建立的索引默认名字过长,在建立索引时指定该索引的名称。
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [servicecomb-service-center] tianxiaoliang commented on pull request #837: add mongo index
Posted by GitBox <gi...@apache.org>.
tianxiaoliang commented on pull request #837:
URL: https://github.com/apache/servicecomb-service-center/pull/837#issuecomment-768865525
这种索引建立方式不正确,有冗余数据,应该用bson tag来控制字段长度
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [servicecomb-service-center] xzccfzy commented on a change in pull request #837: add mongo index
Posted by GitBox <gi...@apache.org>.
xzccfzy commented on a change in pull request #837:
URL: https://github.com/apache/servicecomb-service-center/pull/837#discussion_r562301820
##########
File path: datasource/mongo/database.go
##########
@@ -33,6 +33,10 @@ const (
CollectionRole = "role"
)
+const (
+ serviceAppIDNameEnvVersionIndex = "DomainProjectAppIdNameEnvVersion"
Review comment:
service索引的名称。根据service的appid,name,env,version建立的索引默认名字过长,在建立索引时指定
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [servicecomb-service-center] xzccfzy closed pull request #837: add mongo index
Posted by GitBox <gi...@apache.org>.
xzccfzy closed pull request #837:
URL: https://github.com/apache/servicecomb-service-center/pull/837
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [servicecomb-service-center] tianxiaoliang commented on a change in pull request #837: add mongo index
Posted by GitBox <gi...@apache.org>.
tianxiaoliang commented on a change in pull request #837:
URL: https://github.com/apache/servicecomb-service-center/pull/837#discussion_r561831898
##########
File path: datasource/mongo/database.go
##########
@@ -33,6 +33,10 @@ const (
CollectionRole = "role"
)
+const (
+ serviceAppIDNameEnvVersionIndex = "DomainProjectAppIdNameEnvVersion"
Review comment:
这个变量的作用是?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [servicecomb-service-center] tianxiaoliang commented on a change in pull request #837: add mongo index
Posted by GitBox <gi...@apache.org>.
tianxiaoliang commented on a change in pull request #837:
URL: https://github.com/apache/servicecomb-service-center/pull/837#discussion_r561831898
##########
File path: datasource/mongo/database.go
##########
@@ -33,6 +33,10 @@ const (
CollectionRole = "role"
)
+const (
+ serviceAppIDNameEnvVersionIndex = "DomainProjectAppIdNameEnvVersion"
Review comment:
这个变量的作用是?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org