in MySQL, is it good to have 500 Columns in one table?
the rows will be increasing daily, the maximum row count would be less than or equal to 1million.
just to give a brief, these are my column headers
TableName: process_detail
id, process_id, item_id, item_category, attribute1,attribute2,attribute3,...,attribute500,user_id1_update_time,user_id2_update_time,user_id1_comments,user_id2_comments
all attributes are varchar with length maximum 30. but less than 30.
and i have 25 item_categories.
should i create one single table like 'process_detail', or should i create multiple tables categorywise like category1_process_detail,category2_process_detail,..,category25_process_detail
each item_category has different number of columns, some will have 200 columns and some will have only 50 columns. lets say category1 will have 200 columns, category2 will have 50 columns.
some columns in category1 will not be in category2.
item_ids in process_id1 may come in process_id2. what is the best approach in terms of good performance ? please adivce.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…