The system.statistics.object.count command counts and reports numbers of physical objects in the dataset.
See also ‘system.statistics.object.count.per-volume’.
(Document Root)/droonga/system/statistics/object/countGETNot supported.
type of the requestsystem.statistics.object.countbody of the requesttype of the responsesystem.statistics.object.count.result{
"output": [
"tables",
"columns",
"records"
]
}
or
{
"output": [
"total"
]
}
This command counts and reports the physical numbers of specified targets. For example:
{
"type" : "system.statistics.object.count",
"body" : {
"output": [
"tables",
"columns",
"records",
"total"
]
}
}
=> {
"type" : "system.statistics.object.count.result",
"body" : {
"tables": 2,
"columns": 0,
"records": 1,
"total": 3
}
}
All parameters are optional.
outputtablescolumnsrecordstotal[]This returns a hash like following as the response’s body, with 200 as its statusCode.
{
"tables": <The total number of tables>,
"columns": <The total number of columns>,
"records": <The total number of records>,
"total": <The total number of all objects>,
}
tables4.columns8.records3.
(One for the regular table, two for multiplied records in the fact table.)totaltables, columns, and records.
If you just want to know the total number of all objects, this is faster than separate targets.This command reports general errors.