Best practices for using MySQL index

This is a discussion on Best practices for using MySQL index within the PHP General forums, part of the PHP Programming Forums category; Hi! > While this is not a MySQL mailing list, I try to give you some hints and > keep ...


Go Back   Usenet Forums > PHP Programming Forums > PHP General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #11 (permalink)  
Old 05-10-2008
Gergely Hodicska
 
Posts: n/a
Default Re: [PHP-DB] Re: [PHP] Best practices for using MySQL index

Hi!


> While this is not a MySQL mailing list, I try to give you some hints and
> keep it short.

There is maybe one important thing which should considered: clustered
index. If use InnoDB you can think about to not using a surrogate key
but a natural one which best support the query which you will use in
most cases.

An InnoDB table's primary key is a clustered index and querying against
it is very fast.


Best Regards,
Felhő
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 07:58 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0