Received: from localhost (unknown [200.46.204.183]) by developer.postgresql.org (Postfix) with ESMTP id C77C92E0038 for ; Tue, 8 Apr 2008 14:39:05 -0300 (ADT) Received: from developer.postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 91766-01 for ; Tue, 8 Apr 2008 14:38:58 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from sn.sai.msu.ru (sn.sai.msu.ru [195.208.220.215]) by developer.postgresql.org (Postfix) with ESMTP id 3D9EE2E002C for ; Tue, 8 Apr 2008 14:38:58 -0300 (ADT) Received: from sn.sai.msu.ru (localhost [127.0.0.1]) by sn.sai.msu.ru (8.14.1/8.12.8) with ESMTP id m38Hcu6X032127; Tue, 8 Apr 2008 21:38:56 +0400 Received: from localhost (megera@localhost) by sn.sai.msu.ru (8.14.1/8.12.8/Submit) with ESMTP id m38HcuqS032124; Tue, 8 Apr 2008 21:38:56 +0400 X-Authentication-Warning: sn.sai.msu.ru: megera owned process doing -bs Date: Tue, 8 Apr 2008 21:38:56 +0400 (MSD) From: Oleg Bartunov X-X-Sender: megera@sn.sai.msu.ru To: Mark Stosberg cc: pgsql-performance@postgresql.org Subject: Re: Re: what worked: performance improvements for geo-spatial searching on FreeBSD In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.583 tagged_above=0 required=5 tests=AWL=-1.542, DNS_FROM_RFC_BOGUSMX=2.125 X-Spam-Level: X-Archive-Number: 200804/93 X-Sequence-Number: 29586 On Tue, 8 Apr 2008, Mark Stosberg wrote: > Oleg Bartunov wrote: >> Mark, >> >> do you know about our sky segmentation code Q3C, >> see details http://www.sai.msu.su/~megera/wiki/SkyPixelization >> We use it for billions objects in database and quite happy. > > Oleg, > > Thanks for the response. That sounds interesting, but it's not clear to me > how I would put together a geo-spatial search calculating distances around > the curvature of the earth using this technique. Is there is a SQL sample for > this that you could point to? it's not about calculating distances, but about searching objects around given point. > > Also, I didn't recognize the names of the techniques you were benchmarking > against "RADEC" and "Rtree", are either of these related to the > "earthdistance" or "cube()" based searches I would have used already? Rtree is a standard spatial tree, RADEC - is naive approach of having two indexes, one on ra (right ascension) and another - on dec (declination). Both are an astronomical coordinates. > > Mark > > > Regards, Oleg _____________________________________________________________ Oleg Bartunov, Research Scientist, Head of AstroNet (www.astronet.ru), Sternberg Astronomical Institute, Moscow University, Russia Internet: oleg@sai.msu.su, http://www.sai.msu.su/~megera/ phone: +007(495)939-16-83, +007(495)939-23-83