arangodb / arangojs

The official ArangoDB JavaScript driver.
https://arangodb.github.io/arangojs
Apache License 2.0
600 stars 106 forks source link

Get index figures #728

Closed matcho closed 2 years ago

matcho commented 3 years ago

Hello,

Is it possible to obtain index figures from ArangoJS, especially entries count, as can be done in arangosh with db.collection.figures(true) ?

We're trying to implement a broken index detection test, based on @jsteemann comment in the thread below: https://github.com/arangodb/arangodb/issues/13974#issuecomment-830301715

Tried collection.figures(true), collection.indexes(true), collection.index('idx_foo', true)… with no success.

Thank you, Greetings

pluma commented 3 years ago

Looks like the figures API is meant to take a boolean argument: https://www.arangodb.com/docs/stable/http/collection-getting.html#return-statistics-for-a-collection

This isn't however implement in arangojs at the moment: https://arangodb.github.io/arangojs/latest/interfaces/_collection_.documentcollection.html#figures

This was probably an oversight. I should add support with the option in arangojs.

matcho commented 3 years ago

Hello ! Any update on this one ? Would be really great to get this feature. Thanks a lot !

matcho commented 2 years ago

Please check PR #748

Thank you