I would create two separate indices on fields B and C Olaf
On 6/16/09 4:25 AM, "Yariv Omer" <yar...@jungo.com> wrote: > Hi > > I have the following problem > > I have a table with 3 fields ('Field_A', 'Field_B', 'Field_C') > My query is: > > Select Field_A from table where Field_b=10 order by Field_c ASC; > > I have performance issues even when i have tried to define index for > this table > How should i define the corerct index (by the where or by the priority > or both?) > > Regards, Yariv > ----------------------------------------- Confidentiality Notice: The following mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information. The recipient is responsible to maintain the confidentiality of this information and to use the information only for authorized purposes. If you are not the intended recipient (or authorized to receive information for the intended recipient), you are hereby notified that any review, use, disclosure, distribution, copying, printing, or action taken in reliance on the contents of this e-mail is strictly prohibited. If you have received this communication in error, please notify us immediately by reply e-mail and destroy all copies of the original message. Thank you. -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe: http://lists.mysql.com/mysql?unsub=arch...@jab.org