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
1
vote
1 answer

Running a go script wtih cron in Docker

I've been trying to run a go script with cron under Ubuntu 16.04 Docker image. Here are the files that I've Dockerfile FROM couchbase RUN apt-get update RUN apt-get install gcc make -y RUN apt-get install golang-1.10 git -y ADD src/crontab.txt…
Lexx
  • 705
  • 2
  • 9
  • 19
1
vote
1 answer

Fastapi - Copy data with sqlalchamy to couchbase

Webserver - fastapi the sqlahcmay ORM model name--> CustomerModel, where the pydantic schema --> SchemaCustomerBase The document being fetch correctly see line : customer = get_customer(db, customer_no=customer_no) so all good by ORM side , the…
AviC
  • 354
  • 1
  • 5
  • 15
1
vote
0 answers

object saved as binary in couchbase

I am using ‘MappingCouchbaseConverter’ from spring library like below CouchbaseDocument target = new CouchbaseDocument(); mappingCouchbaseConverter.write(myObject, target); ctx.insert(couchbaseClientFactory.getCollection( “mybucketName”).reactive(),…
1
vote
0 answers

I am getting this error in Couchbase: ‘Pooled socket is dead. Continuing to next one’

I am trying to make a N1QL query. I am successful in getting cluster connection. But it is failed when I am trying to execute the query. In the nginx error log I am getting this error- [error] 17518#17518: *7703 FastCGI sent in stderr: "PHP message:…
rafi
  • 1,493
  • 3
  • 31
  • 43
1
vote
1 answer

How to query in to Couchbase using node-red in post method?

I'm trying to connect and run the query to get particular id values in node-red using the post method but facing a problem in attaching post data in the query. Tried in the following way API request flow Query forming using function node After…
KARTHIKEYAN.A
  • 18,210
  • 6
  • 124
  • 133
1
vote
1 answer

Protect Admin REST API of SyncGateway

I have an application will request Sync gateway through Admin REST API. So it’s possible to configure the sync gateway to use the client credentials grant flow to request Admin API? My application and sync gateway are in different network. The…
youssef Liouene
  • 873
  • 6
  • 15
  • 28
1
vote
0 answers

How to create hierarchical view in Couchbase

I have company documents in a bucket. I want to make a view of the company tree using those documents. How to achieve this using couchbase. I have checked this…
1
vote
1 answer

How to get the bucket when previously specified with `Cluster.ConnectAsync`

I initiated the Cluster in DI with the following code: serviceCollection.AddSingleton(service => { var couchbaseOptions = service.GetService()?.CouchbaseOptions ?? throw new…
Thammarith
  • 662
  • 5
  • 19
1
vote
1 answer

N1QL value NOT IN subquery which returns an array

I am trying to write a N1QL query which returns all records of whose id is not in an array. This array is found in another document. My Playlist document example: {"id":1,"name":"playlist1","tracksId":[1,2]} My Track document example:…
1
vote
1 answer

Couchbase 6.5.1 - cbtransfer - split data into multiple files

Currently we have thousands of documents in our Couchbase bucket and we want to export them to csv (or json) format for further use. As the documents are huge in numbers, we want to split the exported data into multiple files instead of single large…
1
vote
1 answer

Connecting to Couchbase Server using C SDK

I've been trying to connect to a Couchbase. cluster using the C SDK but have been getting this error : "_lcb_createopts_connstr", referenced from: _main in minimal.c.o "_lcb_createopts_create", referenced from: _main in minimal.c.o …
1
vote
2 answers

Get minimum and maximum value from a Array returned from a Couchbase N1Q1 query

I have a query that returns a set of ordered document keys. I need to find the minimum and maximum key from this returned array. Query to return a list of document keys : SELECT RAW META(d).id FROM `orders` AS d WHERE META(d).id LIKE 'order:%' ORDER…
humbleCoder
  • 667
  • 14
  • 27
1
vote
1 answer

How to return a boolean from a document using spring-data-couchbase with @Query

I am using spring-data-couchbase 4.1.1. I want to add a method in my repository method like following public interface DomainRepository extends CouchbaseRepository { @Query(("SELECT isActive from #{#n1ql.bucket} " + "WHERE…
1
vote
1 answer

How to connect Redis and Couchbase in spring

How can I connect redis and couchbase to my spring application. I get this error Parameter 0 of method couchbaseMappingContext in org.springframework.data.couchbase.config.AbstractCouchbaseConfiguration required a single bean, but 2 were found: -…
1
vote
1 answer

How to get the element details which got removed using Arrays.asList(remove()) using couchbase Java SDK?

I am trying to implement a highly concurrent access pattern where every request should get a unique document when they do a get. I can't use N1QL and I dont have key to do KV fetch. I implemented an array of documents and as Arrays.asList(remove(0))…
1 2 3
99
100