You cannot use _________ to change the value of expireAfterSeconds of an existing index.

Nam Lê

Member
You cannot use _________ to change the value of expireAfterSeconds of an existing index.
A. createIndex()
B. dropIndex()
C. removeIndex()
D. none of the mentioned
 
Answer: a
Explanation: Instead use the collMod database command in conjunction with the index collection flag. Otherwise, to change the value of the option of an existing index, you must drop the index first and recreate.
 

Tìm kiếm

Back
Top