<div dir="ltr"><div class="gmail_default" style="font-family:tahoma,sans-serif">Before anyone be able to give you a solid advice, I would suggest to post your query plan as well. I am almost certain that you're accessing your data using wrong queries. </div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Feb 16, 2016 at 10:46 PM, Mustafa Elbehery <span dir="ltr"><<a href="mailto:elbeherymustafa@gmail.com" target="_blank">elbeherymustafa@gmail.com</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 Folks, <div><br></div><div>I am trying to create a benchmark to compare PostGIS against Apache Spark performance, in SpatialQuery capabilties for sure. </div><div><br></div><div>I have expected that spark will outperfom, since the data resides in memory, unlike PostGIS. However, I am more interested in using PostGIS, for the sake of the <b>rich geometric predicates & functions. </b></div><div><b><br></b></div><div>However, I have tried to load 6GB only of data into a table, and trying a join query with another table. Specifically <b>ST_Within. </b></div><div><br></div><div>Surprisingly, PostGIS was unable to finish the query, for <b>limit > 1000000 . </b></div><div><b><br></b></div><div>In other words, as long as I limit my query result from <b>10 till 10000000, </b>the query return result. However, more than this, the query never return, I have waited for <b>50 </b>minutes on AWS EC2 Instance, with 4 cores & 16 GB, and <b>nothing !!</b></div><div><b><br></b></div><div>I have tried to use Vaccum_Verbose & analyze, the same issue remained. </div><div><br></div><div>Would like to hear any suggestions to solve the problem </div><div><br></div><div>Thanks in advance.</div></div>
<br>_______________________________________________<br>
postgis-users mailing list<br>
<a href="mailto:postgis-users@lists.osgeo.org">postgis-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/postgis-users" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/postgis-users</a><br></blockquote></div><br></div>