Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to view the domain where the collection space is located in Sequoiadb

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)05/31 Report--

In this issue, the editor will bring you about how to view the domain of the collection space in Sequoiadb. The article is rich in content and analyzes and narrates it from a professional point of view. I hope you can get something after reading this article.

1. Connect catalog nodes (such as SvcName=11800)

Var db = new Sdb ("localhost", 11800)

The 2.SYSCAT.SYSCOLLECTIONSPACES collection contains all the user collection space information in the cluster, and you can see the domain name of the collection space to which you want to look up new in this collection. If the collection space is named "foo", you can query it with the following command:

Db.SYSCAT.SYSCOLLECTIONSPACES.find ({"Name": "foo"})

[solution]

1. Currently (v3.2) there is no interface to reverse look up the domain from the collection space. You can find the collection space contained in the domain through the domain, that is, domain.listCollectionSpaces (). If you need to find the domain through the collection space, you can only view the system cataloging information after directly connecting the cataloging node, but do not modify the data after directly connecting the cataloging node, otherwise it will be risky, so this method is generally not recommended.

two。 If you want to use the above method, please refer to the following steps:

(1) connect cataloging nodes (such as SvcName=11800)

Var db = new Sdb ("localhost", 11800)

(2) the SYSCAT.SYSCOLLECTIONSPACES collection contains all the user collection space information in the cluster. In this collection, you can see the domain name in the "Domain" field by specifying the name of the collection space you want to view. If the collection space is named "foo", you can query it with the following command:

Db.SYSCAT.SYSCOLLECTIONSPACES.find ({"Name": "foo"})

[solution]

1. Currently (v3.2) there is no interface to reverse look up the domain from the collection space. You can find the collection space contained in the domain through the domain, that is, domain.listCollectionSpaces (). If you need to find the domain through the collection space, you can only view the system cataloging information after directly connecting the cataloging node, but do not modify the data after directly connecting the cataloging node, otherwise it will be risky, so this method is generally not recommended.

two。 If you want to use the above method, please refer to the following steps:

(1) connect cataloging nodes (such as SvcName=11800)

Var db = new Sdb ("localhost", 11800)

(2) the SYSCAT.SYSCOLLECTIONSPACES collection contains all the user collection space information in the cluster. In this collection, you can see the domain name in the "Domain" field by specifying the name of the collection space you want to view. If the collection space is named "foo", you can query it with the following command:

Db.SYSCAT.SYSCOLLECTIONSPACES.find ({"Name": "foo"})

The above is how to view the domain of the collection space in the Sequoiadb shared by the editor. If you happen to have similar doubts, you might as well refer to the above analysis to understand. If you want to know more about it, you are welcome to follow the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report