<div dir="ltr">One observation regarding this problem: Both the shapefile and SpatiaLite database are on a NAS box. If I move the SpatiaLite file to a local drive, it renders instantly like the shapefile. So the question is: What is it about being stored on a NAS box that throttles down the speed of SpatiaLite but does not affect shapefiles?<div><br></div><div>Árni</div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div><br></div><font color="#666666">Árni Geirsson<br><span style="font-size:x-small"><font color="#666666"><b>Alta ehf</b> // +354 582 5000 // +354 897 9549</font></span></font><div><font color="#666666"><span style="font-size:x-small"><a href="http://www.alta.is" target="_blank">www.alta.is</a>  // </span><span style="font-size:x-small"><a href="http://twitter.com/alta_ehf" target="_blank">Alta á Twitter</a> // <a href="http://www.facebook.com/pages/Alta/161795813838691?v=wall" target="_blank">Alta á Facebook</a></span></font><br></div></div></div>
<br><div class="gmail_quote">On Mon, Sep 14, 2015 at 1:56 PM, Árni Geirsson <span dir="ltr"><<a href="mailto:arni@alta.is" target="_blank">arni@alta.is</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi<div>I have polygon data in a shapefile that is rendered instantly on the screen when I zoom and pan. Now I want to use the more advanced capabilities of SpatiaLite and I have loaded the data into a SpatiaLite database. Rendering the SpatiaLite data on the screen is much slower. The polygons appear one by one and refreshing the map takes several seconds. There are about 19.000 fairly simple polygons in the table, which should not be very demanding. <i> </i>I have tried loading the data into SpatiaLite both with the DB manager and the SpatiaLite-GUI application with the same slow result.</div><div>I tried loading the same data into PostGIS on localhost and that is as quick as the shapefile.</div><div>I have created a spatial index on the SpatiaLite table but that did not improve the slow rendering.</div><div><br></div><div>What am I doing wrong?</div><div><br></div><div>Thanks</div><div><br></div><div>Árni</div><span class="HOEnZb"><font color="#888888"><div><div><div><div><br></div><font color="#666666">Árni Geirsson<br><span style="font-size:x-small"><font color="#666666"><b>Alta ehf</b> // <a href="tel:%2B354%20582%205000" value="+3545825000" target="_blank">+354 582 5000</a> // <a href="tel:%2B354%20897%209549" value="+3548979549" target="_blank">+354 897 9549</a></font></span></font><div><font color="#666666"><span style="font-size:x-small"><a href="http://www.alta.is" target="_blank">www.alta.is</a>  // </span><span style="font-size:x-small"><a href="http://twitter.com/alta_ehf" target="_blank">Alta á Twitter</a> // <a href="http://www.facebook.com/pages/Alta/161795813838691?v=wall" target="_blank">Alta á Facebook</a></span></font><br></div></div></div>
</div></font></span></div>
</blockquote></div><br></div>