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 -索引操作
猜你喜欢
转载自blog.csdn.net/minihuabei/article/details/109776465
今日推荐
周排行