Details
-
Type:
Improvement
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 9.0-beta1
-
Component/s: None
-
Labels:None
Description
The current code uses size() == 0.
However that makes the server use a full count, which is inefficient in many stores.
Would be better to count the results of a query that returns at most 1 result (using max features) instead, that would speed up significantly database checks for example
https://github.com/geotools/geotools/commit/989ee9b21248fb8729d562da26b9bcf4e2c28628