<HTML dir=ltr><HEAD><TITLE>Re: [UMN_MAPSERVER-DEV] More of pooling, mapquery.c</TITLE>
<META http-equiv=Content-Type content="text/html; charset=unicode">
<META content="MSHTML 6.00.6000.16414" name=GENERATOR></HEAD>
<BODY>
<DIV id=idOWAReplyText71201 dir=ltr>
<DIV dir=ltr><FONT face=Arial color=#000000 size=2>Hello Andreas,</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT> </DIV>
<DIV dir=ltr><FONT face=Arial size=2>I'm using at least ver 4.10.1 of MapServer. How do I check if the connection pooling is up and working? Do I have to tell Mapserver to use pooling?</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT> </DIV>
<DIV dir=ltr><FONT face=Arial size=2>/Johan</FONT></DIV>
<DIV dir=ltr><FONT face=Arial color=#000000 size=2><SPAN lang=SV style="FONT-SIZE: 10pt"><FONT face=Arial>___________________________________</FONT></SPAN></DIV></DIV>
<DIV id=idSignature9138 dir=ltr>
<DIV>
<DIV dir=ltr align=left>
<H3 style="MARGIN: 0cm 0cm 0pt"><SPAN lang=SV><FONT face=Arial size=3>Johan Hallgren</FONT></SPAN></H3>
<DIV class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=SV></SPAN> </DIV>
<DIV class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=SV style="FONT-SIZE: 9pt; FONT-FAMILY: Arial">WM-data</SPAN></DIV>
<DIV class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=SV style="FONT-SIZE: 9pt; FONT-FAMILY: Arial">Pelle Bergs backe 3</SPAN></DIV>
<DIV class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=SV style="FONT-SIZE: 9pt; FONT-FAMILY: Arial"></SPAN><SPAN lang=SV style="FONT-SIZE: 9pt; FONT-FAMILY: Arial">Box 1938, 791 19 Falun</SPAN></DIV>
<DIV class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=SV style="FONT-SIZE: 9pt; FONT-FAMILY: Arial">
<DIV class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=SV style="FONT-SIZE: 9pt; FONT-FAMILY: Arial; mso-ansi-language: SV; mso-no-proof: yes">Tel (och mobil): 023-547 46 (int: +46-2354746)</SPAN><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-no-proof: yes"><?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></SPAN></DIV></SPAN><SPAN lang=SV style="FONT-SIZE: 9pt; FONT-FAMILY: Arial"><U><FONT color=#0000ff>johan.e.hallgren</FONT></U><A href="mailto:johan.e.hallgren@wmdata.com" target=_blank>@wmdata.com</A></SPAN></DIV>
<DIV class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=SV style="FONT-SIZE: 9pt; FONT-FAMILY: Arial"><A href="https://webaccess.wmdata.com/exchweb/bin/redir.asp?URL=http://www.wmdata.se/" target=_blank>http://www.wmdata.se</A></SPAN></DIV></DIV></FONT></DIV></DIV>
<DIV dir=ltr><BR>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>Från:</B> Andreas Albarello [mailto:andreas.albarello@territoriumonline.com]<BR><B>Skickat:</B> må 2007-05-07 12:25<BR><B>Till:</B> Hallgren Johan E<BR><B>Kopia:</B> MAPSERVER-DEV@LISTS.UMN.EDU<BR><B>Ämne:</B> Re: [UMN_MAPSERVER-DEV] More of pooling, mapquery.c<BR></FONT><BR></DIV>
<DIV>
<P><FONT size=2>Hallgren Johan E wrote:<BR>> Hello again,<BR>><BR>> I have made a test with the following code with extremely good<BR>> performance. I have only tested this specific call, but couldn’t the<BR>> concept be implemented in other functions as well? As I see it, it will<BR>> implement the Connection pool between mapscript calls.<BR>><BR><BR>Johan,<BR><BR>this shouldn't be necessary unless your connection pooling is not<BR>working correctly. Mapserver's connection pool already successfully<BR>shares connections having the same connection string within the same<BR>thread. The msLayerOpen call in your example should therefore not be<BR>opening another connection to the database.<BR><BR>If it indeed does, you might want to check if your connection pooling is<BR>up and working, if it is active on that layer, that you have a fairly<BR>recent Mapserver/Mapscript build and that the subsequent requests come<BR>from within the same thread.<BR><BR>Best regards,<BR>--<BR>--------------------------------------------------------------------<BR>Andreas Albarello<BR>Analysis & SW Development<BR><BR>Territorium Online srl/GmbH<BR>Via Buozzi/Buozzistraße 12 - I 39100 Bolzano/Bozen<BR>email: andreas.albarello@territoriumonline.com<BR>web: www.territoriumonline.com<BR>--------------------------------------------------------------------<BR></FONT></P></DIV></BODY></HTML>