Adds support for total_entries option so the application can cache and provide the total entries so that the library doesn't have to run a counts query. Also if the search term is empty, we use the total count (however we got that) instead of running a "filtered" query that would be identical.
Adds support for
total_entries
option so the application can cache and provide the total entries so that the library doesn't have to run a counts query. Also if the search term is empty, we use the total count (however we got that) instead of running a "filtered" query that would be identical.