Large files in the DB didn't work well for us, either.
We ended up putting together a solution where we stored large files on the
file server and simply associated them with documents in different
databases. We used nginx upfront to forward the normal CouchDB attachment
requests to our server
On Sun, Dec 6, 2015 at 5:36 PM, Pedro Teixeira wrote:
> Hi Alexander,
>
> From the docs it looks like this endpoint simply returns creations,
> deletions and updates of databases.
> What I’m looking for are changes in *records* inside and across all
> databases...
>
I believe this
Did you try compacting the target database?
Dave Westerman schrieb am Fr., 9. Okt. 2015
um 23:55:
> Why would a new target replica of a CouchDB database be over twice the
> size in the filesystem as the source database after the replication is
> finished? I have a
Hi Florin,
Have you read back the actual state of the couch server as you are doing
these tests, e.g. via the _stats interface? (
http://docs.couchdb.org/en/latest/api/server/common.html#stats) This could
help you investigate further, e.g., where couch is topping out.
There's also a nice munin
Hi Jim,
I don't know of a way to do this using simply couchdb. Probably the best
(standard?) way to ensure that only the pieces of the API are available
which you want is to use a reverse proxy, e.g. nginx. Indeed, it is much
easier and safer to explicitly turn on the things you want, then to
Hi all,
We have databases that are full of time-based information (e.g.
measurements being saved) and would like to be able to partially replicate
the databases. I know this can be done with normal filter functions (we do
this already), but this requires running over all documents which can be
4, 2015 at 7:27 PM, Alexander Shorin kxe...@gmail.com wrote:
You can specify replication start sequence with since_seq field with
the request to /_replicate or in _replicator doc. Is this what you're
looking for?
--
,,,^..^,,,
On Mon, May 4, 2015 at 8:12 PM, Mike Marino mmar...@gmail.com
Hi Alexander,
On Wed, Feb 11, 2015 at 11:18 AM, Alexander Shorin kxe...@gmail.com wrote:
As for btree, it allows to deduplicate map functions result. Say, you
need to apply different reduce functions onto the same map function.
You'll create two views with the same maps and different reduces.
Hi,
why do you say it is a 'mistake' to emit doc from a view?
I do have views that get some param and return the resulting doc(s).
E.g.:
map|:|function(doc) {if(doc.startDate !doc.disabled)
{emit(doc.startDate, doc);}}
Perhaps it's more correct to say unnecessary. You can
Hi Garren,
Your Ajax call won't return any data until it has finished/succeeded. This
doesn't play well with the changes feed, which keeps the connection open
and is streaming data.
Can you use the eventsource protocol instead? (If not, see [1].) This
built-in library does a lot of the work
It seems to be happening in the _users validation function when PUTing new
users (at least this seems to be the only indication I see), but it's not
clear to me that there's any other exercising of the query server through,
e.g., view building.
Are you sure that the javascript query server is
Another option is to enable multirange-queries in the CouchDB. I know many
people asking for them and there is existing a plugin/patch for - but there
ends my knowledge. Maybe someone can help with a link.
This should already be available in the master branch and should be
available in 2.0:
Hi Gijs,
I admit, it's a little bit difficult to follow what you want to do, mainly
because it's not clear how you want your data to get aggregated. Instead
of providing your code, can you provide your expected set of keys for a
non-reduced view and how you want it to reduce down to at the end?
Hi Luca,
You have to handle the case when rereduce is true (and keys will then be
null). See e.g.
http://wiki.apache.org/couchdb/Introduction_to_CouchDB_views#Reduce_Functions
Cheers,
Mike
On Tue, Sep 30, 2014 at 11:05 AM, Luca Morandini lmorand...@ieee.org
wrote:
Folks,
I wrote a view to
Hi Conor,
On Fri, Sep 26, 2014 at 10:57 AM, Conor Mac Aoidh conormacao...@gmail.com
wrote:
Hi All,
I was previously using the validate_doc_update function for document
validation. However, now I need to be able to change the contents of a
document if it is invalid.
validate_doc_update
documents
- write a daemon to listen for these inserts via the changes feed. This
daemon could be run automatically by couch at startup (e.g. via os_daemon
configuration).
- Handle the updates to the documents with this daemon.
Cheers,
Mike
Thanks
Conor
On 26/09/14 10:02, Mike Marino wrote:
Hi
That's likely the solution I'll go for. I'll insert documents with a
'validation' field set to 0. Then have a process watching for changes and
get it to validate the documents, mark them as validated.
You probably don't even need to explicitly set another field. Just write
your view to
Hi all,
PUTs of documents with attachments using multipart/related associate the
attachments based upon the ordering of the submitted JSON in the
_attachment dictionary. (This has been noted as an issue here:
https://issues.apache.org/jira/browse/COUCHDB-1521 , but not yet addressed
for the past
Hi Luca,
I have not personally seen this and we certainly use Date parsing in our
views, though it's possible we jumped over 1.5.1 and went straight to
1.6(.1). Perhaps a few things to try to shed some more light here.
What do the couchjs executables look like on each system? That is:
sure the produced couchjs
executable correctly links against the spidermonkey libraries. If you go
through all those steps and it's still not working, we can try to debug
further.
Cheers,
Mike
On Thu, Sep 25, 2014 at 12:10 AM, Luca Morandini lmorand...@ieee.org
wrote:
On 25/09/14 01:14, Mike
Hi Daniel,
Well, that seems to look ok. You can run couchjs from the command line
without any problems?
Could you send the log file output when you call the view (best to use
friendpaste, gist, etc. for large amounts of text)?
Cheers,
Mike
On Wed, Sep 10, 2014 at 10:08 AM, Daniel Gonzalez
Hi Rhadika,
I believe this was fixed with this commit:
https://api.github.com/repos/cloudant-labs/cloudant-python/commits/04609664e32f330a781bfb7a11a198f66980e30a
The current version is 0.5.9, can you try upgrading and running your code
again?
mgm
Am 30.07.2014 um 19:28 schrieb Ramanadham,
Multiple views also allows you to split them across design documents, which
means they can be built independently and in parallel.
On Tue, Jul 22, 2014 at 5:44 PM, Jens Alfke j...@couchbase.com wrote:
On Jul 22, 2014, at 2:51 AM, Landry Soules landry.soules...@gmail.com
wrote:
My question
On Tue, Jul 22, 2014 at 7:02 PM, Tito Ciuro tci...@mac.com wrote:
Is it better then to define a view per design doc then? If I have say, 8
views for a given person design doc, would you place them in one single doc
or break them into smaller units?
I think that probably heavily depends on
Can you use couchjs at all? That is, if you simply try running couchjs
from the command line, what do you see?
This could be a problem that couchjs can't find the necessary libraries
(the path isn't set correctly, etc., see e.g. http://bit.ly/1pirqAI ).
Cheers,
Mike
On Wed, Jun 25, 2014 at
Hi Martin,
list functions give you access to the userCtx object and can allow you to
prepare the results of a view based upon a particular user. See, e.g.
http://guide.couchdb.org/draft/transforming.html
However, you will still need to limit access to other pieces of the
database (using e.g.
Am 16.06.2014 um 12:29 schrieb Pieter van der Eems
p.van.der.e...@interactiveblueprints.nl:
The problem you encounter here has to do with javascript.
Javascript does not allow you to do doc.123.
It will allow you to access the 123 of doc by using the alternate syntax:
+1
I'll only add it
Hi Sagu,
As Dave says, some more details would be helpful. Also, if you can, I
would suggest using a binary package system.
That being said, I suspect this would be resolved by doing what the error
message suggests, namely recompiling with the flag -fPIC. In
spidermonkey's case, there is no
Hi Radhika,
You're right, _stats doesn't return the average directly, but it returns
e.g. the following JSON information:
...
{sum: 33772.231, count: 1344, min: 25.064, max: 25.166, sumsqr:
848634.685281}
...
You can calculate the average in user software with sum/count.
I'm am pretty sure you
Hi Radhika,
What does the server status say in futon? (i.e. does it note that the
views are building or not?)
One side comment, the reduce functions that you posted will likely not do
what you expect when a rereduce is run. I would suggest using _stats
(preferable solution,
, Radhika
radhika.ramanad...@emc.com:
Thanks Mike. I will clean up my reduce functions once I get this resolved.
Reg the issue: I am not sure where to look if views are building or not.
On the other hand, on couchdb server 1.5.0, I see the results:
-Original Message-
From: Mike
-
From: Mike Marino [mailto:mmar...@gmail.com mmar...@gmail.com]
Sent: Wednesday, May 21, 2014 10:32 AM
To: user@couchdb.apache.org
Subject: Re: running views return nothing with couchdb1.5.1
Hi Radhika,
What does the server status say in futon? (i.e. does it note that the
views are building
Hi Rhadika,
Do any of your views work on the 1.5.1 box? Is your couchjs process dying
when the views are running? (I've seen this due to libraries not being
found, etc.) Again, the output of the log would be helpful on the 1.5.1
box.
Cheers,
Mike
On Wed, May 21, 2014 at 5:40 PM, Ramanadham,
,
{exit_status,127}}
[Wed, 21 May 2014 15:49:42 GMT] [error] [0.3093.3] OS Process Error
0.17182.143 :: {os_process_error,
{exit_status,127}}
-Original Message-
From: Mike Marino
file: No such file or directory
lglod078:/var/log/couchdb #
-Original Message-
From: Mike Marino [mailto:mmar...@gmail.com]
Sent: Wednesday, May 21, 2014 11:59 AM
To: user@couchdb.apache.org
Subject: Re: running views return nothing with couchdb1.5.1
Ok, that could indeed
On Wed, May 21, 2014 at 6:19 PM, Ramanadham, Radhika
radhika.ramanad...@emc.com wrote:
I generally do a zypper install couchdb from the below repo which couchdb
server built for suse linux enterprise 11, sp3.
zypper addrepo
Hi Behrad,
Could it be that your system is trying to stop/restart your couch service
at this 5 sec interval? There was a thread about this a few weeks ago
where the problem was that the system was stopping and restarting couch,
but couch was not properly getting stopped.
See e.g. here for the
Hi all,
I have a question regarding the update_seq returned with the two methods:
1. /db/_design/ddoc/_info
(in the view_index object)
2. /db/_design/ddoc/_view/view_name?update_seq=true
(+ other query strings in principle)
I am finding that the update_seq is not always the same
would be well supported.
Cheers
Simon
On Friday, 21 March 2014 at 01:29, Mike Marino wrote:
Hi Andy,
well - obviously I am wrong. I am sorry. Thanks for your example
Mike. I think Radhikas question is very well answered then :)
No problem, I probably should've sent the gist
Hi Marty,
It's difficult for me to tell the reason that couchdb is not stopping using
your init script, but we had a similar issue that I fixed by patching the
couchdb startup script (executable). The issue was that the 'shepherd'
program was respawning couch after a requested shutdown.
This
Hi Omar,
This is really a question for the SpiderMonkey list, though chances are
that fixing this problem will also mean your environment will be (better)
set up to build couchdb. As a caveat, I have limited experience with
cygwin, but I can still tell you what that error message means.
Hi radhika,
Am 20.03.2014 um 17:33 schrieb Ramanadham, Radhika
radhika.ramanad...@emc.com:
Hi guys,
I have a dumb question.
Now with cloudant, how do I connect to my couchDB server
(http://localhost:5984) with no username and password?
All the examples I see connect to cloudant and
Am 20.03.2014 um 17:41 schrieb Robert Samuel Newson rnew...@apache.org:
The library exists to connect you to cloudant, which is a remote service. :)
While this is true, it also works plenty well to connect to any
couchdb instance. We've switched to using it and I've found the
interface
But, I see they say its an interface for cloudant or couchDB
Absolutely, see my last email about passing the uri to Account.
https://pypi.python.org/pypi/cloudant/0.5.6
-Original Message-
From: Mike Marino [mailto:mmar...@gmail.com]
Sent: Thursday, March 20, 2014 12:58 PM
this module to connect to our
local couchdb databases.
Please have a look at http://couchdbkit.org/ and
https://code.google.com/p/couchdb-python
Cheers
Andy
-Original Message-
From: Mike Marino [mailto:mmar...@gmail.com]
Sent: Thursday, March 20, 2014 12:58 PM
To: user
.
Please have a look at http://couchdbkit.org/ and
https://code.google.com/p/couchdb-python
Cheers
Andy
-Original Message-
From: Mike Marino [mailto:mmar...@gmail.com]
Sent: Thursday, March 20, 2014 12:58 PM
To: user@couchdb.apache.org
Subject: Re: using python-cloudant
page:
https://github.com/cloudant-labs/cloudant-python/issues/25
Cheers,
Mike
Cheers
Andy
On 20 March 2014 20:30, Mike Marino mmar...@gmail.com wrote:
Here is a gist demonstrating using the cloudant module connecting to a
local couchdb:
https://gist.github.com/mgmarino/9526872
Cheers
Am 29.01.2014 um 23:45 schrieb Jens Alfke j...@couchbase.com:
Has anyone thought of modifying the JS global bindings when a map function
runs, such that calling Date.new will throw an exception? Preferably an
exception with a descriptive message like It is illegal to use the current
date
This is an interesting problem. Aaron, can you say something more about
what sorts of data transfer you have at all? (USB stick/hard drive
transfer through the mail?) Do you only do one-way replication? We have
had to do such data transfers for our experiment, but not for isolated DBs.
Am 27.01.2014 um 19:05 schrieb Jens Alfke j...@couchbase.com:
what sorts of data transfer you have at all?
He already said: HF Radio.
What about:
Remote system A, Central System B
1. Make A read-only, copy database file to intermediate A_1
He already said they don't have the bandwidth
If you absolutely must use the network transfer, and are looking to do
something special to the data between points (ie before the data
traverses the network), netcat is an excellent tool for patching
together protocols/operating on the data. You might find something
there which could help you
Can you see the couchdb server from your PC at all, i.e. using
ping/nmap/telnet?
nmap [couchdb_server_address]
telnet [couchdb_server_address] 5984
On Thu, Jan 23, 2014 at 11:22 AM, Jordi Cabré jeu...@gmail.com wrote:
Hi all!
I'm trying to get access from an external PC to my
It's not exactly clear what you would like to do. Do you just want to get
the timestamp as seen by the couchdb server?
What you are doing here is writing a view, the results of which will only
be regenerated if a new document has been inserted between a previous query
and the current query.
On
Hey Dan,
As an option, see pillowtalk started by jubos over on github. It uses yajl
as the back end and, though it's tedious to do in C, it is relatively
straightforward to deal with. This doesn't make it *automatic* (I don't
think that would be possible in C given the strong-typedness of the
, 2013 at 3:57 PM, Robert Newson rnew...@apache.org wrote:
That would be great!
On 22 November 2013 14:55, Mike Marino mmar...@gmail.com wrote:
I have definitely had a similar issue, and had to fix the script
myself ( We use a CRUX distribution, so everything was built from
scratch
There are, of course, ways to get couchdb to update views dependent on
writes. I also believe this is supposed to get easier in the future
(included in the bigcouch merge?).
Am 20.11.2013 um 23:46 schrieb Simon Metson si...@cloudant.com:
Nope, views are updated on read, hence the blocking
any automatic view updating
scheduler. Nothing stops someone contributing one, of course.
B.
On 20 November 2013 22:49, Mike Marino mmar...@gmail.com wrote:
There are, of course, ways to get couchdb to update views dependent on
writes. I also believe this is supposed to get easier
On Mon, Nov 18, 2013 at 3:04 PM, Hank Knight hknight...@gmail.com wrote:
I understand that I can pass information using an update handler like this:
http://127.0.0.1:5984/my_database/_design/my_designdoc/_update/in-place-query/mydocId?field=titlevalue=test
Is there a way to use POST data with
\];}
}
}
I call it like this:
curl -k -u uiimv...@sharklasers.com:password123 -X PUT
https://zuhqtr5.couchappy.com/testupdates/_design/time2id/_update/u/
-d '{hello: world, number: 23}' -H Content-Type:
application/json
On Mon, Nov 18, 2013 at 10:17 AM, Mike Marino mmar...@gmail.com wrote
Hi Pedro,
On Fri, Nov 15, 2013 at 10:29 AM, Pedro Narciso García Revington
p.reving...@gmail.com wrote:
Hi,
I want to sum decimals with the builtin _sum function.
My documents look like
{
_id: 7a2c5e50dfeb1341d02aa27c7a05f629,
_rev: 4-482ff2f6b6e5c2aa079e3e4114d02093,
type:
To answer the original question, _sum can only sum numbers, it does
not understand numbers inside strings.
The way I understood the OP's question was that he had correctly,
following the error message, converted to using numbers instead of
strings, but then didn't understand the obtained
On Fri, Nov 15, 2013 at 12:55 PM, Pedro Narciso García Revington
p.reving...@gmail.com wrote:
Yes, I'm dealing with money but also with micro decrements (cost per
impression on ads).
So my decrements are going to be like 0.000123.
I think what I'm going to do is to sum them before push them
The quote from the slide is:
To me, SHOW/LIST is ugly and should probably be deprecated.
She was simply expressing her opinion, not the status of show/list.
On Thu, Nov 14, 2013 at 7:14 PM, Mark Deibert mark.deib...@gmail.com wrote:
Yes I know the dictionary definition of deprecate. However,
[1] https://twitter.com/SaraMG/status/40048632928258
[2]
http://pic.dhe.ibm.com/infocenter/wsdatap/v6r0m0/index.jsp?topic=%2Fcom.ibm.dp.xb.doc%2Fjson_jsonxconversionexample.html
Simply. Awesome.
Hi Mark,
On Sun, Nov 10, 2013 at 10:10 PM, Mark Deibert mark.deib...@gmail.com wrote:
Each comment is normally a very small amount of information, and id,
userName, a date and a small text field. Probably no more than a short
sentence on average. Why do I need to go through the trouble of
Hi Ashraf,
Your best bet is to use document update functions written by you that will
fill this field for you:
http://docs.couchdb.org/en/latest/ddocs.html#update-functions
http://wiki.apache.org/couchdb/Document_Update_Handlers
When posting/putting a new document, it means you have to post/put
Hi Ashraf,
Right, so to use this functionality you should set up your update document
function to add a date field (you can get now time if this is good
enough) and your mail app should POST/PUT the document to the update
document url (examples in the links I sent). The exact format you save
the list function (rewrite, mod_rewrite, etc.).
Cheers,
Mike
On Tue, Sep 24, 2013 at 10:28 AM, Thorsten Scherler scher...@gmail.comwrote:
On 09/23/2013 06:50 PM, Mike Marino wrote:
Hi Thorsten,
I believe you're asking how to implement read/write permissions on a
database, but I'm a little
Hi Thorsten,
I believe you're asking how to implement read/write permissions on a
database, but I'm a little bit confused by your subject. If this is so,
the normal way is to use validate_doc_update functions in a design
document, e.g.:
Hi Rana,
It looks like your problem is mainly in using cocoa. As a general
suggestion, we have been very successful using yajl-objc to parse/deal with
json.
As a more particular set of suggestions, I would:
1. Boil down your problem to the most basic issue that you don't
understand. In your
I've seen some reasonably good performance gains writing the views in
erlang instead of javascript (5-10 times faster), I suspect this must
depend strongly on what's being done though in the view calculation.
One thing that might be important to consider is the amount of time it
takes to develop
Yes, there's a heartbeat process that restarts the server if it dies (or is
killed). Try
ps -ef | grep couch
and you should see the heartbeat process.
Cheers,
Mike
On Fri, Aug 9, 2013 at 12:37 PM, Andrey Kuprianov
andrey.koupria...@gmail.com wrote:
I tried killing beam, but it was
Hi all,
I was looking for a clean way to auto-update views (e.g. after a certain
number of document inserts) while avoiding running cron jobs. I chose to
use an os_daemon script since this ties the daemon explicitly to couch,
meaning I can stop and start couch and ensure that this script starts
notification examples?
http://wiki.apache.org/couchdb/Example%20usages%20of%20DbUpdateNotification
Python version is not very clean, but the idea is the same.
--
,,,^..^,,,
On Wed, Jul 31, 2013 at 4:10 PM, Mike Marino mmar...@gmail.com wrote:
Hi all,
I was looking for a clean way
74 matches
Mail list logo