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
3570
June 11, 2005 12:03PM
1826
June 14, 2005 10:42AM
1955
June 14, 2005 02:16PM
1694
June 15, 2005 02:21AM
1696
June 15, 2005 05:16AM
1846
June 15, 2005 06:24AM
5049
June 15, 2005 12:06PM
Re: Partial key
1754
June 16, 2005 05:07AM
1722
June 16, 2005 07:57AM
1725
June 16, 2005 08:30AM
1782
June 16, 2005 08:50AM
1629
June 16, 2005 10:21AM
2733
June 16, 2005 03:00PM
1727
June 17, 2005 12:00AM
1642
June 17, 2005 01:28AM
1630
June 20, 2005 01:21AM
1821
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.