My first code worked too long and I've started to think about increasing the performance of queries.
And here are the things that helped me to increase speed in several times:
- Use <ViewFields> inside query instead of Include(...) inside ClientContext.Load()
- Use FileRef and FileLeafRef fields instead of File field (which is an object with several properties in it).
That's all. These two changes helped me a lot. And the customer is happy about the performance they have.
Have fun!
No comments:
Post a Comment