ra0o0f / arangoclient.net

ArangoDB .NET Client with LINQ support
Apache License 2.0
99 stars 37 forks source link

How to check collection/index is existed #114

Open tangkhaiphuong opened 5 years ago

tangkhaiphuong commented 5 years ago

I don't see any API support to checking collection existed or not. And same for indexer, how to get information indexes of the collection.

ra0o0f commented 5 years ago

@tangkhaiphuong for now you can list collections by db.ListCollections() and check if collection exists or not. but for indexes, collection statistics api is need which is not implemented yet

tangkhaiphuong commented 5 years ago

@ra0o0f I use db.ListCollections(), but our db have over 5000 collections so each check collection takes more time to fetch the whole list then finding.