i am fetching total number of count(near about 1500 record) from azure cosmosdb and its giving me following error
here is my code
getCountFilter = getCountBuilder.Eq("business_id", usermodel[0].business_id) & getCountBuilder.In("user_id", userlist) & getCountBuilder.Eq("status", 1);
getAllCountForApproved = getleavebyidconnection.GetFilteredCount(getCountFilter);
public virtual long GetFilteredCount(FilterDefinition<T> filter = null)
{
if (filter == null)
{
return collection.Count((FilterDefinition<T>.Empty));
}
else
{
return collection.Count(filter);
}
}
i want a count only , if count is less its work fine but if count is more then thousand(1000) its give me error
can some one help me