<div class="gmail_quote">hi! <br>i got a table with 4 millions points and the gettfeature request take more than 15 seconds =/<br>i have a index on geom_p.<br><br>My request in log file :<br>SELECT "ogc_fid",ST_AsGML(2, ST_Transform("geom_p"::geometry,900913),0,0) AS "geom_p" ,"statut_maj","seq_no_civ","no_civq","odospec","munnom","co_postl","commentaire","date_maj","role" FROM admgeo1."zz_aq_msp_adresse_geo_modif3" WHERE (_ST_Intersects(ST_Transform("geom_p",900913),'SRID=900913;POLYGON((-7989665.720874 5910761.888602,-7989665.720874 5910783.983681,-7989636.161242 5910783.983681,-7989636.161242 5910761.888602,-7989665.720874 5910761.888602))'::geometry) AND ST_Transform("geom_p",900913) && 'SRID=900913;POLYGON((-7989665.720874 5910761.888602,-7989665.720874 5910783.983681,-7989636.161242 5910783.983681,-7989636.161242 5910761.888602,-7989665.720874 5910761.888602))'::geometry)<br>
<br>i was wondering if some st_transform could be removed from the SQL if layer has the same projection as the request ? <br>maybe just transform the BBOX and the GML <br><font color="#888888"><br>Marc-André Trottier<br>
</font></div><br>