MySQL 索引与 Sphinx 索引
我有一个问题,我使用mysql数据库本身的索引来索引更好还是使用sphinx索引中的索引功能。
I have a question that , i use the index by the mysql database itself to index is better or using the index function in sphinx index.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这取决于。
从所有标准来看,sphinx 都是一个更好的索引,但是 1. 它更快,具有更高级的语法,更小,更具可扩展性,不涉及 myisam。
mysql 更易于维护,更易于安装,不涉及应用程序的另一层,如果它足够好,您也可以使用它。
it depends.
sphinx is a better index by all standards but 1. it's faster, has a more advanced syntax, is smaller, is more scalable, doesn't involve myisam.
mysql is more maintainable, simpler to install, does not involve another tier to your application, and if it's good enough you might as well use it.
Sphinx 为您提供全文搜索选项。您可以说它是嵌入在您的应用程序中的迷你搜索引擎。毫无疑问,它的 Mysql 索引更好。
如果您只想索引自动递增的整数列,那么在您的应用程序中添加 sphinx 似乎没有意义。数据库大小仍然很重要。
查看之前提出的一些问题,以更好地了解什么适合您的需求。
https://stackoverflow.com/questions/tagged/sphinx?sort=votes
Sphinx provides you full text search option. You can say its a mini search engine embedded in your app. And with no doubts its better Mysql Index.
If you just want to index auto incremented integer columns then there seems no point adding sphinx in your app. Still database size matters.
Checkout some the previously asked questions to get better idea what suits your needs.
https://stackoverflow.com/questions/tagged/sphinx?sort=votes