I am trying to get list of Article items
For that I have to use the content type as filter and fetch the items
I used CAML Query for fetching items
camlQuery.set_viewXml(" <View><Query> <Where><And><Eq><FieldRef Name='SubType'/><Value Type='Choice'>" + subType + "</Value></Eq> <Leq><FieldRef Name='ArticleStartDate' /><Value Type='DateTime'><Today /></Value></Leq> </And></Where> <OrderBy><FieldRef Name='" + orderBy + "' Ascending='FALSE' /></OrderBy> </Query><RowLimit>" + countLimit + "</RowLimit></View>");
Now this works fine.
Since the Search API uses cached data, will REST Api or Search API be faster than this as the size of the document library grows to around 5000 pages?
I used CSOM because I was able to get the Publishing Image (Rollup Image) property without making any additional calls, which is not possible in REST API. I don't think it is possible in Search API either
For the home page, I would need to query and get Rollup image of around 10 pages. So considering all these, which will be the better option in terms of page load?