Package net.solarnetwork.central.domain
Interface OptimizedQueryFilter
- All Superinterfaces:
Filter
Filter API for query optimizations to apply.
- Since:
- 1.46
-
Method Summary
Modifier and TypeMethodDescriptionbooleanHint that a total result count is not necessary.
-
Method Details
-
isWithoutTotalResultsCount
boolean isWithoutTotalResultsCount()Hint that a total result count is not necessary.Setting this to true can improve the performance of most queries, when the overall total count of results is not needed. When set, features like
FilterResults.getTotalResults()will not be available in the results.- Returns:
- true to optimize query to omit a total result count
-