Couchbase Questions: node.js SDK

Have a Question? Get it answered by our community

teriyaki's picture
Asked 1 day 10 hours ago

query returns null

I wrote some document to a bucket

1NR1 {id:1NR1, Type:1NR, p1:0,p2:0,p3:0,p4:0}
1NR2 {id:1NR2, Type:1NR, p1:0,p2:0,p3:0,p4:0}
1NR3 {id:1NR3, Type:1NR, p1:0,p2:0,p3:0,p4:0}
...
1NR100 {id:1NR3, Type:9NR, p1:0,p2:0,p3:0,p4:0}
..

I hope to query all...

carles's picture
Asked 6 days 15 hours ago

High load: Atomic Increment + Get operation

Hi guys,
I'm trying to use a cluster Couchbase with high load on the servers. (Couchbase 2.2.0 nodejs SDK 2.0.0-dp1)
I want to use for capping purposes, which means a lot of massive increment on some keys, and lots of gets of the same keys, in order to verify if we reached a certain...

carles's picture
Asked 6 days 15 hours ago

Connection Timeouts

Hi guys,
I'm trying to use a couchbase cluster with nodejs, with a big load. (Couchbase 2.2.0 nodejs SDK 2.0.0-dp1)

After some hours each connection to couchbase seems to slow down by itself, ending up with connection timouts.

Our temporary solution is to restart each...

pithu's picture
Asked 2 weeks 1 day ago

CAS de/serialization not possible

Using a de-serialized/ serialized CAS value of a couchbase document for a set operation produces an error in couchnode. The Error is { [Error: Bad CAS] code: 4098, at: { '0': 84213760, '1': 193011187 } }.

The following code snippet reproduces the error:

...
Val Entin's picture
Asked 2 weeks 4 days ago
Latest activity 20 hours 23 min ago

Is there a method to insert multiple documents in one query?

Hi,

I'm lookin for a way with couchebase-node to insert multiple documents at the same time.

Like that I don't have to wait each fallback before inserting the other document or create a recursive function:

This is an example of what I'm currently doing:...

tito's picture
Asked 3 weeks 1 day ago

How to open db connections when clustering a node app?

Hello,

Assuming the following snippet:

var couchbase = require('couchbase');
 
var bucket = new couchbase.Connection({
    'bucket': 'default',
    'host': '127.0.0.1:8091'
}, function (err
...
christopher.mina's picture
Asked 1 month 1 week ago
Latest activity 1 month 4 days ago

2.0.0-Beta - N1QL Query object not instantiated properly

In the current source code for 2.0.0-Beta, the N1QL Query object is not instantiated properly, the raw Query string is ignored and replaced with an empty str: str = ''.

I have created a new pull request for this, found: https://...

christopher.mina's picture
Asked 1 month 1 week ago
Latest activity 1 month 4 days ago

2.0.0-Beta - multiple CAS values

I'm making a standard #get(id) call against a bucket and the return response.value is good, however, the CAS value is an array with 2 values, always.

I'm on Couchbase Version 2.5.1-1083-rel, Mac OSX.

If this is intentional, can you please explain how to use the two values in the...

casmeiron's picture
Asked 1 month 1 week ago

NodeJS couchbase@2.0.0-beta error with view query

Hi,

Im trying to execute a query using couchbase@2.0.0-beta for NODEJS and the server is 3.0 beta. The follow error occurs whatever view query I try:

Floating point exception: 8

No stacktraces whatsoever, no more information, nothing!

The query invocation is quite...

casmeiron's picture
Asked 1 month 1 week ago

QueryView TypeError Problem

Hi,

We've trying the new couchbase nodejs client (2.0.0) but we cannot use queryview.

In bucket.js, line 591 we have the follow:

if (query instanceof ViewQuery.Default) {

It's failing, saying query isn't of type ViewQuery.Default.

TypeError: First argument...

Pages