[Sequoia] database Sequoiadb how to view a collection of space where the field

[Issue] a detailed description of
how to view a collection of domain space where?

[Solution]
1. Connect catalog node (e.g. = 11800 svcName)
var Sdb new new DB = ( "localhost", 11800);
2.SYSCAT.SYSCOLLECTIONSPACES collection contains all the spatial information of the user set in the cluster, in this collection by specify you want to check the new collection space name to see their respective domain. The collection space named "foo", available through the following command:
db.SYSCAT.SYSCOLLECTIONSPACES.find ({ "the Name": "foo"});

【Solution】

  1. Currently (V3.2) no reverse lookup from a set of air interface domain can find the set of spatial domain by a domain containing, namely: domain.listCollectionSpaces (). To find only domain to which it belongs directly connected nodes catalog after catalog view system information through a collection of space, but not directly connected to the node catalog data and other operations to make changes, or there will be risks, it is generally not recommended to use this method.
  2. To use the above-described method refer to the following steps:
    (1) connected to catalog the node (e.g., 11800 = svcName)
    var Sdb new new DB = ( "localhost", 11800);
    (2) SYSCAT.SYSCOLLECTIONSPACES collection contains all users in the cluster collection of spatial information in this collection query name specified by a set of space you want to see can see it belongs to the domain name in the "domain" field. The collection space named "foo", available through the following command:
    db.SYSCAT.SYSCOLLECTIONSPACES.find ({ "the Name": "foo"});

【Solution】

  1. Currently (V3.2) no reverse lookup from a set of air interface domain can find the set of spatial domain by a domain containing, namely: domain.listCollectionSpaces (). To find only domain to which it belongs directly connected nodes catalog after catalog view system information through a collection of space, but not directly connected to the node catalog data and other operations to make changes, or there will be risks, it is generally not recommended to use this method.
  2. To use the above-described method refer to the following steps:
    (1) connected to catalog the node (e.g., 11800 = svcName)
    var Sdb new new DB = ( "localhost", 11800);
    (2) SYSCAT.SYSCOLLECTIONSPACES collection contains all users in the cluster collection of spatial information in this collection query name specified by a set of space you want to see can see it belongs to the domain name in the "domain" field. The collection space named "foo", available through the following command:
    db.SYSCAT.SYSCOLLECTIONSPACES.find ({ "the Name": "foo"});
    [References]
    SdbDomain.listCollectionSpaces (): HTTP: // DOC. sequoiadb.com/cn/index-cat_id-1432190887-edition_id-302

【Solution】

  1. SQL can be acquired by the built-in $ LIST_CS view, such as the collection space named "cs", performed db.exec ( 'select Domain from $ LIST_CS where Name = "cs"'); cs belongs to return to domains.

Guess you like

Origin blog.csdn.net/Kamani_msd/article/details/95310609