whisher — 2010-01-18T13:36:12-05:00 — #1
I'm wondering if there's troubles (performance/load) to add a field
ALTER TABLE `lp_user` ADD `role` ENUM( 'user', 'querytool', 'admin' )
CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT 'user'
in a table with more than 500000 records ?
Thanks in advance.
dan_grossman — 2010-01-18T17:50:16-05:00 — #2
Maybe. It depends on the load the server is under when you run the command, how much available memory there is, your configuration directives (myisam_sort_buffer_size for example), how many indexes are declared on the table, and if it does have to hit disk to create a temporary table in order to execute this ALTER statement, what kind of IO load your disk subsystem is under at the time.
These are all variables only you are aware of right now, so, maybe.