how often does the letter "l" occur in:
q: optimal way to query over 5000 items in a sharepoint document library - c# csom i am currently using the below code to query over 5000 items in a sharepoint online library. 
        camlquery camlquery = new camlquery();
        camlquery.viewxml = "<view scope='recursiveall'><rowlimit>5000</rowlimit><viewfields><fieldref name='id' /><fieldref name='title' /></viewfields></view>";

        list<listitem> items = new list<listitem>();
        do
        {
            listitemcollection listitemcollection = list.getitems(camlquery);
            ctx.load(listitemcollection);
            ctx.executequery();

            //adding the current set of listitems in our single buffer
            items.addrange(listitemcollection);
            //reset the current pagination info
            camlquery.listitemcollectionposition = listitemcollection.listitemcollectionposition;

        } while (camlquery.listitemcollectionposition != null);

       items.singleordefault(c => c.fieldvalues["title"].tostring() == "test");

effectively, i load batches of 5000 items by caml query (since 5000 is the limit) into a listitemcollection and then query the listitemcollection with linq. so if we have say 20,000 items in the library, we'd have 4 iterations appending 5000 items to the listitemcollection. the linq aspect makes querying easy, however, with over 6000 items in the library it already takes a relatively long time - i wonder what will happen with 20000 items! 
is there any other way to go around the 5000 item limit for caml queries that does not require loading all the items in the list everytime? perhaps by using indexed columns or something of the sort?
note: the columns i query on are all indexed columns. 

user
The passage contains ninety-seven "l"s.
assistant