keskiviikko 13. heinäkuuta 2011

I can not believe this is true

The other day somebody had performance problems with his SQL. Ok, the whole clause was terrible but what made me speachless was something I didn't think I could ever see in these modern days: comparison of different data types! Where YEAR = '2011'. Can you imagine that? If I see something like that I can tell you for sure that this person has not put the smallest effort on thinking what the SQL clause should be doing. So how do you then know it's doing what it should be doing? In that case you do not even need to worry about the performance;)

Ei kommentteja:

Lähetä kommentti