Monday 19 July 2021

ArangoDB: Figures: Get statistics of a collection

‘collection.figures(details)’ method is used to get the statistics of a collection.

 

Signature

collection.figures(details)

 

‘details’ is a Boolean argument, if you call figures method by setting the details to true, then this method will return extended storage engine-specific details.

127.0.0.1:8529@demo> db.test.figures()
{ 
  "indexes" : { 
    "count" : 1, 
    "size" : 0 
  }, 
  "documentsSize" : 0, 
  "cacheInUse" : false, 
  "cacheSize" : 0, 
  "cacheUsage" : 0 
}

 

With extended statistics.

127.0.0.1:8529@demo> db.test.figures(true)
{ 
  "indexes" : { 
    "count" : 1, 
    "size" : 0 
  }, 
  "documentsSize" : 0, 
  "cacheInUse" : false, 
  "cacheSize" : 0, 
  "cacheUsage" : 0, 
  "engine" : { 
    "documents" : 0, 
    "indexes" : [ 
      { 
        "type" : "primary", 
        "id" : 0, 
        "count" : 0 
      } 
    ] 
  } 
}

 

 

 

Previous                                                    Next                                                    Home

No comments:

Post a Comment