19
2013-08

mongodb索引管理


作者:容易 2013-08-19 14:45:19



创建索引

db.tScptradeEvent.ensureIndex({"eventRefNo":1,"syscode":1},{"name":"eventRefNo_syscode","background":true});

db.tScptradeEvent.ensureIndex({"custId":1,"requesttime":-1},{"name":"custId_requesttime","background":true});

db.tScptradeEvent.ensureIndex({"cardNo":1,"requesttime":-1},{"name":"cardNo _requesttime","background":true});

db.tScptradeEvent.ensureIndex({"pnrDevId":1,"requesttime":-1},{"name":"pnrDevId _requesttime","background":true});

db.tScptradeEvent.ensureIndex({"cardBin":1,"requesttime":-1},{"name":"cardBin _requesttime","background":true});

db.tScptradeEvent.ensureIndex({"txDate":1},{"name":"txDate","background":true});


One Response


    还没有评论!
1  

Leave your comment

请留下您的姓名(*)

请输入正确的邮箱地址(*)

请输入你的评论(*)


感谢开源 © 2016. All rights reserved.&3Q Open Source&^_^赣ICP备15012863号-1^_^
乐于分享共同进步 KreativeThemes