Sunday, October 7, 2007

Digital Library started (why i prefer java for php)

Digital Technical Library (unfortunately, cann't show internet location for some reasons)
Well, I can say that this is my first big project on java. In fact, this is second version. The first was for intranet users. Both of them written in java with open-source search engine.

When i've started i had very poor understanding of what java is. Well, there is no much java developers in our city .

First attempt for develope this digital library was made in November, 2006. And that was PHP with Zend Framework. By that time the framework wasn't realised, but i needed only Zend_Search_Lucene searching engine. And thought that this would be nice. Well, i was wrong :)
Don't know about current version of Zend_Lucene, but previos one was rather slow. The test library version had about 63 000 pages (about 650 MB of information). And search time was about 4 seconds on my notebook and in fact i requested only one query in the same time. Well, java version runs on server, but there are more than 100 times more information. And it took about 3 seconds to process 20 search requests.
Rather cool, ya? :) By the way java-version showed more than 10 times speed increase in proceding on the same test database.
Hey, it's true that simple pages php-version generated faster. But searching was the main aim of the project. And it was very huge bottle-neck of php-vesion.
Well, don't want to rise my sword in the war against PHP... for the time present :)

No comments: