jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "dan" <danz8...@hotmail.com>
Subject RowIterator loop is slow?
Date Wed, 29 Nov 2006 20:00:36 GMT
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.


View raw message