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 2009/09/02 17:56:32 UTC

[jira] Created: (COUCHDB-494) Add include_seqs=true option to _all_dbs to allow efficient bootstrapping of external indexes.

Add include_seqs=true option to _all_dbs to allow efficient bootstrapping of external indexes.
----------------------------------------------------------------------------------------------

                 Key: COUCHDB-494
                 URL: https://issues.apache.org/jira/browse/COUCHDB-494
             Project: CouchDB
          Issue Type: New Feature
          Components: Database Core
            Reporter: Robert Newson



External indexers need an efficient way to detect changes across all databases when they boot up. The _all_dbs endpoint only lists the names. We propose adding include_seqs=true which would return this style output instead;

[ {"name":"db1","update_seq",5000}, {"name":"db2","update_seq",2500} ]

this would allow an external indexer to skip any database that has not changed.

As external indexers often store their configuration changes inside design documents, it might also be helpful if the update_seq of the latest change to any design document was also included. This will allow external indexers to skip even databases with changes as long as those changes are not to design documents;

[ {"name":"db1","update_seq",5000, "ddoc_update_seq":23}, {"name":"db2","update_seq",2500, "ddoc_update_seq":2500} ]


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (COUCHDB-494) Add include_seqs=true option to _all_dbs to allow efficient bootstrapping of external indexes.

Posted by "Robert Newson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/COUCHDB-494?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12750495#action_12750495 ] 

Robert Newson commented on COUCHDB-494:
---------------------------------------


Also consider feed=continuous and feed=longpoll support

> Add include_seqs=true option to _all_dbs to allow efficient bootstrapping of external indexes.
> ----------------------------------------------------------------------------------------------
>
>                 Key: COUCHDB-494
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-494
>             Project: CouchDB
>          Issue Type: New Feature
>          Components: Database Core
>            Reporter: Robert Newson
>
> External indexers need an efficient way to detect changes across all databases when they boot up. The _all_dbs endpoint only lists the names. We propose adding include_seqs=true which would return this style output instead;
> [ {"name":"db1","update_seq",5000}, {"name":"db2","update_seq",2500} ]
> this would allow an external indexer to skip any database that has not changed.
> As external indexers often store their configuration changes inside design documents, it might also be helpful if the update_seq of the latest change to any design document was also included. This will allow external indexers to skip even databases with changes as long as those changes are not to design documents;
> [ {"name":"db1","update_seq",5000, "ddoc_update_seq":23}, {"name":"db2","update_seq",2500, "ddoc_update_seq":2500} ]

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (COUCHDB-494) Add include_seqs=true option to _all_dbs to allow efficient bootstrapping of external indexes.

Posted by "Antony Blakey (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/COUCHDB-494?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12750687#action_12750687 ] 

Antony Blakey commented on COUCHDB-494:
---------------------------------------

This should include the db's UUID, which has recently been added as a more reliable way to identify a database.

> Add include_seqs=true option to _all_dbs to allow efficient bootstrapping of external indexes.
> ----------------------------------------------------------------------------------------------
>
>                 Key: COUCHDB-494
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-494
>             Project: CouchDB
>          Issue Type: New Feature
>          Components: Database Core
>            Reporter: Robert Newson
>
> External indexers need an efficient way to detect changes across all databases when they boot up. The _all_dbs endpoint only lists the names. We propose adding include_seqs=true which would return this style output instead;
> [ {"name":"db1","update_seq",5000}, {"name":"db2","update_seq",2500} ]
> this would allow an external indexer to skip any database that has not changed.
> As external indexers often store their configuration changes inside design documents, it might also be helpful if the update_seq of the latest change to any design document was also included. This will allow external indexers to skip even databases with changes as long as those changes are not to design documents;
> [ {"name":"db1","update_seq",5000, "ddoc_update_seq":23}, {"name":"db2","update_seq",2500, "ddoc_update_seq":2500} ]

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (COUCHDB-494) Add include_seqs=true option to _all_dbs to allow efficient bootstrapping of external indexes.

Posted by "Paul Joseph Davis (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/COUCHDB-494?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Paul Joseph Davis updated COUCHDB-494:
--------------------------------------

    Skill Level: New Contributors Level (Easy)

> Add include_seqs=true option to _all_dbs to allow efficient bootstrapping of external indexes.
> ----------------------------------------------------------------------------------------------
>
>                 Key: COUCHDB-494
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-494
>             Project: CouchDB
>          Issue Type: New Feature
>          Components: Database Core
>            Reporter: Robert Newson
>
> External indexers need an efficient way to detect changes across all databases when they boot up. The _all_dbs endpoint only lists the names. We propose adding include_seqs=true which would return this style output instead;
> [ {"name":"db1","update_seq",5000}, {"name":"db2","update_seq",2500} ]
> this would allow an external indexer to skip any database that has not changed.
> As external indexers often store their configuration changes inside design documents, it might also be helpful if the update_seq of the latest change to any design document was also included. This will allow external indexers to skip even databases with changes as long as those changes are not to design documents;
> [ {"name":"db1","update_seq",5000, "ddoc_update_seq":23}, {"name":"db2","update_seq",2500, "ddoc_update_seq":2500} ]

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.