help with index on table

2006-07-02 Thread Eitan Gur
Hi I tried to create an index on one of my tables. After creating this index, the queries return an empty set, instead of the expected result. I have a table user looks like this: id - int(11) username - varchar(250) address - varchar(250) more columns... After creating an index: CREATE INDEX m

RE: help with index/query

2002-03-22 Thread Salada, Duncan
> -Original Message- > From: Gerald Clark [mailto:[EMAIL PROTECTED]] > Sent: Thursday, March 21, 2002 11:11 AM > To: Salada, Duncan > Cc: '[EMAIL PROTECTED]' > Subject: Re: help with index/query > > > what about > select Url from table where Ref = &#x

Re: help with index/query

2002-03-21 Thread Gerald Clark
what about select Url from table where Ref = 'foo' Salada, Duncan wrote: >I am hoping I can get some help with a difficulty I am having with a table >of mine. I am going to give a lot of background info, so please bear with >me. First, let me say that I using 3.23.49. Now some info about the

help with index/query

2002-03-21 Thread Salada, Duncan
I am hoping I can get some help with a difficulty I am having with a table of mine. I am going to give a lot of background info, so please bear with me. First, let me say that I using 3.23.49. Now some info about the table. It currently has 5687391 rows. There are 3 columns in the table: ID (i

Re: help with index

2001-06-22 Thread Seth Northrop
Just make sure you have a key on any field you do a query on. Given that there isn't a whole lot of correlation between your columns (logically speaking.. ie, age doesn't really match up with city) I wouldn't worry about compound keys.. they'll actually just slow you down since you need to mainta

Re: help with index

2001-06-22 Thread Jaime Teng
>> whats the difference between: >> alter table tablename add index (name); >> alter table tablename add index (age); >> alter table tablename add index (birthdate); >> alter table tablename add index (city); > >These are four INDIVIDUAL keys.. helpful if you want to search by name, >age, birthday

Re: help with index

2001-06-22 Thread Seth Northrop
> whats the difference between: > alter table tablename add index (name); > alter table tablename add index (age); > alter table tablename add index (birthdate); > alter table tablename add index (city); These are four INDIVIDUAL keys.. helpful if you want to search by name, age, birthday, _OR_

help with index

2001-06-22 Thread Jaime Teng
Hi, whats the difference between: alter table tablename add index (name); alter table tablename add index (age); alter table tablename add index (birthdate); alter table tablename add index (city); compared to: alter table tablename add index (name,age,birthdate,city); What I want is performa