<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal">I am having an issue with a postgis database with the time it takes to query the geometry column. The query selects 8000 records. The time to retrieve the records when not returning the geometry column is about 100ms. However, the time
 for the same query when requesting the geometry column takes about 9 seconds.  Any thoughts on how I can improve the performance reading the geometry column from a postgis database? I am using PostgreSQL 9.4 and Postgis 22.1.<o:p></o:p></p>
<p class="MsoNormal">Thanks, David <o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal" style="margin-bottom:2.0pt"><b><span style="font-family:"Arial",sans-serif;color:#EE3524">David Robison<o:p></o:p></span></b></p>
<p class="MsoNormal" style="margin-bottom:2.0pt"><i><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:black">Principal System Engineer<o:p></o:p></span></i></p>
<p class="MsoNormal" style="margin-bottom:2.0pt"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:black">O. +1 757 546 3401</span><span lang="EN-GB" style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:2.0pt"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:black">M. +1 757 286 0022<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:2.0pt"><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><a href="mailto:david.robison@q-free.com"><span style="color:blue">david.robison@q-free.com</span></a><span style="color:black">
<o:p></o:p></span></span></p>
<p class="MsoNormal" style="margin-bottom:2.0pt"><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><a href="http://www.q-free.com/openroads"><span style="color:black">www.q-free.com/openroads</span></a><span style="color:black">
</span><span style="color:#EE3524"><o:p></o:p></span></span></p>
<p class="MsoNormal" style="margin-bottom:6.0pt"><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><img border="0" width="626" height="2" id="Straight_x0020_Connector_x0020_4" src="cid:image001.png@01D1808F.AD1C5990" alt="cid:image001.png@01D15905.23A1F460"><span style="color:#EE3524"><o:p></o:p></span></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:6.0pt;margin-right:0in;margin-bottom:2.0pt;margin-left:0in">
<b><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#EE3524">Q-Free Open Roads</span></b><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#EE3524"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:2.0pt"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:black">103 Watson Road
<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:2.0pt"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:black">Chesapeake VA 23320<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:6.0pt"><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><img border="0" width="626" height="2" id="Straight_x0020_Connector_x0020_9" src="cid:image001.png@01D1808F.AD1C5990" alt="cid:image001.png@01D15905.23A1F460"><span style="color:#EE3524"><o:p></o:p></span></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><img border="0" width="226" height="288" id="Picture_x0020_1" src="cid:image002.png@01D1808F.AD1C5990" alt="cid:image002.png@01D15905.23A1F460"></span><o:p></o:p></p>
<div class="MsoNormal" align="center" style="text-align:center"><span style="font-size:10.0pt;font-family:"Tahoma",sans-serif">
<hr size="3" width="100%" align="center">
</span></div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma",sans-serif">This email communication (including any attachments) may contain confidential and/or privileged material intended solely for the individual or entity to which it is addressed.
 If you are not the intended recipient, please delete this email immediately.</span><span style="font-size:10.0pt;font-family:"Tahoma",sans-serif"><o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>