jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marcel Reutegger <marcel.reuteg...@gmx.net>
Subject Re: RowIterator loop is slow?
Date Thu, 30 Nov 2006 10:40:48 GMT
That's probably because jackrabbit needs to read all 2000 entries from disk. 
does the performance improve when you look again through the entries?

regards
  marcel

dan wrote:
> Hi,
> I was using RowIterator to loop through about 2000 entries in query result
> and it took about 3+ seconds. 
> I stripped the code to the bare loop structure like below: 
> 	logger.debug("start loop");
> 	while (rows.hasNext()){
> 		Row row = rows.nextRow();
> 		Value[] values = row.getValues();
> 	}  
> 	logger.debug("end loop");
> 
> The time for going through the entire RowSet is still 3+ second. Tried with
> NodeIterator, the result did not change much. 
> 
> Could anyone advise if this is the normal performance? I'm running this code
> on a Windows 2003 server.
> 
> Thanks,
> Dan
> 

Mime
View raw message