After LINQ got introduced, many developers moved to LINQ. There are some blogs which mentions that if performance is your major requirement, then CAML is still the preferred way.
And now SharePoint 2013… What is your take on future of CAML?
Please share your thoughts.
To further what Sreeharsha said, yes CAML is the same in 2010 as it is in 2013.
The problem with using LINQ is that the CAML statements aren’t optimised, the actual transformation betwen LINQ and CAML is very quick less than 0.1ms, however the statements aren’t always perfect. I would log the CAML query and use that after designing your LINQ or do as I have done and make your own wrapper for CAML which doesn’t have the issues like bad joins etc yourself.
Hi Kamlesh,
Either using a CAML or LINQ depends on the complexity of the query and ease of development. Though the queries can be written using LINQ, they get translated to CAML before querying the server.
And to your question to CAML in 2013, i think its gonna be the same it was in 2010.
http://msdn.microsoft.com/en-us/library/ff798464.aspx.