You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@couchdb.apache.org by "Robert Newson (JIRA)" <ji...@apache.org> on 2012/06/18 15:56:42 UTC

[jira] [Commented] (COUCHDB-1498) range_prefix view parameter to ease working with ranges

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

Robert Newson commented on COUCHDB-1498:
----------------------------------------

Included to close as 'won't fix' but I'll give it more time to see if someone can justify this addition.

If you don't know the range you want then I don't see how 'range_prefix' can help, and if you do know the range you want, you by definition know the startkey and endkey values.

Provide some examples of this new API that would improve usability without a) potentially being the wrong answer and b) being easier to figure out that startkey/endkey.

                
> range_prefix view parameter to ease working with ranges
> -------------------------------------------------------
>
>                 Key: COUCHDB-1498
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-1498
>             Project: CouchDB
>          Issue Type: Bug
>          Components: View Server Support
>            Reporter: Ronny Pfannschmidt
>
> queries for certain ranges are a common operation,
> but we are usually left with figuring what kind of start/end key combination to use if we want a certain range
> it would be really pleasant if instead of constructing a start/end range from a prefix by guessing mostly how to construct the end param,
> we could just pass the range prefix as a string/array to the view

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira