[ 
https://issues.apache.org/jira/browse/JENA-1212?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15382378#comment-15382378
 ] 

ASF GitHub Bot commented on JENA-1212:
--------------------------------------

GitHub user ehedgehog opened a pull request:

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

    Fixes for JENA-1212

    Comparator used by sorting blocks of bindings now
    checks for cancellation every 10000 compares and
    aborts the sort if cancelled=true.

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

    $ git pull https://github.com/epimorphics/jena master

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

    https://github.com/apache/jena/pull/157.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 #157
    
----
commit d32cf8f45eab662618920731c065ade53dd951c9
Author: Chris Dollin <ehog.he...@googlemail.com>
Date:   2016-07-18T14:40:00Z

    Fixes for JENA-1212

----


> allow ORDER BY sort to be cancelled
> -----------------------------------
>
>                 Key: JENA-1212
>                 URL: https://issues.apache.org/jira/browse/JENA-1212
>             Project: Apache Jena
>          Issue Type: Improvement
>          Components: ARQ
>            Reporter: christopher james dollin
>            Priority: Minor
>             Fix For: Jena 3.1.1
>
>
> When a query with an ORDER BY is cancelled, the component
> Arrays.sort() that sorts the chunk(s) of the result
> bindings runs to completion before the cancel finishes.
> [See QueryIterSort and SortedDataBag.]
> For a large result set, this results in a long wait
> before the cancelled request finally finishes. This
> can be inconvenient.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to