Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql Sql > Re: SQL questio...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 2 Topic 3475 of 3799
Post > Topic >>

Re: SQL question....

by public@[EMAIL PROTECTED] (Steve Midgley) May 21, 2008 at 05:42 PM

At 12:20 PM 5/21/2008, pgsql-sql-owner@[EMAIL PROTECTED]
 wrote:
>Date: Wed, 21 May 2008 06:39:11 -0500
>From: Karl Denninger <karl@[EMAIL PROTECTED]
>
>To: Gurjeet Singh <singh.gurjeet@[EMAIL PROTECTED]
>
>Cc: pgsql-sql@[EMAIL PROTECTED]
>Subject: Re: SQL question....
>Message-ID: <483409DF.7050905@[EMAIL PROTECTED]
>
>
> > 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 


-- 
Sent via pgsql-sql mailing list (pgsql-sql@[EMAIL PROTECTED]
)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-sql
 




 2 Posts in Topic:
Re: SQL question....
public@[EMAIL PROTECTED]   2008-05-21 17:42:14 
Re: SQL question....
karl@[EMAIL PROTECTED] (  2008-05-21 20:12:34 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Tue Dec 2 21:36:29 CST 2008.