db.getCollection("ny_room_browse_record").createIndex({wechat_user_space_id:1}, {background: true});
db.getCollection("ny_room_browse_record").createIndex({room_id:1}, {background: true});
db.getCollection("ny_room_browse_record").getIndexes();
db.getCollection("ny_room_browse_record").dropIndex("room_id_1");
db.getCollection("ny_room_browse_record").dropIndex("room_id_1_wechat_user_space_id_1");
db.getCollection("ny_room_browse_record").dropIndex("wechat_user_space_id_1")
operaciones mongo-index
Supongo que te gusta
Origin blog.csdn.net/minihuabei/article/details/109776465
Recomendado
Clasificación