太阳黑子和思维狮身人面像之间的性能差异 [英] Performance difference between sunspot and thinking sphinx

查看:142
本文介绍了太阳黑子和思维狮身人面像之间的性能差异的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我读过一篇文章,比较太阳黑子的表现和思考
sphinx( http://www.vijedi.net/2010/ruby-full-text-search-performance-thinking-sphinx-vs-sunspot-solr/
)。根据文章中的太阳黑子在思考狮身人面像后拖了很多时间,因为
使用xml与java层交互。这是所提到的结果
there

 运行思考Sphinx Sunspot 
5000 38.49 1611.60
10000 38.54 1648.51
15000 39.06 1614.52
20000 38.86 1583.53
25000 39.78 1613.79
30000 38.83 1595.60
35000 38.34 1571.96
40000 38.06 1631.87
45000 37.57 1603.31
50000 38.23 1634.53
合计385.80 16109.26

是否真的有这样的差异?太阳黑子真的慢吗?或者是文章
只是有偏见?您会推荐哪种全文搜索引擎?

解决方案

如果你看看那篇文章的评论,没有偏见,但时代不是两个图书馆的可靠比较。



我是Thinking Sphinx的作者,所以我当然认为它是一个可行的选择,并应该为你服务 - 但有时Solr(或不同的选项再次)将是一个更好的选择。思维狮身人面像和太阳黑子都得到了很好的维护并得到了广泛的应用 - 当然,思维狮身人面像支持Rails 3和3.1,并且不会很快消失。



我会推荐尝试一个或另一个,看看它是如何工作的 - 除非你处理的是一个庞大的网站,那么搜索不太可能成为瓶颈,所以随你喜欢什么感觉。


I read an article comparing the performance of sunspot and thinking sphinx ( http://www.vijedi.net/2010/ruby-full-text-search-performance-thinking-sphinx-vs-sunspot-solr/ ). As per the article sunspot drags a lot behind thinking sphinx since it uses xml to interact with java layer. This is the result mentioned there

Runs    Thinking Sphinx       Sunspot
5000              38.49       1611.60
10000             38.54       1648.51
15000             39.06       1614.52
20000             38.86       1583.53
25000             39.78       1613.79
30000             38.83       1595.60
35000             38.34       1571.96
40000             38.06       1631.87
45000             37.57       1603.31
50000             38.23       1634.53
Total            385.80      16109.26

Is there really such a difference? Is sunspot really slower? or is the article just biased? Which Full Text Search Engine would you guys recommend?

解决方案

If you look at the comments on that article, it seems that the author is not biased, but that the times aren't a reliable comparison of the two libraries.

I'm the author of Thinking Sphinx, so of course I think it's a viable option and should serve you well - but sometimes Solr (or a different option again) will be a better fit. Both Thinking Sphinx and Sunspot are well-maintained and used widely - certainly, Thinking Sphinx supports Rails 3 and 3.1 and won't be disappearing any time soon.

I would recommend trying one or the other out, seeing how it works - unless you're dealing with a site that's massive, then search is unlikely to be a bottleneck, so go with what you feel more comfortable with.

这篇关于太阳黑子和思维狮身人面像之间的性能差异的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆