Hello all,
Could someone provide answers to the following please?
1)Once I’ve added indexes to a table, do I have to optimize the table?
2) As far as searching, Is it better to have one record with 100 columns or 10 records with 10 cols to represent the same data? What about updating?
3) Does it make a difference which order mysql searches for column names? Is it quicker if you write the select col1,col2,col3 in their correct order or not?
4) If you just want to know how many records are returned from a select query, is it necessary to run the full query and then get mysql_numrows, or is there a quicker way?
Thankyou for any answers to these.
					Could someone provide answers to the following please?
1)Once I’ve added indexes to a table, do I have to optimize the table?
2) As far as searching, Is it better to have one record with 100 columns or 10 records with 10 cols to represent the same data? What about updating?
3) Does it make a difference which order mysql searches for column names? Is it quicker if you write the select col1,col2,col3 in their correct order or not?
4) If you just want to know how many records are returned from a select query, is it necessary to run the full query and then get mysql_numrows, or is there a quicker way?
Thankyou for any answers to these.
Comment