Couchbase Q&A

Have a Question? Get it answered by our community

Hao Liu's picture
Asked 1 week 1 day ago
Latest activity 8 hours 33 min ago

Does CouchbaseClient.Query take a snapshot of the data?

Say I have a view with a reduce function that gives count of documents, and I get a ViewResponse by calling client.Query() with includeDocs set to true. Then I iterate the ViewResponse and use the count got from the view. Can I iterate the same ViewResponse object again sometime later to stamp a...

opic's picture
Asked 1 week 1 day ago
Latest activity 1 week 22 hours ago

Building views in the background with Couchbase Lite

hello,

When you have a large database (let's say 10 000 documents) building views can be very long. Could we use a type of background view build mechanism ? Would this be available for the PhoneGap connector ?

The CouchDB REST Api specifies that on a query you could use the :...

ryanparedes's picture
Asked 1 week 1 day ago
Latest activity 1 day 16 hours ago

PHP Fatal error: Class 'Couchbase' not found

I am trying to setup php to connect to couchbase and I get the following

PHP Fatal error: Class 'Couchbase' not found in /var/www/html/test-cbs-connection.php on line 3

Here is php source:

# cat /var/www/html/test-cbs-connection.php
<?php
// adjust...

skyblue789's picture
Asked 1 week 1 day ago

Query based on a variable

I want to query couchbase on value of particular field. So, We have json documents called User in couchbase, and we want to get all User objects having name like "Smith". The value "Smith" is a variable and injected by the user at run time. How can I send this variable to couchbase Map function...

Philip's picture
Asked 1 week 1 day ago

Couchbase Database Security

Hello all,
I am carrying out survey to establish security issues with NoSQL DB, specifically Couchbase.
If you know or have worked with Couchbase or any NoSQL DB, you are the right respondent.
Your feedback is highly appreciated.
If you would like to get the results,...

basalbr's picture
Asked 1 week 2 days ago
Latest activity 1 week 1 day ago

How should I interact with couchbase.

Hello, I'm developing a 'system' that is available via web browser and android, I'm using couchbase server to store documents in the web application and couchbase mobile with android. To make the sync of these applications I'm using the couchbase sync, but I have a few questions about it....

Lundin's picture
Asked 1 week 2 days ago
Latest activity 1 week 2 days ago

Use MultiGet or views (if using natural keys)?

Hi!

I am trying to understand some key design principles for a document db.

1. Assume i have a natural key for users, so upon registration i create a uid

uid=cb.incr("u::counter)+1

and create the user key:
u::uid

To create a relationship with another...

ohassidi's picture
Asked 1 week 3 days ago
Latest activity 1 week 1 day ago

Create multiple indexes

Today I have multiple views in order to use they ability to filter and sort, for example if I have employee object the I have several views for it:

  • emit(employeeId);
  • emit(employeeAddress)
  • emit(employeeName)
  • This view are used mainly for filtering and sorting...

    retto's picture
    Asked 1 week 3 days ago
    Latest activity 1 week 2 days ago

    Remove all documents by View selection result

    I have a view and I need remove all documents from bucket which selected via view.
    I can select all ids and remove each document through Remove() method, but this way terribly slow in case a big amount of documents.

    Paras Mendiratta's picture
    Asked 1 week 4 days ago

    Couchbase server showing network failure error after every few seconds

    Hi there,

    We are running couchbase community edition on linux box with 3 buckets and no replica. All the 3 buckets are connected to multiple node servers. Everything works fine until we switch on one of our node server which pushes multiple records to couchbase server (using our rest APIs...

    Pages