Skip to content
This repository was archived by the owner on Nov 5, 2018. It is now read-only.
This repository was archived by the owner on Nov 5, 2018. It is now read-only.

Example Lazy Creation of View #361

@marco-bue

Description

@marco-bue

From the lazy view creation example code:

// some more logic needed // what if design document exists but view doesnt, we cant just overwrite it // // we need a way to fectch and build on // and thats the reason why im not doing this at 5am

I wanted to ask whether there is any other good, production-ready example for lazy view creation.
Is it possible to efficiently detect view definition changes on lazy view creation to realize some kind of "Lazy view update"?

I am new to couchdb and nano, so I don't know yet how this could be implemented in a performant way. It would be nice to have a clean and performant example for this common task.

Thank you

BR
Marco

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions