Results 1 to 2 of 2
- 01-09-2012, 01:34 PM #1
Member
- Join Date
- Jan 2012
- Posts
- 2
- Rep Power
- 0
Numeric range query way slower (3.5 vs 3.1)
Hi,
I'm trying to upgrade from Lucene (java) version 3.1 to 3.5 and see a performance drop in 3.5 compared to 3.1 (3x faster in 3.1) when doing numeric range queries. Profiling shows that an enormous amount of BooleanScorer$Bucket objects are created in 3.5 and none in 3.1.
Am I the only one observing this or is it a general issue. Is there any workaround for the performance issue?
Best,
Mattias
- 01-09-2012, 04:00 PM #2
Member
- Join Date
- Jan 2012
- Posts
- 2
- Rep Power
- 0
Re: Numeric range query way slower (3.5 vs 3.1)
It's mostly in unsorted range queries... for sorted range queries 3.5 seems to be just a tad slower than 3.1. I found this in 3.5 (BooleanScorer.java:160-162)
for(int idx=0;idx<SIZE;idx++) {
buckets[idx] = new Bucket();
}
eager initialization of (1 << 11 = 2048) Bucket objects for each BooleanScorer, and that's what seems to kill the performance.
Similar Threads
-
Range Query Issue
By euphreme in forum LuceneReplies: 0Last Post: 10-20-2011, 10:57 PM -
JDBC & Java executeQuery 20 times slower then TOAD
By pido in forum JDBCReplies: 8Last Post: 03-12-2010, 04:30 PM -
Floating point operations is slower when small values are used?
By Cesaro in forum Advanced JavaReplies: 1Last Post: 07-14-2009, 07:04 PM -
JXL, Numeric data issue
By only2008 in forum Java ServletReplies: 0Last Post: 02-27-2009, 11:36 AM -
get numeric value from a text field
By Lehane_9 in forum New To JavaReplies: 2Last Post: 06-14-2008, 03:19 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks