mysql inserts & updates optimized
Posted
by user271619
on Stack Overflow
See other posts from Stack Overflow
or by user271619
Published on 2010-06-09T21:40:15Z
Indexed on
2010/06/09
21:42 UTC
Read the original article
Hit count: 215
This is an optimization question, mostly. I have many forms on my sites that do simple Inserts and Updates. (Nothing complicated)
But, several of the form's input fields are not necessary and may be left empty. (again, nothing complicated)
However, my SQL query will have all columns in the Statement. My question, is it best to optimize the Inserts/Update queries appropriately? And only apply the columns that are changed into the query?
We all hear that we shouldn't use the "SELECT *" query, unless it's absolutely needed for displaying all columns. But what about Inserts & Updates?
Hope this makes sense.
I'm sure any amount of optimization is acceptable. But I never really hear about this, specifically, from anyone.
© Stack Overflow or respective owner