[Problem Description]
how to use the OID as the grouping field and use aggregate query count the number of the field?
Record similar to the following:
{
"the _id": {
" Katex the parse error: the Expected 'the EOF', GOT '}' AT 36 position: 48af889cff ..."}, "... ECM_BUSI_ OID": "5c2c165cd08e8a48af889cfe"
},
"SYS_MIN_VERSION":. 1 ,
"SYS_MAX_VERSION": 2147483647
}
recording using FILE_OID aggregate fields, field FILE_OID oid lob file is recorded in this field has a unique non-repeating.
[Solution]
OID i.e., an object ID is a 12-byte data BSON types, including the following:
OID Description Specific reference documents: http://doc.sequoiadb.com/cn/index-cat_id-1440658403-edition_id-302
- SDB shell press packet OID value do, do aggregate queries use the aggregate and counted:
db.cs.cl.aggregate ({ Katex the parse error: the Expected '}', GOT 'the EOF' End of AT INPUT: Group: {OID: " OID", Total: { OID"}}})
Aggregate Reference document:http://doc.sequoiadb.com/cn/sequoiadb-cat_id-1432190825-edition_id-302 - Use the built-in SQL statements: db.exec ( "the SELECT COUNT (OID) AS Total from XXX Group by OID")
Group by using the reference document: http://doc.sequoiadb.com/cn/sequoiadb-cat_id-1432190963-edition_id- 302
[solution]
OID i.e., an object ID is a 12-byte data BSON types, including the following:
4-byte time stamp accurate to the second
3-byte system (physical machine) labeled
2-byte process ID
3 bytes of random number sequence number starting
OID description specific reference document: http://doc.sequoiadb.com/cn/index-cat_id-1440658403-edition_id-302 - SDB shell press packet OID value do, do aggregate queries use the aggregate and counted:
db.cs.cl.aggregate ({ Katex the parse error: the Expected '}', GOT 'the EOF' End of AT INPUT: Group: {OID: " OID", Total: { OID"}}})
Aggregate Reference document:http://doc.sequoiadb.com/cn/sequoiadb-cat_id-1432190825-edition_id-302 - Use the built-in SQL statements: db.exec ( "the SELECT COUNT (OID) AS Total from XXX Group by OID")
Group by using the reference document: http://doc.sequoiadb.com/cn/sequoiadb-cat_id-1432190963-edition_id- 302