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")
mongo -索引操作
最新推荐文章于 2022-06-26 19:44:34 发布