vyeluri5
vyeluri5

Reputation: 487

Couchbase cannot access views while adding new documents

I'm using Cocuhbase Community Edition 6.0.0 build 1693 with below server config on a single node.

Total ram - 24GB
Data - 7608 MB
Index - 3255 MB
Search - 576 MB

With a Stale - OK and Update_After

ViewResult result =  bucket.query(ViewQuery.from(design, view)
        .key(id)
        .skip(skip)
        .limit(limit)
        .stale(Stale.UPDATE_AFTER));
List<T> ourDocs = new ArrayList<>();

result
   .iterator()
   .forEachRemaining(
        (doc) ->
                ourDocs.add(
                        fromJsonObject(doc.document().content(), type))
            ); 

While I create new documents from a C# TPL task. I cannot access the views, which was a similar issue with CouchDB.

Is there any other config Im missing here?

Upvotes: 2

Views: 28

Answers (0)

Related Questions