Skip to content

CouchDB 2.0 - syncing views make CouchDB hanging #308

@rdbisme

Description

@rdbisme
import couchdb
import couchdb.mapping as cmap

c = couchdb.Server()
db = c['test']


class TestDoc(cmap.Document):
    @cmap.ViewField.define('test_view')
    def test_view(doc):
        if doc:
            yield doc['id'], doc

test_doc = TestDoc()
# test_doc.test_view.sync(db)

This on ArchLinux hangs the database. There's a couchdb process consuming all the CPU resources and I need to force the restart of the service. I cannot even test the views with the new Fauxton web view since I cannot find a way to switch the language of the query server as it was possible with Futon :'(

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions