[Zope] URGENT : site inaccessible when traffic is high

Hamzat Kamal k_hamzat@yahoo.com
Mon, 27 May 2002 06:25:40 -0700 (PDT)


Hi,

I have 2 nested loops, where the outer one iterated over folders and
the inner one iterated over the dtml documents in each folder.

I noticed that when the traffic is high, the site become
inaccessible.

could the problem caused by the loops?

<dtml-in "news.objectValues(['Folder'])">
<dtml-let number=sequence-number path=id>
<dtml-if expr="number < _.int(num)">
<dtml-in "objectValues(['DTML Document'])">
<dtml-try>
<dtml-call "REQUEST.set('mm',
ZopeTime().toZone('GMT+1').strftime('%d%m%y'))">
<dtml-let test=sequence-item>
<dtml-if expr="mm==test">
<font face=arial size=-5>
<dtml-var expr="_.getitem(mm,1)[0:400]">....<br>
<a href="&dtml-ngrHome;news/&dtml-path;">
<img src="images/morex.gif" border="0" width="60" height="23">
</a><br>
<dtml-if expr="number < _.int(num)-1">
<hr size="2" width="75%">
</dtml-if>
</font>
</dtml-if>
</dtml-let>
<dtml-except>
</dtml-try>
</dtml-in>
</dtml-if>
</dtml-let>
</dtml-in>


=====
Hamzat kamaldeen Ishola
Dnet Systems Limited. 223 Ikorodu Road, Lagos. Nigeria.
234 1 7749381, 234 08033011305
---
Making Mistake is not a problem but readiness to admit it.. Sentimental decisions are not mistakes but failures !!!
Mistake is an opportunity to see better !!!

__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com