Re: Best way to index IP data?

From: "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com>
To: Kevin Kempter <kevin(at)kevinkempterllc(dot)com>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: Best way to index IP data?
Date: 2008-01-10 23:22:45
Message-ID: 20080110152245.47c959da@commandprompt.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thu, 10 Jan 2008 16:14:54 -0700
Kevin Kempter <kevin(at)kevinkempterllc(dot)com> wrote:

> Hi List;
>
> We'll be loading a table with begining & ending I.P.'s - the table
> will likely have upwards of 30million rows. Any thoughts on how to
> get the best performance out of queries that want to look for IP
> ranges or the use of between queries? Should these be modeled as
> integers?
>

http://www.postgresql.org/docs/current/static/datatype-net-types.html

> Thanks in advance
>
> /Kevin
>
> ---------------------------(end of
> broadcast)--------------------------- TIP 1: if posting/reading
> through Usenet, please send an appropriate subscribe-nomail command
> to majordomo(at)postgresql(dot)org so that your message can get through to
> the mailing list cleanly
>

- --
The PostgreSQL Company: Since 1997, http://www.commandprompt.com/
Sales/Support: +1.503.667.4564 24x7/Emergency: +1.800.492.2240
Donate to the PostgreSQL Project: http://www.postgresql.org/about/donate
SELECT 'Training', 'Consulting' FROM vendor WHERE name = 'CMD'

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFHhqjHATb/zqfZUUQRAvMOAJ984Np5GMrFd1vixP/zECIl3qUWYgCff6U4
bCBBz1VaxqIoZfCFfKEIZLU=
=+9vD
-----END PGP SIGNATURE-----

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Steve Atkins 2008-01-10 23:25:20 Re: Best way to index IP data?
Previous Message Kevin Kempter 2008-01-10 23:14:54 Best way to index IP data?