Inefficient isEmpty implementation
----------------------------------

                 Key: GEOT-3394
                 URL: http://jira.codehaus.org/browse/GEOT-3394
             Project: GeoTools
          Issue Type: Improvement
            Reporter: Andrea Aime
            Assignee: Andrea Aime
             Fix For: 2.7-RC1


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

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to