Something I've seen frequently (mainly from one but a couple others as well) is an answer that could be improved with a more efficient answer. I have reached out to these users (one many times) but it has fallen on deaf ears. They always use the same approach even though a different one would be much better, especially with much larger sets of data (I post almost exclusively in the sql-server tag).
At this point, it honestly frustrates me that someone who does have a lot of reputation and should know about the difference in the performance of the strategies, doesn't want to improve their answers; it feels like the old phrase "you can't teach an old dog new tricks."
I'm intentionally leaving the actual scenario out, but for those of you that use C# it's like using Parameters.AddWithValue
instead of Parameters.Add
when querying a varchar
. Yes, it works, yes it is useful to the person who asked the question, but it's not good. C# will pass that value as an nvarchar
causing any indexes not to be used. The answer they give is useful, it will solve the question, but why use it when a better option is available?
In the past, I have also posted answers that use the "better" solution as well, but honestly, I think it would be just better if the other person used what has been proved to be more performant.
I realise that anyone can use their downvotes for anything, but I kind of disagree with the downvote reason, which is defined as "the answer is not useful." It is useful, but just could be better, and it disappoints me that the users continue to use a solution that could be improved on.
This isn't to say I won't stop answering on those questions, I still will when I have the time, but just wonder if downvoting is actually the right choice from a community point of view.