Given the following piece of code:
using(var data = new SomeDataContext(ConnectionString))
{
data.ObjectTrackingEnabled = false;
foreach(Something in data.Somethings)
someList.Add(something.SomeProperty);
}
Is it worth it setting object tracking to false? I know it is just one line of code, but it kind of bugs me having to write it all the time. But I have heard that you can have some performance gain by turning it of when you don't need it. And since I just need to quickly read out some data, I don't need the tracking. But is it worth it in such a small piece of code? What is your opinion? Should I use it? Should I not? Why?