You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by YegorKozlov <gi...@git.apache.org> on 2016/10/20 08:50:36 UTC

[GitHub] lucene-solr pull request #101: SOLR-9668 Support cursor paging in SolrEntity...

GitHub user YegorKozlov opened a pull request:

    https://github.com/apache/lucene-solr/pull/101

    SOLR-9668 Support cursor paging in SolrEntityProcessor

    SolrEntityProcessor paginates using the start and rows parameters which can be very inefficient at large offsets. In fact, the current implementation is impracticable to import large amounts of data (10M+ documents) because the data import rate degrades from 1000docs/second to 10docs/second and the import gets stuck.
    This patch introduces support for cursor paging which offers more or less predictable performance. In my tests the time to fetch the 1st and 1000th pages was about the same and the data import rate was stable throughout the entire import.
    
    To enable cursor paging a user needs to add a "sort" attribute in the entity configuration:
    ```xml
    <?xml version="1.0" encoding="UTF-8" ?>
    <dataConfig>
      <document>
        <entity name="se" processor="SolrEntityProcessor" 
        query="*:*"
        rows="1000"
        sort="id asc"  <!-- turns on cursor paging. Must be a uniqueKey field tie breaker --> 
        url="http://localhost:8983/solr/collection1">
        </entity>
      </document>
    </dataConfig>
    ```
    If the "sort" attribute is missing then the default start/rows pagination is used.

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

    $ git pull https://github.com/YegorKozlov/lucene-solr SOLR-9668

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

    https://github.com/apache/lucene-solr/pull/101.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 #101
    
----
commit 840dfe68895fabdc8ff5458b3f114a678d0dd080
Author: U-CEB\YKozlov <yk...@2504kx1.ceb.com>
Date:   2016-10-20T08:34:55Z

    SOLR-9668 Support cursor paging in SolrEntityProcessor

----


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[GitHub] lucene-solr pull request: SOLR-6650 - Add optional slow request lo...

Posted by asfgit <gi...@git.apache.org>.
Github user asfgit closed the pull request at:

    https://github.com/apache/lucene-solr/pull/101


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org