<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
&nbsp;<BR>
Hi all,<BR>
&nbsp;<BR>
I'm doing an application in C# that uses mapscript to generate images. The features come from a postgis database.<BR>
&nbsp;<BR>
On my development machine all goes well and the image is always generated in less than 1 second. When I deployed the application to my two production servers (both powerfull than my dev machine), I noticed a very strange behavior: it takes +-20 seconds to generate the same image. Doing some debug on what's happening, I realized that was the call to mapObj.draw() method that was taking all that time. <BR><BR>
Thinking it could be a database related problem, (note that I'm using a local database) I've inspected the server logs and saw that the query only arrived at the database after that 20 seconds. So, the time is being taken in the draw, but before the database call.<BR>
&nbsp;<BR>
Anyone have a clue on what could be happening?<BR>
&nbsp;<BR>
Thanks,<BR>
&nbsp;<BR>
Nelson<BR>                                               <br /><hr />What can you do with the new Windows Live? <a href='http://www.microsoft.com/windows/windowslive/default.aspx' target='_new'>Find out</a></body>
</html>