77 questions
1
vote
0
answers
49
views
CouchDB update one field of all documents
I'm working with CouchDB and Mango queries and I have a JSON structure for my documents with fields like "nome" (name) and "age". I want to modify all documents in my database by ...
1
vote
0
answers
63
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 ...
0
votes
0
answers
82
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 ...
0
votes
1
answer
284
views
CouchDB permanent authentication key
We're moving and updating our database because it's due for it, but we have an issue concerning authentication. We'd like to connect to the database only with an authentication key.
Our old CouchDB ...
1
vote
1
answer
303
views
Work with nested objects using couchdb-python
Disclaimer: Both Python and CouchDB are new for me. So far my "programming" has mostly consisted of Bash scripts.
I'm trying to create a small script that updates objects in a CouchDB database. The ...
1
vote
1
answer
225
views
Bulk Undelete CouchDB Docs with CouchDB-Python
I accidentally deleted all the docs in a CouchDB database and I want to undelete them.
CouchDB version = 2.2.0
Python = 2.7 and I'm using the python-couchDB library.
My CouchDB is not doing any ...
0
votes
1
answer
496
views
exporting data in couchdb when using view
so I am new in CouchDB and I was trying to write some python program that will upload a JSON file, upload a VIEW, and return me the values in an array.
I wrote the view as if(doc['city.berlin'])
...
0
votes
2
answers
187
views
couchdb primary key workaround
I am looking for a workaround for primary key feature in couchdb. I am saving doc in json format to couchdb externally. Is there any simple way to check if value of a particular field exists?
0
votes
2
answers
79
views
Slow down when trying to copy database to new database
I am trying to transfer all the documents out of my large couchdb db, and appear to hit a serious slow down shortly after starting. The request being used to get the documents is:
url = 'http://<...
0
votes
1
answer
304
views
How to disable read permission on couchdb database
The problem is I have multiple couchdb local clients databases say A_db, B_db, C_db which is replicating to a couchdb server master database says server_db. Now each client is creating a document say ...
2
votes
2
answers
3k
views
Deleting all documents in CouchDB
I have a database and I want to truncate all records, I know it is possible to just add a _deleted key to every document or call db.delete() on CouchDB-python library. I am using the delete of couchdb-...
0
votes
2
answers
287
views
Is there good way to backup and delete and backout the document from couchdb?
I have some couchdb document need to be removed, Is there good way/steps to backup and delete and backout those document from couchdb?
1
vote
1
answer
358
views
How to query for negated results in CouchDB (Python)
Does CouchDB have a way to return back the documents that do not meet a certain filter criteria? I am using Python' API and provided an example below:
couch['test_db'].view('doc/entrybyname', key=...
0
votes
1
answer
212
views
CouchDB Returning None for Row Key (reduce function)
I have a map function and reduce function to count all the occurrences of a key. The code is below for CouchDB 2.0 design document:
Map Function
function(doc) { emit(doc.domainID, 1); }
Reduce ...
-1
votes
1
answer
528
views
Error: not found - missing when clicking on DB (Couchdb)
I am trying to view a Couchdb database in the browser named event_db. However, when I navigate to the following url: http://localhost:5984/_utils/database.html?event_db I get the an Error: not found ...
1
vote
0
answers
212
views
python3 how to install couchdb module on raspbian
I have spent a couple of months developing an application that uses the python module for couchdb, and now I want to deploy it, I can't remember how I first installed it, I thought it was a simple:
...
2
votes
2
answers
7k
views
Couchdb, return number of Docs
How do I do this simple thing, I just want the number of documents in a database. So far I am using a loop function in python to do this, but it seems an incredible inefficient way of doing this. ...
1
vote
1
answer
1k
views
How to get filtered changes in python couchdb
I'm using python-couchdb library to listen to the changes in database using continuous feed. I want to apply a filter which gives me only those documents that have a key read equal to true.
With ...
0
votes
0
answers
88
views
Will CouchDB accept the largest possible file that could reside in a FAT32 fs?
https://stackoverflow.com/a/24222187/4240261
Will I be able to upload as an attachment the largest possible file (¿ ~4GB) that could fit in the FAT32 limit to my CouchDB database, or for such files I ...
1
vote
1
answer
897
views
Python with CouchDB 2.0
I have CouchDB 2.0 server.
I need to create, delete, get, update and query the databases via python.
On 1.6 version there was a couchdb-python lib.
What is the best option here ? Work with the ...
0
votes
0
answers
448
views
Resource Conflict after syncing with PouchDB
I am new to CouchDB / PouchDB and until now I somehow could manage the start of it all. I am using the couchdb-python library to send initial values to my CouchDB before I start the development of the ...
4
votes
0
answers
914
views
Access Futon via IP address of the remote instance
I've managed to install CouchDB onto a remote instance running Ubuntu, and can see that the DB is responding to my calls using curl (via the command line). Now, if I wish to access futon, I have to ...
1
vote
0
answers
111
views
CouchDB view query fails when a complex JSON is used as a key
I have created a view on the db which emits key,value pair like so:
emit([doc.some_key, doc.inner_doc], doc)
Note that doc.inner_doc can be just any other JSON document.
Now, there is a problem while ...
0
votes
1
answer
82
views
is there a way to clear duplication record from results?
I have a view but did have duplicated documents from the results of view as like following, how can I get the duplicate results and get the unique? thank you in advance
{
"total_rows": 9,
"offset": 0,...
3
votes
1
answer
397
views
Managing users in _users with couchdb-python
I'm trying to store and retrieve user from the database _users using couchdb-python. I'm a beginner here with couchdb.
I mapped the python class User with couchdb Document couchdb.mapping.Document ...
4
votes
2
answers
4k
views
How to check if database already exists
I am writing a small Python program that loads some documents into couchdb.
It would be very convenient to check whether a database with a certain name already exists, so I can either create a new ...
0
votes
1
answer
369
views
Couchdb-python: How can I call functions in map_reduce function?
I want to call some functions but I don't know how to import the package. I tried like follows but it failed. How can I do? (I want to use some third-party package to analyzing each doc, the code ...
1
vote
1
answer
2k
views
Fetching data from a view written in CouchDB-Futon using Python
I have a database with around 2 million documents. This database contains a lot of duplicate documents. I wrote a map reduce function in CouchDB-Futon, which removes the duplicates. Now I want to get ...
0
votes
1
answer
1k
views
Not able to store tweets in CouchDB
I retrieved user information using api.followers in tweepy and am trying to store them in couchDB, but I keep getting this error message
"u'doc validation, u'Bad Special document member" _json".
...
2
votes
1
answer
432
views
retrieving selected documents in couchdb
For example I have documents in couchdb which have the following Ids (1,2,3,4,...,n) and I want just to retrieve e.g. three Ids (2,4,7).
Do I have to query each of them or can I pass anyhow an array ...
1
vote
1
answer
632
views
Flask-Paginate with CouchDB
I found here a nice template for a pagination.
However, this example was done with SQLlite, but I rewrote in order to be able to use CouchDB.
This script creates users and save them to CouchDB:
...
2
votes
1
answer
419
views
CouchDB-Python retrieving documents
The following document is a small example and is stored in CouchDB.
{
"_id": "Test4",
"referenceName": "refA",
"positions": {
"A": 422,
"B": 5442
},
"details": {
...
...
0
votes
2
answers
2k
views
Map and reduce functions in CouchDB-Python
How is it possible to use map and reduce functions in CouchDB-Python, because the below code does not return anything?
Is it also possible to disable reduce function if it is not needed?
import ...
0
votes
1
answer
104
views
Is it necessary to create all combination a separately view in CouchDB
I have the following documents in CouchDB stored:
{
"_id":"1",
"_rev":"1-e3ff3eb51ccf90e0446ef086fcc6a06c",
"sub_name":"A01",
"type":"Test",
"name":"A",
"pos":828288
}{
"_id":"2",
"...
0
votes
1
answer
166
views
Quering in a array/list in CouchDB
I do not know how to implement the following query in CouchDB:
chr.letter between two objects/dicts in chr are not the same and no X, and
the document must be in range 200000 - 2000000, but I guess it ...
0
votes
1
answer
1k
views
How to update a document in CouchDB
I have a list r which contains 12 lists as elements. Each list contains some elements (i[0] to i[5]) which are the same compare to other lists.
I tried only to insert unique documents so as result I ...
0
votes
1
answer
312
views
couchdb-python specify own _id failed
How is it possible to define own _id in couchdb-python (0.9), because when I tried '_id': i[5] I got the following error message?
$ python test3.py
828288
Traceback (most recent call last):
File "...
0
votes
1
answer
4k
views
TypeError: int() argument must be a string or a number, not 'tuple' with couchdb-python
I got
$ python test3.py
828288
Traceback (most recent call last):
File "test3.py", line 48, in <module>
test.pos = i[3],
File "/home/mic/.virtualenvs/test/lib/python2.7/site-packages/...
0
votes
1
answer
598
views
Error occurred while writing a data into CouchDB
I am trying to Delete the whole data from the CouchDB and again i am trying to write same data with modified **_id field and some extra field **
but i am getting following error :
{
'...
0
votes
1
answer
200
views
Equal distribution of couchdb document keys for parallel processing
I have a couchdb db instance where each document has a unique id (string). I would like to go over each document in the db and perform some external operation based on the contents of each document (...
1
vote
1
answer
388
views
How to use couchdb-python to call a view with a list of keys?
I have this ViewDefinition:
""" Models id."""
models = ViewDefinition('models', 'by_authors', """
function(doc) {
if (doc.type == "definition") {
for (var i = 0; i < doc.authors.length; i++) ...
0
votes
3
answers
547
views
Python 3 can't use with couch db
I am using IDE PyCharm 3.4 and python 3.3 (tried use python 3.4 but the same problem). I want to install CouchDB package through IDE:
Step by step:
1) Install "Pygments" package (because it's ...
1
vote
1
answer
272
views
Error while installing couch DB version 1.5.1
While installing couch DB 1.5.1 from source, in the step where make is called I get this error
make[1]: *** No rule to make target `THANKS', needed by `THANKS.gz'. Stop.
make[1]: Leaving directory `...
1
vote
1
answer
7k
views
Python, CouchDb: how to Update already existing document by ID
I am trying to update an already existing document by ID. My intention is to find the doc by its id, then change its "firstName" with new value coming in "json", then update it into the CouchDB ...
1
vote
1
answer
687
views
How to change permissions on a couchdb database with python
I am trying to add a user in the "_security" document of a database with python-couchdb.
I am getting an error because the "_security" document doesn't have an "_id" attribute.
import couchdb
couch=...
0
votes
1
answer
3k
views
with Python, how can I save a json dumps as a CouchDB document?
Given the following example data :
[
"this",
1000,
{
"that": 1
}
]
(which is valid json according to jsonlint.com)
data=json.loads('["this",1000,{"that":1}]')
when I try to ...
0
votes
1
answer
330
views
how to set group=True in couchdb-python
How is it possible to set group=True in couchdb-python ?
from couchdb import Server
from couchdb.mapping import Document, TextField, IntegerField, DateTimeField, ViewField
server = Server()
db = ...
1
vote
2
answers
596
views
couchdb-python and map function ViewField execute
How is it possible to execute in couchdb-python a map function which is in ViewField define
>>> from couchdb import Server
>>> from couchdb.mapping import Document, TextField, ...
3
votes
1
answer
940
views
Is flush method missing in couchbase python client?
I did not find the flush button for bucket in couchbase admin UI at port 8091 .May be because of this http://www.couchbase.com/issues/browse/MB-5351 .
Then I saw this How to delete all items in the ...
0
votes
1
answer
348
views
How can I synchronize views from python couchdb to my design docs using a ViewField of the Document Mapping classes?
I'm trying to use the Document mapping classs for the python couchdb lib
but I am finding the docs extremely inadequate
It includes a few lines of code on how to define a view on the Document ...