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

help on Index

2003-10-07 Thread Hsiu-Hui Tseng
Hi, After rebuild the following table, the Cardinality does not get updated. This table have 18 million of rows. Why this happening and how do I fix it? Should I run OPTIMIZE TABLE or CHECK TABLE? mysql show index from UserDetail;

RE: help with index/query

2002-03-22 Thread Salada, Duncan
:[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 = 'foo' Salada, Duncan wrote: I am hoping I can get some help with a difficulty I am having

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

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

RE: FW: pls help for index problem

2001-10-28 Thread kmlau
: Re: FW: pls help for index problem Well, how many records are in the table? How many would be returned by the query you present? Is the SQL you show the FULL sql? What is the output of the EXPLAIN SELECT What about SHOW INDEX FROM TABLE gw. b. kmlau wrote: -Original Message

Re: FW: pls help for index problem

2001-10-24 Thread Bill Adams
PROTECTED]] Sent: Wednesday, October 24, 2001 9:42 AM To: 'Bill Adams' Subject: RE: pls help for index problem Thanks yr promptly reply !! It seems no any change(improvement) by running explain again after erase quotes. I also ran the command 'myisamchk -a gw.MYI' before sending

pls help for index problem

2001-10-23 Thread kmlau
hi, I encountered a problem about indexing. I want to add index on timerecord field in table gw (shown as below) to speed up query relating with time. However, I use explain command (explain select * from gw where timerecord = '010902') to analyze the performace. As a result, it seems the

Re: pls help for index problem

2001-10-23 Thread Bill Adams
kmlau wrote: I encountered a problem about indexing. I want to add index on timerecord field in table gw (shown as below) to speed up query relating with time. However, I use explain command (explain select * from gw where timerecord = '010902') to analyze the performace. As a result,

FW: pls help for index problem

2001-10-23 Thread kmlau
-Original Message- From: kmlau [mailto:[EMAIL PROTECTED]] Sent: Wednesday, October 24, 2001 9:42 AM To: 'Bill Adams' Subject: RE: pls help for index problem Thanks yr promptly reply !! It seems no any change(improvement) by running explain again after erase quotes. I also ran

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

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_ city

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, _OR_ city

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