Skip to content

Is it possible to load a database with indexes ? #56

@larryaubstore

Description

@larryaubstore

Hi,

I don't know if it's possible but I have the following use case:

Offline mode on mobile:

Step 1. Load each database with https://github.com/nolanlawson/pouchdb-load
Step 2. Create indexes with https://github.com/nolanlawson/pouchdb-find with 'createIndex' method.

Is it possible to create indexes on the server side with CouchDB and load them with 'pouchdb-load' instead of creating them on the client side ?

I ask this question because it takes a lot a time to create indexes on the client side. Can we 'bundle' indexes in files generated with https://github.com/nolanlawson/pouchdb-dump-cli

Step 3 Online mode. Handoff to regular replication mode db.replicate.

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