Skip to content
This repository was archived by the owner on Sep 28, 2021. It is now read-only.
This repository was archived by the owner on Sep 28, 2021. It is now read-only.

Remote queries use case #1

@jamesnocentini

Description

@jamesnocentini

I’ve been thinking about remote queries, your approach to caching could help do that too. There are times where you just need to perform the query on the server side so the HTTP API call does that with the query string params holding the details of the query (number of photos, search keyword…). The result is kept in the NSURLCache and Couchbase Lite. And then have the results of that query mapped to a channel the user has access to so that they are periodically updated and injected back in NSURLCache by the sync engine.

That works well for getting updates of documents in a channel, but I’m wondering about new documents that would match the query. I don’t think they would be picked up by the sync engine as they wouldn't be in the channel. What do you think?

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