Couchbase Q&A

Have a Question? Get it answered by our community.
Looking for the old Couchbase Forum? Click here (read-only).
mliu's picture
Asked 1 month 6 days ago
Latest activity 1 month 5 days ago

map-reduce grouping with compound keys

I'm having trouble figuring out the best way to accomplish a simple query within a date range:

Given an emit like so:

emit([text1, text2, year, mon, day], null)

and using the...

Hao Liu's picture
Asked 1 month 6 days ago
Latest activity 4 weeks 6 hours 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 month 6 days ago
Latest activity 1 month 5 days 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 month 6 days ago
Latest activity 4 weeks 1 day 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 month 6 days 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 month 6 days 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 month 1 week ago
Latest activity 1 month 6 days 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 month 1 week ago
Latest activity 1 month 1 week 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 month 1 week ago
Latest activity 1 month 6 days 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 month 1 week ago
    Latest activity 1 month 1 week 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.

    Pages