how can affect performance when I use UUIDs as my primary keys in MySQL
I would like to know how or how much can affect the performance of the server when I use UUID for my primary keys in MySQL. I suppose you are using InnoDB (You should anyway....) So read the following chapter from High performance MySQL 2ed, p.117: http://books.google.com.hk/books?id=BL0NNoFPuAQC&lpg=PA117&ots=COPMBsvA7V&dq=uuid%20innodb%20clustered%20index%20high%20performance%20mysql&pg=PA117#v=onepage&q&f=false In general, UUID is a poor choice from the performance standpoint (due to clustered index) and they have a benchmark to prove this. UUID is 36 chars long, which means 36 bytes. INT