Sphinx 与 Haystack 的搜索性能
我想知道是否有人已经或可以向我指出使用 Sphinx 进行搜索与使用 Xapian 后端的 Haystack 进行搜索的性能基准测试结果的方向。我主要关心单个表中单个字段的全文搜索。
其中哪一个会“更快”?两者都有什么优点/缺点?谢谢。
I was wondering if anyone had or could point me in the direction of benchmark results of the performance of using Sphinx to do search vs. Haystack with a Xapian backend. I'm mainly concerned with full text search on a single field in a single table.
Which of these would be 'faster'? What are the advantages/disadvantages of going with either? Thank you.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Sphinx 是最快的之一,但 Sphinx 的问题是:索引更新所需的时间与构建新索引所需的时间相同;因此,如果您有一个动态数据库并且需要不断更新索引,Sphinx 不是一个好的选择,您应该使用 Xapian 或 Solr (Lucene)
Speed (query)
狮身人面像>卢森Xapian
认为处理大型数据库与处理中型数据库不同。你应该阅读有关 MySQL 全文搜索、MyISAM、InnoDB 等的内容
Sphinx is one of the fastest out there, but the problem with Sphinx is: an Index update will take you the same time as Building a new Index takes; so if you have a dynamic database and you need to update the Index constantly, Sphinx isn't a good choice and you should go with Xapian or Solr (Lucene)
Speed (query)
Sphinx > Lucene > Xapian
consider dealing with a huge database is different from a medium one. you should read about MySQL full text search, MyISAM, InnoDB, ...
最新的 Sphinx (2.0.3) 版本具有实时索引。
The newest Sphinx (2.0.3) release has real time indexes.