GitHub user osma opened a pull request:

    https://github.com/apache/jena/pull/205

    JENA-1277: don't use sorting in spatial queries, for much better performance

    This PR proposes removing the `distSort` parameter from the Lucene spatial 
query performed by jena-spatial. Dropping the sorting gives a massive 
performance boost; in the Geonames example given in JENA-1277, the query time 
drops from over 20 seconds to less than 200 ms.
    
    I suppose that the sorting is not necessary since jena-spatial results are 
just raw material for the SPARQL engine anyway.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/osma/jena jena-spatial-no-sort

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/jena/pull/205.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #205
    
----
commit 864e2ce831f41a15ba683d0edd29cbe3236ff636
Author: Osma Suominen <osma.suomi...@helsinki.fi>
Date:   2017-01-13T12:29:16Z

    JENA-1277: don't use sorting in spatial queries, for much better performance

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to