couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ben Keen (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (COUCHDB-2376) Doing repeated queries on reduced View yields incorrect # of results
Date Fri, 10 Oct 2014 20:18:34 GMT

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

Ben Keen commented on COUCHDB-2376:
-----------------------------------

Turns out there were two causes of this issue: 
1. the backbone models passed to the Views.AllDocsList had their unique ID located in two
different places in the object, but the code was only looking in one place.
2. in the case of reduced view searches, no ID was present at all. 

The ids were used in keeping track of what rows were on the page at a time, so the removal
code was kludging out on multiple searches. Committing now. 

> Doing repeated queries on reduced View yields incorrect # of results
> --------------------------------------------------------------------
>
>                 Key: COUCHDB-2376
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-2376
>             Project: CouchDB
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: Fauxton
>            Reporter: Ben Keen
>            Assignee: Ben Keen
>
> To reproduce:
> 1. Create a View with a reduce function on it. 
> 2. Do a search on that View with the "reduce" checkbox checked. 
> 3. Note the number of results. 
> 4. Do another search with the same search criteria.
> 5. Note the number of results has increased. 
> Results are being duplicated in the search results. 



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

Mime
View raw message