MySQL - 创建查询优化器插件
我的问题很笼统。
我必须为 mySQL 创建一个查询优化器的原型,它可以代替标准查询优化器,或者对其进行补充。一开始不必非常复杂。但是有没有办法关闭标准优化器,以便我可以检查我的优化器的工作方式?什么语言最适合编写这样的附加组件?
My question quite a general one.
I have to create a prototype of a query optimizer for mySQL, that works instead of standard one, or complements it. It doesn't have to be very complicated, at the beginning. But is there a way of turning off the standard optimizer, so that I can check the way how mine works? And what language is the best for writing such an add-on?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
优化器是本身优化器,而不是优化器。您将需要获取源代码并对自定义版本的 MySQL 进行更改。
查看 http://code.google.com/p/google-mysql -tools/wiki/Mysql5Patches 用于修补 MySQL 核心组件的示例。
The optimizer is the optimizer, not an optimizer. You will need to get the source and make your changes into a custom version of MySQL.
Check out http://code.google.com/p/google-mysql-tools/wiki/Mysql5Patches for examples of patching core components of MySQL.