C
Charles
I should say from the outset that I haven't used Linq yet, but I know of it
and its popularity.
From a database point of view, I am thinking that the use of Linq can
obscure the underlying access to the database and prohibit query
optimisation that is key to attaining good performance. As the logic in the
high-level language becomes more complex, so can the queries generated by
Linq, to the point where speed can decline significantly. This has been my
experience.
On the other hand, as the writer of code primarily in a high-level language,
I can see the attraction of Linq in obfuscating the data accees layer and
allowing logic to be created using high-level constructs.
I would be very interested in people's views on the pros and cons of using
Linq versus creating database sprocs and using simplified high-level logic.
I have no axe to grind, and am ambivalent about the two approaches, so
please feel free to [gently] argue for one corner or the other.
TIA
Charles
and its popularity.
From a database point of view, I am thinking that the use of Linq can
obscure the underlying access to the database and prohibit query
optimisation that is key to attaining good performance. As the logic in the
high-level language becomes more complex, so can the queries generated by
Linq, to the point where speed can decline significantly. This has been my
experience.
On the other hand, as the writer of code primarily in a high-level language,
I can see the attraction of Linq in obfuscating the data accees layer and
allowing logic to be created using high-level constructs.
I would be very interested in people's views on the pros and cons of using
Linq versus creating database sprocs and using simplified high-level logic.
I have no axe to grind, and am ambivalent about the two approaches, so
please feel free to [gently] argue for one corner or the other.
TIA
Charles