[postgis-users] Slow Query Times for Split Tiles

elliott elliott at cpi.com
Tue Nov 1 13:23:36 PDT 2011


Should splitting raster files into tiles increase query performance?

I have a two 1201x1201 raster tiles that were loaded by the following 
scripts:

raster2pgsql.py -a -r N37E126.hgt -F N37E126 -t srtm3 -s 4326 
*-k1201x1201* > srtm.sql
psql -f srtm.sql TEST

raster2pgsql.py -a -r N37E127.hgt -F N37E127 -t srtm3 -s 4327 *-k50x50* 
 > srtm.sql
psql -f srtm.sql TEST

Querying these raster files appears to produce approximately the same 
timing results.  Should the 50x50 have better performance than the 
1201x1201?  Taking almost 3 minutes to query 10000 points seems to be 
very slow.

Number of Lat/Lon Pairs                  Time in secs for 
1201x1201           Time in secs for 50x50

1000                                                17 sec            
                                 20 sec
5000                                                85 sec            
                                 104 sec
10000                                              167 sec            
                               205 sec
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20111101/5dbb4673/attachment.html>


More information about the postgis-users mailing list