pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Joshua D. Drake <jd@commandprompt.com>
To: Kevin Kempter <kevin@kevinkempterllc.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Best way to index IP data?
Date: Thu, 10 Jan 2008 15:22:45 -0800
Message-ID: <20080110152245.47c959da@commandprompt.com> (raw)
In-Reply-To: <200801101614.54729.kevin@kevinkempterllc.com>
References: <200801101614.54729.kevin@kevinkempterllc.com>

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

On Thu, 10 Jan 2008 16:14:54 -0700
Kevin Kempter <kevin@kevinkempterllc.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@postgresql.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-----


view thread (42+ messages)  latest in thread

Message-ID: <20080110152245.47c959da@commandprompt.com>
Permalink:  ../20080110152245.47c959da@commandprompt.com/
Also on:    postgresql.org/message-id/20080110152245.47c959da@commandprompt.com

 · 

reply

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: jd@commandprompt.com, kevin@kevinkempterllc.com
  Subject: Re: Best way to index IP data?
  In-Reply-To: <20080110152245.47c959da@commandprompt.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