Zend Lucene和Java Lucene之间的性能比较 [英] performance comparision between Zend Lucene and Java Lucene

查看:100
本文介绍了Zend Lucene和Java Lucene之间的性能比较的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Zend Lucene 和Java Lucene是用PHP构建的和Java相对应,PHP语言比Java具有更高的层次.

Zend Lucene and Java Lucene are built in PHP and java repectively, and PHP language has a higher level than java.

想知道这两者之间在索引建立和数据搜索方面的性能差异有多大?

Just wondering How big the performance difference among these two, regarding to index building and data searching?

让java创建和重建索引,让php使用索引会更有效吗?

Is it much more effective to let java create and rebuild index, and let php use the index?

推荐答案

这是Zend认证工程师的报价.

This is a quote from a Zend Certified Engineer.

根据我的更好判断, 我为之工作的公司迁移了我们 以前的搜索解决方案 Zend_Search_Lucene.在漂亮 重型硬件,索引一个 数百万个文档花了几个小时, 并且搜索相对较慢.这 索引过程消耗了大量 的内存,索引经常 损坏(使用1.5.2).一种 从字面上进行单个通配符搜索 使网络服务器屈服, 因此我们禁用了该功能.记忆 搜索的使用率很高,并且 结果是每秒的请求数 一定会像我们以前那样严重下降 减少Apache子代的数量 程序.

Against my better judgment, the company I work for migrated our previous search solution to Zend_Search_Lucene. On pretty heavy-duty hardware, indexing a million documents took several hours, and searches were relatively slow. The indexing process consumed vast amounts of memory, and the indexes frequently became corrupted (using 1.5.2). A single wild card search literally brought the web server to its knees, so we disabled that feature. Memory usage was very high for searches, and as a result requests per second necessarily declined heavily as we had to reduce the number of Apache child processes.

此后,我们搬到了Solr(a 基于Lucene的Java搜索服务器)和 区别是巨大的.索引编制 现在大约需要10分钟, 搜索速度很快.真是个 语言的不同.

We have since moved to Solr (a Lucene-based Java search server) and the difference is dramatic. Indexing now takes around 10 minutes and searches are lightning fast. What a difference a language makes.

原始文章

在这种情况下,是Java.

In this case, Java.

这篇关于Zend Lucene和Java Lucene之间的性能比较的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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