MySQL Forums
Forum List  »  Performance

Re: Partial key
Posted by: Felix Geerinckx
Date: June 16, 2005 05:07AM

noudshoorn wrote:

> In this part the table has an autoincrmentfiled. This field has to be a primary key with the name
> primary??? An index on name or departuredate is not used!?

Like I said in a previous post - I don't think you can make sensible comments when you have such a small number of rows.

> Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part
> Packed Null Index_type Comment
> A 0 PRIMARY 1 admin A 8 NULL NULL BTREE
> A 1 name 1 name A 2 NULL NULL BTREE
> A 1 name 2 departuredate A 8 NULL NULL BTREE
> A 1 name 3 departuretime A 8 NULL NULL BTREE
> A 1 departuredate 1 departuredate A 4 NULL NULL BTREE
> A 1 departuredate 2 departuretime A 8 NULL NULL BTREE

I don't think it's very useful to have both (name, departuredate, departuretime) and (departuredate, departuretime) as indexes, and why don't you use a DATETIME column?

--
felix
Please use BBCode to format your messages in this forum.

Options: ReplyQuote


Subject
Views
Written By
Posted
3555
June 11, 2005 12:03PM
1815
June 14, 2005 10:42AM
1948
June 14, 2005 02:16PM
1688
June 15, 2005 02:21AM
1688
June 15, 2005 05:16AM
1839
June 15, 2005 06:24AM
5041
June 15, 2005 12:06PM
Re: Partial key
1746
June 16, 2005 05:07AM
1716
June 16, 2005 07:57AM
1719
June 16, 2005 08:30AM
1774
June 16, 2005 08:50AM
1619
June 16, 2005 10:21AM
2723
June 16, 2005 03:00PM
1721
June 17, 2005 12:00AM
1635
June 17, 2005 01:28AM
1619
June 20, 2005 01:21AM
1812
June 20, 2005 06:41AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.