Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > Cocoon sql transformer causing squid timeout

Reply
Thread Tools

Cocoon sql transformer causing squid timeout

 
 
phil.a.jenkins@gmail.com
Guest
Posts: n/a
 
      12-07-2005
Hopefully someone can provide a solution to this rather annoying
problem - we have a Cocoon pipeline which ends thus:

<!-- build the sql for insert and final stage of select -->
T1 <map:transform type="xslt" src="stylesheets/buildsql2.xsl"/>

<!-- run the sql -->
<map:transform type="sql">
<maparameter name="*****" value="****"/>
</map:transform>

<!-- build the response -->
T2 <map:transform type="xslt" src="stylesheets/buildresult.xsl"/>

<!-- send the response -->
<map:serialize/>

The SQL queries in Transform T1 execute either SELECT or INSERT queries
on a large meta-database, so the following performance characteristics
apply:

1. SELECT statements take a long time to
'render' to the final xml result- i.e. Transform T2.

2. INSERT statements take a long time to
execute in the first place i.e. Transform T1.

Now, if transform T2 takes a long time to execute (sometimes in the
region of hours), there is no problems, the client will happily sit and
wait for the data. Transform T1 on the other hand will cause the squid
proxy (though which cocoon is accessed) to give a timeout error back to
the client after x mins. The database INSERT however completes
succesfully, regardless of this error.

It seems apparent from this situation that a cocoon serializer will
'stream' data back to the client through the proxy - but the transform
steps must wait for well-formed XML before contacting the client. Is
there any way of keeping a connection 'busy' while waiting for this
transform (T1) to complete?

PS Sadly we cannot change the timeout limit on the Squid proxy, which
would have rendered this message redundant.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
microsoft.applicationblock.data DLL (.net2.0) causing sql timeout error Milsnips ASP .Net 6 11-17-2006 05:06 PM
Squid proxy and 1710 Bill Cisco 2 02-16-2005 04:32 PM
Tomcat+Struts+Cocoon: Good tutorials needed about Cocoon integration Thomas S. Java 0 11-12-2004 08:42 AM
Timeout::timeout and Socket timeout Mark Probert Ruby 1 10-06-2004 09:30 AM
PIX501 and Squid ak_father Cisco 1 07-07-2003 04:52 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57