Questions tagged [couchbase]

Use for Couchbase Server or Couchbase Capella only (NOT CouchDB or Couchbase Lite). Couchbase Server is a distributed database engineered for performance, scalability, availability and flexible query. It enables developers to build applications easier and faster with both the power of SQL and the flexibility of JSON.

Capella is Couchbase's DBaaS (Database-as-a-Service). It is fully managed, hosted, patched, and upgraded by Couchbase.

Developed as an alternative to traditionally inflexible SQL databases, the Couchbase NoSQL database is designed to help developers solve real-world problems and meet high scalability demands along with unparalleled performance.

Developer features

  • Enhance application development agility by capitalizing on a declarative query language, full-text search, adaptive indexing, and seamless data mobility full-text search, adaptive indexing, and seamless data mobility
  • Achieve fast, efficient bi-directional synchronization of data from the edge to the cloud and between clusters
  • Build seamless data sharing across users and devices – online and offline
  • Consistent programming model for building web and mobile apps

Couchbase is designed to help enterprise applications perform well (up to 10-20x faster than competition) while also scaling to match data volumes. The use of in-memory datasets allows you to process and optimize queries and indexing processes. Coupled with the features of Couchbase Mobile, applications can continue to operate even in offline mode.

Management Tools

  • Streamline configuration and setup, take advantage of multi-cloud agility
  • Built-in enterprise-grade security for the full stack
  • Easily enable cross datacenter replication between clusters through a convenient UI

Useful links

3998 questions
6
votes
1 answer

Newbie query - couchbase user accounts?

I'm only just starting to learn Couchbase. I'd like to set up a username/password combination to be able to use within my node.js app to connect to a particular bucket - I've been looking around on the net but am finding so little information that…
Katya S
  • 1,321
  • 3
  • 17
  • 31
6
votes
2 answers

couchbase startkey_docid and complex key

The call below with the matching result set returns a result that does not start with the doc id a4a6cf44-8a82-494a-a2b9-f6a3ec629f17. As the result set below demonstrates the top 3 keys are identical, but startkey_docid has no effect. Just a…
Michael
  • 1,241
  • 1
  • 13
  • 25
6
votes
1 answer

Convert function source code to a string in NodeJS/JavaScript

I am creating JavaScript functions for map/reduce operations on database server side. To have syntax highlighting and errors check I make it like this inside my text editor: var map = function (doc, meta) { emit([doc.type, doc.created],…
Sergei Basharov
  • 51,276
  • 73
  • 200
  • 335
6
votes
2 answers

what better/faster complex couchbase ID's or inline document type="my_document_type"

My current id keys contains from 3 or 4 segments: namespace::my_key::id namespace::my_key::my_second_key::id Solution 1. Use complex id's and create views by searching in id for a key function (doc, meta) { if(meta.id.indexOf("::my_key::") !==…
Edmhs
  • 3,645
  • 27
  • 39
6
votes
1 answer

Couchbase bad connectivity (TIMING OUT) in AWS VPC

I am experiencing a connectivity problem which is a bizarre in a private virtual vpc in Amazon environment (AWS). My context is like this i have subnet in in this subnet i have 2 machines a client machine where i used Couchbase java SDK and a…
dragos.luca
  • 241
  • 2
  • 9
6
votes
3 answers

CouchBase 1.8 and 2.0 Erlang SDKs? Why is Erlang Left out

I really enjoy seeing the great work being done by CouchBase team on providing us with a great NoSQL solution. However, despite the fact that there are few erlang Web developers compared to perhaps ruby, PHP, java or Python, the number of developers…
Muzaaya Joshua
  • 7,736
  • 3
  • 47
  • 86
6
votes
4 answers

Multiple Couchbase bucket configuration in .NET

I have 2 buckets in Couchbase one is Couchbase type and the other is Memcachced type: when I run my test I get an error: The element servers may only appear once in this section. Below is my config:
5
votes
1 answer

Couchbase N1QL Subquery join issue

SELECT (SELECT RAW subcomments FROM comments.subcomments AS subcomments JOIN users ON subcomments.userId = users.id ORDER BY subcomments.createdDate DESC) as subcomments, ARRAY_COUNT(comments.subcomments) as subcommentCount FROM comments where…
5
votes
5 answers

I need suggestions for a distributed media storage data store

I want to develop one multimedia system, the system need to save millions videos and images, so I want to select a distributed storage subsystem. who can give me some suggestion ? thanks!
why
  • 23,923
  • 29
  • 97
  • 142
5
votes
1 answer

Couchbase in docker for integration tests: Make the ports 8092, 8093, 8094 and 8095 configurable to be able to use docker’s random ports

I am using Couchbase java client SDK 2.7.9 and am running into a problem while trying to run automated integration tests. In such test we usually use random ports to be able to run the same thing on the same Jenkins slave (using docker for…
Arnaud Villevieille
  • 1,039
  • 2
  • 10
  • 24
5
votes
3 answers

Couchbase No Index Available

We are having problems with a couchbase N1QL Query. We have an index defined as follows: CREATE INDEX `AppUser_SubjectId3` ON `Portal`(`SubjectId`) WHERE ((meta(self).`id`) like `AppUser%`) We are then trying to run the following query: SELECT RAW…
GreatSamps
  • 589
  • 1
  • 5
  • 16
5
votes
1 answer

Enable query service for couchbase

Sorry for very beginner question, just installed couchbase for the first time and when I want to load the "beer-sample" to try to run some n1ql scripts I get the following: This cluster does not contain an index or query node. Sample data will be…
Ferenc Deak
  • 34,348
  • 17
  • 99
  • 167
5
votes
2 answers

Couchbase : How to maintain arrays without duplicate elements?

We have a Couchbase store which has the Customer data. Each customer has exactly one document in this bucket. Daily transactions will result in making updates to this customer data. Sample document. Let's focus on the purchased_product_ids…
ramu
  • 1,415
  • 1
  • 13
  • 12
5
votes
2 answers

Couchbase 6.0 + springboot (InvalidPasswordException)

Hi i am newbie to Couchbase and created a Springboot application with Couchbase 6.0. When i installed Couchbase, it asked me to create username and password and i set username="admin" and password="password" and then i created "student" bucket. I…
Bifrost
  • 417
  • 5
  • 23
5
votes
2 answers

How to capture save or update events in Couchbase

I would like to be able to do some data manipulation when documents are updated or created in Couchbase. Documents can arrive in our database either via Sync Gateway or our own code which streams data in from an http service. It would be great to…
Simbosan
  • 244
  • 2
  • 11