Questions tagged [couchdb]

Apache CouchDB is a document-oriented database that can be queried and indexed in a MapReduce fashion. It exposes a pure restful API, making interaction possible from any language with the ability to send HTTP requests. This also allows "Futon", the administration interface, to work completely in the browser. It also offers incremental replication with bi-directional conflict detection and resolution.

Filter by
Sorted by
Tagged with
0 votes
1 answer
40 views

CouchDB: JavaScript Fetch API Fails To Connects Due To CORS on localhost

After more testing, the CORS issue surfaces only when I add the 'credentials': 'include' header. ...? Using Chrome browser I navigate to 127.0.0.1:5984 and get response from couchdb server. When I ...
Ronnie Royston's user avatar
1 vote
0 answers
26 views

Issue with Twitter API and streaming tweets using Tweepy and CouchDB

I've been trying to use Tweepy to stream tweets using the Twitter API and save them into a CouchDB database. However, the database remains empty, and no tweets are being saved. I've checked my Twitter ...
rahes's user avatar
  • 11
1 vote
1 answer
20 views

In Pouchdb /Couchdb should replication be faster through a filter or a view than using "selector" directly in replication?

I'm doing some tests with PouchDb and CouchDb in order to optimize my Ionic app as much as possible. In databases with a few hundred documents, I have no problem, but in larger databases (starting ...
Goltra's user avatar
  • 113
0 votes
0 answers
11 views

Cannot connect CouchDB 3.3.2 with Clauseau 2.21.5

I'm running Ubuntu 22.04 with CouchDB 3.3.2 and trying to marry couch to Clauseau 2.21.5. All installation seems to be according to the guides. However, whenever I run curl http://127.0.0.1:5984 I'm ...
AVK's user avatar
  • 645
1 vote
0 answers
26 views

Warnings in CouchDB after connecting Logstash to _changes feed

I'm using Logstashs Couchdb_changes input plugin to index data from CouchDB via Logstash into OpenSearch. Everythings works but since Logstash is connected the following warning appears frequently in ...
daflodedeing's user avatar
0 votes
1 answer
24 views

Couchbase DB Join Query Performance

I am trying to optimize a join query which is taking more time when the offset increases. Your suggestions will be helpful. SELECT * FROM document_1 AS doc_1 JOIN document_1 AS doc_2 ON ...
stk's user avatar
  • 1
0 votes
0 answers
15 views

How to search loosely in pouch db [duplicate]

Good day, Im using pouch db to search for usernames in my database, only problem is its showing the user only if i write the name the way it was saved, eg if i search Mario instead of mario it wont ...
Zayne komichi's user avatar
0 votes
0 answers
18 views

CouchDB "last_seq" number changes when adding since=now

I am getting inconsistent results from CouchDB version 3.2.1. If I get a list of changes in a database by calling http://docdb.mycouchdb.com/my_database/_changes I get a long list of changes in "...
MartinFL's user avatar
0 votes
0 answers
12 views

Disk space in fauxton is not the same in couch shard

the one in CouchDB fauxton indicates a lower disk space than the one in shard. How is this possible? Note: I have only one node
Ronald's user avatar
  • 1,317
0 votes
0 answers
18 views

CouchDB deleting and recreating document gives conflict

I need to recreate a document in CouchDB. I use nano package, but I think the problem is the same with API calls. What I'm currently doing is to make two calls: await dbHandle.bulk({docs: [{_id: "...
SiliconValley's user avatar
0 votes
0 answers
22 views

Force PouchDB to use http/2

I am using pouchdb-browser in the context of a React-App to connect to a CouchDB Server. I have a growing application and now I have the problem that the limit of 6 (or whatever) concurrent ...
tps's user avatar
  • 45
0 votes
0 answers
20 views

How to define a index in a hyperledger fabric chaincode with elemMatch

I have built a chaincode to save the following type of records: { "id": "2", "date": "2021-01-01", "user": [ { "where": { ...
Víctor Rosillo's user avatar
1 vote
2 answers
83 views

How do I figure out why "Verify Installation" is failing in CouchDB on macOS?

What I'm struggling with: From the official CouchDB docs page, I first followed the steps here to install the Apache CouchDB native application. When doing "Verify Installation" in Fauxton ...
HilbertIdeals5's user avatar
0 votes
2 answers
80 views

Use an Auth0 JWT Token to authenticate with CouchDB despite the fact that the username has a special character

Auth0 user_ids have the structure 'auth0|<some_id>'. So using an auth0 jwt token will give me something like { "iss": "https://.../", "sub": "auth0|640......
evandor's user avatar
  • 799
0 votes
0 answers
21 views

Couchdb with SSL and Nginx to reverce the ip

I have a docker container that contains CouchDB and I want to link it with my domain in Cloudflare to make the connection secure with SSL so, can I use Nginx to reverse the ip of the droplet with the ...
Ahmed Talal's user avatar
0 votes
0 answers
24 views

Querying Hyperledger Fabric Couch DB using composite keys and node.js

I'm trying to query couchDB using Fabric and node.js. This is my setup: Function to add a device: app.post('/api/adddev/', async function (req, res) { try { //await token_validation(jwk,req, ...
Edoardo Branchi's user avatar
0 votes
0 answers
27 views

Couchdb SSL failing with "bad record mac"

I am seeing the following in my couchdb "2.3.1" log file on a new ubuntu machine I am building. All other couchdb operations on the same machine seem fine. [error] 2023-03-14T09:36:00....
ferg's user avatar
  • 196
0 votes
0 answers
14 views

Hyperledger queries vs direct Couch DB queries. Are there any advantages to query data not directly from CouchDB?

Each peer in the network has its database CouchDB or LevelDB. When we change the state on the ledger we use chaincode functions. We get the feedback from endorser peers, validate signatures etc. Most ...
Fedor  Petrov's user avatar
0 votes
1 answer
22 views

Why are some of my Cloudant documents not being indexed when using Cloudant Search?

I have a number of documents like this: { "name": "Fred", "email": "fred@aol.com" } And I index them using Cloudant Search with an index function like ...
Glynn Bird's user avatar
  • 5,467
0 votes
0 answers
28 views

What's the recommended way to interface with Apache CouchDB from a Python app?

I want to have an instance of CouchDB running, and access it from a Python frontend. couchdb-python seems like a good option, but it's been unmaintained since 2019. Is it a viable idea to use it ...
amshepherd's user avatar
0 votes
0 answers
22 views

How to backup single-node docker couchDB by storing data dir?

According to documentation, I can save .couch, .shards, and shard files which all reside in /data. To test out whether all the data can be saved, I have two single-node couchDBs in two separate ...
Erin Hwang's user avatar
0 votes
1 answer
26 views

CouchDB - Deleted database does not release disk space on other cluster nodes

I have a CouchDB cluster (2.3.1) running for years. To clean up and get some disk space back I deleted a couple of databases. On the cluster node I performed the delete operation the corresponding ...
remi's user avatar
  • 1
0 votes
1 answer
8 views

Problems when the document submitted to hyperledger is larger than the couchdb limit. How to revert?

Currently I have a little bit custom Hyperledger Setup whith couchdb 3.2.2. In one org the default limiting document size was not changed and stayed 8 MB and we got a transaction larger than that. The ...
Fedor  Petrov's user avatar
0 votes
0 answers
163 views

Cannot npm login or npm adduser to private couchdb registry

What I want to achieve: I want to create private/local npm package repository using couchdb. It should allow me and other users to first, set registry -npm set registry http://localhost:5984/registry ...
apekop's user avatar
  • 13
1 vote
1 answer
12 views

CloudAnt: return only the last document matching an array of keys

Say I have documents in my database with key values "a","b","c", etc. Now I want to fetch the last matching value of multiple keys, such as keys:["a", "c&...
Jeff Lowery's user avatar
  • 2,459
0 votes
0 answers
21 views

PouchDB bulkDocs is not returning failed document _id when insertion fails

I am using pouchdb bulkDocs() to insert 100 records at a time. in case of any error in the insertion i need to capture _id of the failed document in catch block. but unfortunatly error doesn't ...
Nishil S.B's user avatar
0 votes
0 answers
27 views

Is it possible to write data to CouchDB attachments via Hyperledger Fabric?

Not sure how good this use case finally is, but that's what I'm working on right now. I need from time to time to store files on the hyperledger blockchain with CouchdDB as state database. Sometimes ...
Fedor  Petrov's user avatar
0 votes
0 answers
29 views

Get changes from couchDB database using MyCouch

I am trying to get the changes that have occurred in a couchDB database since the last time the code was executed. To do so, I have taken the following code from MYCouch library documentation. However,...
user avatar
0 votes
0 answers
12 views

Node Chaincode query by field selector not returning any value but it does if we use the same query in the couchdb Mango query

I have created the following chaincode and deployed it successfully on the network; 'use strict'; const { Contract } = require('fabric-contract-api'); class AssetTransfer extends Contract { ...
Víctor Rosillo's user avatar
0 votes
1 answer
49 views

Flutter function returning at await statement

I am using flutter with the cbl package to persist data. Trying to retrieve the entries does not seem to work because the function created is returning at the await statement and not the return ...
ibbs's user avatar
  • 60
0 votes
1 answer
28 views

couchdb find function with string comparison does not work as expected

as you can see in the image i am querying a date string d_lastOpened against d_updated. The goal is to show all that where updated after lastOpened, that means d_lastOpened <= d_updated. Why is the ...
devreal's user avatar
0 votes
1 answer
26 views

CouchDB (nano) randomly returns `You are not allowed to access this db.`

I've integrated a user authentication and it already works very well. (Authenticates and returns a JWT in cookie.) But for some reasons AFTER I logged in with my user and I want to establish a ...
YeppThat'sMe's user avatar
  • 1,812
-2 votes
2 answers
42 views

extract specific keys from json and adding to objects within another array - couchdb view?

I have some largish JSON data that looks a bit like [ { "_id": "d87f32bc-e2d7-4630-8007-2120f53bd41d", "_rev": "e9ce906d-0cb3-4a47-9f9c-...
baradhili's user avatar
  • 504
1 vote
1 answer
90 views

Getting Adapter not added. Use RxDB.plugin(require('pouchdb-adapter-[adaptername]'); in ReactNative

RxError: RxError: RxDatabase.create(): Adapter not added. Use RxDB.plugin(require('pouchdb-adapter-[adaptername]'); Given parameters: { adapter:"asyncstorage"} database.js //mycode import ...
Ramesh R's user avatar
  • 6,979
1 vote
1 answer
86 views

PouchDB - Live sync got stuck, sometimes?

Introduction We are using PouchDB 7.2.1 to synchronize a mobile PWA with a CouchDB to build up a Shared Context. In order to achieve this we use the bidirectional sync method from PouchDB. In the ...
Tobias Münch's user avatar
0 votes
1 answer
32 views

What happens in CouchDB when I create an index repeatedly?

To implement sorting, in CouchDB we have to create an index (otherwise the corresponding mango query fails). I haven't found a way to do this in Fauxton (if I have missed something, please comment in ...
YakovL's user avatar
  • 7,350
0 votes
1 answer
40 views

Measuring performance of CouchDb replication

I have several PCs in the network with application that uses CouchDB. CouchDb is configured to replicate data with CouchDb instance on all other nodes. I would like to measure a performance of data ...
bakala12's user avatar
  • 368
0 votes
2 answers
50 views

Chaincode HLF store variables with additional info

i am using a hlf system based on chaincode to show how smart contracts could be created. Now i am stuck with (in my mind) a very easy problem i guess. I want to store a data objects content as key-...
sebi's user avatar
  • 13
0 votes
1 answer
39 views

CouchDB: Manage access rights for databases

I am looking for a way to query and modify the access rights of users for databases. I found a query to get all users: https://localhost:5984/_users/_all_docs and all databases: https://localhost:5984/...
tps's user avatar
  • 45
0 votes
0 answers
24 views

How to create running totals in CouchDB (like SQL window functions)

Edited the question for clarity: Assume I have the following documents in CouchDB: { "_id": "1", "date": 1672119898, "amount": 120, "owner": &...
oyalhi's user avatar
  • 3,824
1 vote
1 answer
163 views

pouchdb or alternative where I can control how much data stored locally?

In the design stage for an app that collects large amounts of data... Ideally, I want it to be an offline-first app and was looking to Pouchdb/Counchdb - However, the data needs to be kept for years ...
baradhili's user avatar
  • 504
0 votes
1 answer
80 views

PouchDB / CouchDB synchronization and database design upgrade tools andgood practices

I am developing an ionic application using PouchDB to store data that I plan to sync with CouchDB and I am wondering what are the tools and/or good practices to manage database design upgrades. By ...
Eric van der Vlist's user avatar
0 votes
1 answer
58 views

PouchDB sync Error: {"name":"Error","message":"Can't find variable: btoa"}

Hello I have been implementing an off-line database with PouchDB in React Native 0.68.2, although when saving and retrieving the data it works correctly, but when synchronizing it throws this error: {&...
smog249's user avatar
0 votes
1 answer
26 views

Does it always return the document list in the same order when using the query method in CouchDB

I use CouchDB to store records in JSON manner. My question is does it always keep the same order when returning the documents list?
Matt's user avatar
  • 115
0 votes
0 answers
37 views

Cloudant: couch returned 500

Getting cloudant error on find query: { "selector": { "isValid": { "$eq": true } } } Could not find document query: "{exit,lru} couch ...
ErRrR 404's user avatar
2 votes
0 answers
322 views

Invalid Chunk Length when processing Changes feed from Cloudant

I have a strange error when processing a cloudant changes feed. I have setup a continuous feed something like this: feed = changes(feed='continuous', include_docs=True, since=db_seqno,filter="xyz/...
postgresuser's user avatar
0 votes
0 answers
15 views

introduce an array to very big flat table (Terra byte of data) good or bad?

I have a flat table in couch database where it having TB (Terra Byte) of data. Now we got a challenge where in this table have a column called "supervisor" (single value). But client want ...
Prageeth godage's user avatar
0 votes
0 answers
16 views

CouchDB endkey not exclude record

This is my view response {"total_rows":1007,"offset":0,"rows":[ {"id":"7ac096c6bb00b202d9c368ceac098fe2","key":"...
user2877989's user avatar
2 votes
1 answer
18 views

How do I use the number of active users of my app with my Cloudant database?

I have some user documents in my Cloudant database that are updated every time a user logs in to our app. I'm trying to find how many users logged in within the past 24hrs. What is the best way of ...
Daniel Mermelstein's user avatar
0 votes
0 answers
76 views

couchdb/clouseau error in handshake: ou est clouseau?

On ubuntu 22.04 with couchdb 3.2.2, openJDK 8, I try to get lucene search to work by installing clouseau 2.21.2. I followed this tutorial. The service is available, but when I try to use it (as ...
buisman's user avatar

1
2 3 4 5
123