Skip to content

[Mango query] Show warning when no matching index found. #327

@tiaod

Description

@tiaod

return map(wrapper or Document, data.get('docs', []))

When run a mango query without index, couchdb will return:

HTTP/1.1 200 OK
Cache-Control: must-revalidate
Content-Type: application/json
Date: Thu, 01 Sep 2016 17:25:51 GMT
Server: CouchDB (Erlang OTP)
Transfer-Encoding: chunked

{
    "warning":"no matching index found, create an index to optimize
    query time",
    "docs":[
    ]
}

http://docs.couchdb.org/en/2.1.1/api/database/find.html#creating-selector-expressions

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