12
返回列表 发新帖
楼主: jieforest

MongoDB的性能调优工具 -- Dex

[复制链接]
论坛徽章:
277
马上加薪
日期:2014-02-19 11:55:14马上有对象
日期:2014-02-19 11:55:14马上有钱
日期:2014-02-19 11:55:14马上有房
日期:2014-02-19 11:55:14马上有车
日期:2014-02-19 11:55:14马上有车
日期:2014-02-18 16:41:112014年新春福章
日期:2014-02-18 16:41:11版主9段
日期:2012-11-25 02:21:03ITPUB年度最佳版主
日期:2014-02-19 10:05:27现任管理团队成员
日期:2011-05-07 01:45:08
11#
 楼主| 发表于 2012-8-2 11:01 | 只看该作者
Step 3: Recommend an index (if necessary)
Once evaluation is complete, Dex considers an ideal index to have Coverage ‘full’ and Ideal Order true. If these conditions are not met, and the query itself contains no UNSUPPORTED terms, Dex recommends an ideal index (with an index order of 1 for all fields).

Note: Dex does not really need to look at existing indexes in order suggest the ideal index for a given query. But Dex does examine existing indexes as a courtesy to users who already have them in place — both to provide analysis of partial indexes (in verbose mode), and to avoid suggesting indexes that already exist.

使用道具 举报

回复
论坛徽章:
277
马上加薪
日期:2014-02-19 11:55:14马上有对象
日期:2014-02-19 11:55:14马上有钱
日期:2014-02-19 11:55:14马上有房
日期:2014-02-19 11:55:14马上有车
日期:2014-02-19 11:55:14马上有车
日期:2014-02-18 16:41:112014年新春福章
日期:2014-02-18 16:41:11版主9段
日期:2012-11-25 02:21:03ITPUB年度最佳版主
日期:2014-02-19 10:05:27现任管理团队成员
日期:2011-05-07 01:45:08
12#
 楼主| 发表于 2012-8-2 11:02 | 只看该作者
Future Directions

(1) Line Parsers: Better coverage of log lines, with a goal of complete coverage of all indexable queries

(2) Analyze the system.profile collection with -p option

(3) Constrain analysis by a time range with -t option

(4) Add Dex’s own “SLOW_MS” to narrow results if desired

(5) Support geospatial queries

(6) Improved recommendation caching, storing queries by mask and summing:
(6.1) Number of like queries
(6.2) Time consumed
(6.3) Min/max time range
(6.4) Min/max nscanned/nreturned

(7) Improved recommendations:
(7.1) Combine like recommendations (or generate recommendations from multiple like queries)
(7.2) Measure cardinality (yay aggregation framework) in the collection to inform recommended index key order.

使用道具 举报

回复
论坛徽章:
277
马上加薪
日期:2014-02-19 11:55:14马上有对象
日期:2014-02-19 11:55:14马上有钱
日期:2014-02-19 11:55:14马上有房
日期:2014-02-19 11:55:14马上有车
日期:2014-02-19 11:55:14马上有车
日期:2014-02-18 16:41:112014年新春福章
日期:2014-02-18 16:41:11版主9段
日期:2012-11-25 02:21:03ITPUB年度最佳版主
日期:2014-02-19 10:05:27现任管理团队成员
日期:2011-05-07 01:45:08
13#
 楼主| 发表于 2012-8-2 11:03 | 只看该作者
Conclusion

We’re really excited about Dex at MongoLab and look forward to the many improvements that are possible in the MongoDB automation space. I’m presenting Dex at the June MongoDB San Francisco User’s Group today, June 19, 2012. If you can make it on such short notice, check out the details here. We will follow up with a link to presentation slides a short time later.

Finally, for those interested in the indexing knowledge we’ve accumulated as Dex was built, check out my Cardinal $ins blog here.

As always, good luck out there!

使用道具 举报

回复
论坛徽章:
277
马上加薪
日期:2014-02-19 11:55:14马上有对象
日期:2014-02-19 11:55:14马上有钱
日期:2014-02-19 11:55:14马上有房
日期:2014-02-19 11:55:14马上有车
日期:2014-02-19 11:55:14马上有车
日期:2014-02-18 16:41:112014年新春福章
日期:2014-02-18 16:41:11版主9段
日期:2012-11-25 02:21:03ITPUB年度最佳版主
日期:2014-02-19 10:05:27现任管理团队成员
日期:2011-05-07 01:45:08
14#
 楼主| 发表于 2012-8-2 11:03 | 只看该作者
昨日计算机出问题了,今天把文章补发完整。

使用道具 举报

回复

您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

TOP技术积分榜 社区积分榜 徽章 团队 统计 知识索引树 积分竞拍 文本模式 帮助
  ITPUB首页 | ITPUB论坛 | 数据库技术 | 企业信息化 | 开发技术 | 微软技术 | 软件工程与项目管理 | IBM技术园地 | 行业纵向讨论 | IT招聘 | IT文档
  ChinaUnix | ChinaUnix博客 | ChinaUnix论坛
CopyRight 1999-2011 itpub.net All Right Reserved. 北京盛拓优讯信息技术有限公司版权所有 联系我们 未成年人举报专区 
京ICP备16024965号-8  北京市公安局海淀分局网监中心备案编号:11010802021510 广播电视节目制作经营许可证:编号(京)字第1149号
  
快速回复 返回顶部 返回列表