tags:

views:

30

answers:

1

i need to populate a table column which takes one of 30 different string values. Is it advisable to use enum here for speed up processing . Can anyone suggest better solution which is reasonably optimum for storage and processing(comparison)?

+1  A: 

you are most probably better of by putting the string values in a different table and joining them into your table by (TINYINT) id. it is a much cleaner and more maintainable approach, and the performance difference (with proper setup and indexing) is neglectable.

ax