|
At the very least it forces an extra pass through the database(s) to get the column names.
But the biggest one is that it will return every column and the data which can be a huge memory hog especially if you only need one or two columns.
Take the query above for example;
returns ALL columns and only uses two of them. Maybe not an issue by itself or for one or two queries several minutes apart.
BUT what if the table has 50 fields? That could be a huge chunk of space that the OS has to reserve in memory as a array, when in reality in may only need 10 bytes per record.
Then scale that up to several queries a minute with a million row table.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
|