List Info

Thread: Speeding up container.hasMoreContent()?




Speeding up container.hasMoreContent()?
country flaguser name
United States
2007-04-17 10:18:58
I'm using something like the following to iterate over some
documents. 
It's really slow. I have like 860 documents, how can I speed
this up?

CmsJspXmlContentBean cmsContact = new
CmsJspXmlContentBean(pageContext, 
request, response);
I_CmsXmlContentContainer container = 
cmsContact.contentload("allInFolderPriorityTitleDesc&qu
ot;, 
"=/directory/items/contact_$.html|7",
false);
while (container.hasMoreContent()) {///Do some stuff with
docs}

-- 
Justin Stanczak
Stanczak Group
812-735-3600

"All that is necessary for the triumph of evil is that
good men do nothing."
Edmund Burke


_______________________________________________
This mail is sent to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the
list, please visit
http://lists.opencms.org/mailman/listinfo/opencms-dev

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )