On MySQL < 5.0.3 the maximum VARCHAR length is 255. Are you sure you really need 1024 character IDs?