1
0
Fork 0
arangodb/Doxygen/Examples.Durham/shell_index-drop-index

16 lines
541 B
Plaintext

avocado> db.example.ensureSkiplist("a", "b");
{ "id" : "73650/991154", "unique" : false, "type" : "skiplist", "fields" : ["a", "b"], "isNewlyCreated" : true }
avocado> i = db.example.getIndexes();
[{ "id" : "73650/0", "type" : "primary", "fields" : ["_id"] },
{ "id" : "73650/991154", "unique" : false, "type" : "skiplist", "fields" : ["a", "b"] }]
avocado> db.example.dropIndex(i[0])
false
avocado> db.example.dropIndex(i[1].id)
true
avocado> i = db.example.getIndexes();
[{ "id" : "73650/0", "type" : "primary", "fields" : ["_id"] }]