From: Jeff Hoffmann <jeff@propertykey.com>
To: zardozrocks <zardozrocks@gmail.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Simple query, 10 million records...MySQL ten times faster
Date: Thu, 26 Apr 2007 16:40:17 -0500
Message-ID: <46311C41.4000906@propertykey.com> (raw)
In-Reply-To: <1177450006.547698.120920@u32g2000prd.googlegroups.com>
References: <1177450006.547698.120920@u32g2000prd.googlegroups.com>
zardozrocks wrote:
> I have this table:
>
> CREATE TABLE test_zip_assoc (
> id serial NOT NULL,
> f_id integer DEFAULT 0 NOT NULL,
> lat_radians numeric(6,5) DEFAULT 0.00000 NOT NULL,
> long_radians numeric(6,5) DEFAULT 0.00000 NOT NULL
> );
> CREATE INDEX lat_radians ON test_zip_assoc USING btree (lat_radians);
> CREATE INDEX long_radians ON test_zip_assoc USING btree
> (long_radians);
Maybe I'm missing something, but wouldn't it be easier to just use
PostGIS? Or failing that, using the vanilla built-in point type and an
r-tree index? That's what r-tree indexes are made for.
--
Jeff Hoffmann
Head Plate Spinner
PropertyKey.com
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-performance@postgresql.org
Cc: jeff@propertykey.com, zardozrocks@gmail.com
Subject: Re: Simple query, 10 million records...MySQL ten times faster
In-Reply-To: <46311C41.4000906@propertykey.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox