SharePoint CAML paging with CSOM
When you are querying a big bunch of list items you should consider to use paging functionalities. For example you could download 2000 items within ten separate requests were each one queries a bulk of 200 items.
This will spare the server performance and speeds up the transfer over the wire. When downloading all items at once can lead to a time-out for example.