performance comparision between Zend Lucene and Java Lucene(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 的性能比较的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:Zend Lucene 和 Java Lucene 的性能比较
基础教程推荐
- 如何替换eregi() 2022-01-01
- 如何在 Laravel 5.3 注册中添加动态下拉列表列? 2021-01-01
- Cron Jobs 调用带有变量的 PHP 脚本 2022-01-01
- 学说 dbal querybuilder 作为准备好的语句 2022-01-01
- 在PHP中根据W3C规范Unicode 2022-01-01
- 有什么方法可以用编码 UTF-8 而不是 Unicode 返回 PHP`json_encode`? 2021-01-01
- PHP 类:全局变量作为类中的属性 2021-01-01
- 如何在 Laravel 中使用 React Router? 2022-01-01
- YouTube API v3 点赞视频,但计数器不增加 2022-01-01
- PHP PDO MySQL 查询 LIKE ->多个关键词 2021-01-01
