Re: Best way to index IP data?

Поиск
Список
Период
Сортировка
От Steve Atkins
Тема Re: Best way to index IP data?
Дата
Msg-id DA6DE53A-2F69-46F3-8C96-B341ADCDDFAF@blighty.com
обсуждение исходный текст
Ответ на Best way to index IP data?  (Kevin Kempter <kevin@kevinkempterllc.com>)
Ответы Re: Best way to index IP data?  ("Jonah H. Harris" <jonah.harris@gmail.com>)
Список pgsql-performance
On Jan 10, 2008, at 3:14 PM, Kevin Kempter 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://pgfoundry.org/projects/ip4r/

That has the advantage over using integers, or the built-in inet type,
of being indexable for range and overlap queries.

Cheers,
   Steve


В списке pgsql-performance по дате отправления:

Предыдущее
От: "Joshua D. Drake"
Дата:
Сообщение: Re: Best way to index IP data?
Следующее
От: "Jonah H. Harris"
Дата:
Сообщение: Re: Best way to index IP data?