Re: SQL question....
От | Steve Midgley |
---|---|
Тема | Re: SQL question.... |
Дата | |
Msg-id | 20080522004916.300E42E002C@developer.postgresql.org обсуждение исходный текст |
Ответ на | SQL question.... (Karl Denninger <karl@denninger.net>) |
Ответы |
Re: SQL question....
|
Список | pgsql-sql |
At 12:20 PM 5/21/2008, pgsql-sql-owner@postgresql.org wrote: >Date: Wed, 21 May 2008 06:39:11 -0500 >From: Karl Denninger <karl@denninger.net> >To: Gurjeet Singh <singh.gurjeet@gmail.com> >Cc: pgsql-sql@postgresql.org >Subject: Re: SQL question.... >Message-ID: <483409DF.7050905@denninger.net> > > > Also, if you don't have it already, you may create an index on IP > > column for better performance. > > Mail sent from my BlackLaptop device >Its a very large table and is indexed already... Not to completely beat this thing to death, but are you using an inet or other custom datatype for this? I think if you index ip's using a custom data type and search/group for specific octets, you'll get much better performance than just searching via a regular b-tree string index.. http://www.postgresql.org/docs/8.3/static/datatype-net-types.html Steve
В списке pgsql-sql по дате отправления: