Regarding the performance difference, I know that for the queries like
"SHOW COLUMNS ...", MySQL doesn't use indexes. Also, the result has to
be parsed in the PHP code. Instead, if you use a separate table, MySQL
can use indexes (if defined :-) and you don't have to parse the result.

On the other hand, using a enum column saves the DB to make an
additional JOIN when making SELECTs.

So, the use of an enum or a separate table, depends on the relation
between the number of SELECTs and the number of times you need to query
the enum column definition :-)


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~----------~----~----~----~------~----~------~--~---

Reply via email to