Re: stuck replication

2014-12-28 Thread Cory Zue
ave a chance to inspect it. > Also, you try to start another replication since the update_seq of the > last replicated document to see if anything will happens. > -- > ,,,^..^,,, > > > On Sun, Dec 28, 2014 at 9:53 PM, Cory Zue wrote: > > Hey, > > > > We

stuck replication

2014-12-28 Thread Cory Zue
Hey, We're trying to replicate a legacy Couch 1.2.1 database onto a cloudant database, but it keeps getting stuck. We are initiating the replication on our server, and setting the target to our cloudant DB. However, it is not checkpointing at all and appears to be getting stuck after about 1.6 mil

Re: understanding couchdb errors

2014-12-23 Thread Cory Zue
trace it's hard to say, but > badmatch/function_clause commonly is about unhandled case in code. > According your CouchDB version the very first advice is to upgrade it > up to the latest stable release since alot of things had been fixed > since 1.2.1 day. Security ones are too. > --

understanding couchdb errors

2014-12-22 Thread Cory Zue
Hi all, We recently had an accident and lost our database and had to restore from a daily backup. Since restoring, couchdb has seemed to work ok for the most part, but has been giving strange, hard-to-reproduce errors that seem somewhat random. I've pasted a few examples below. We have reason to

Re: healthcare projects running on couched?

2014-03-24 Thread Cory Zue
CommCare's backend is built on couchdb: http://www.commcarehq.org/home/ On Mon, Mar 24, 2014 at 10:35 AM, Alexander Shorin wrote: > The one I know is http://medicmobile.org/2013/06/25/announcing-kujua/ > > As for my experience: I developed LIS frontend system on CouchDB and > could say that it'

saving attachments with a name that starts with an underscore

2013-04-03 Thread Cory Zue
I'm trying to save an attachment to a couch doc that starts with an underscore (e.g. "_myfile.txt") and i'm getting rejected with "[Errno 104] Connection reset by peer". Is this a known limitation of couch or a bug in my client library (couchdbkit)? thanks, Cory

Change in date handling from 1.0.x to 1.2

2012-09-17 Thread Cory Zue
Hi, We're in the process of migrating our app from couch 1.0 to 1.2. Seeing different behavior in this view function though, which is giving us some trouble. https://github.com/dimagi/core-hq/blob/master/corehq/couchapps/formtrends/views/form_time_by_user/map.js It looks like it works as designe

couchdb frequently crashing

2012-07-10 Thread Cory Zue
Hi all, I'm seeing some odd behavior in my couchdb for a production site. Couch seems to be (fairly) frequently and unpredictably crashing, and then restarting and recovering itself. This will happen sporadically and frequently for periods of time, and then it remains quiet and functional for long

why is couch stealing all my resources?

2012-05-21 Thread Cory Zue
Hi folks, I have a production app deployed on couchdb and it's been going great for a while. However recently it has started to hog lots of the CPU cycles on our machine. Also, view rebuilds seem to be happening at a crawl (maybe just because the machine is taxed). We're on couch 1.0.1. The datab

Re: CouchDB to mySQL

2012-02-16 Thread Cory Zue
2012/2/16 Peter D Lubambi > Hi all, > Has anyone done something on porting couchDB schema to mySQL. if there is > any links you can direct me to, that will be very helpful. > Hey Peter, I wrote a blog about doing this using the django ORM and the _changes feed a while back. Perhaps it will be u

Re: CouchDB - Open Document Format mega storage

2011-11-09 Thread Cory Zue
2011/11/9 Cory Zue > 2011/11/9 Маркевич Александр > >> So there are some variants of solutions: >> >> 1. Store doc in attachments as is. Can I have full text search on the >> content of docs? >> 2. Unzip and extract all XML files wich odt consists, convert t

Re: CouchDB - Open Document Format mega storage

2011-11-09 Thread Cory Zue
2011/11/9 Маркевич Александр > So there are some variants of solutions: > > 1. Store doc in attachments as is. Can I have full text search on the > content of docs? > 2. Unzip and extract all XML files wich odt consists, convert to JSON and > save all items of docs in DB, but also setup update ha

Re: Health care software utilizing CouchDB

2011-11-01 Thread Cory Zue
is up > to HIPAA/HITECH spec was confusing for someone running a small business > targeting a niche market of mostly solo practitioners. > > > On 10/31/2011 02:43 PM, Cory Zue wrote: >> >> My organization supports many healthcare applications on CouchDB >> including multi

Re: Health care software utilizing CouchDB

2011-10-31 Thread Cory Zue
My organization supports many healthcare applications on CouchDB including multiple that are HIPAA compliant. We store our entire database on an encrypted volume and setup ssh-tunnels for encrypted replication. We have found that the schemalessness of couch is a big win when dealing with health pro

Re: Replication Question

2011-10-03 Thread Cory Zue
On Mon, Oct 3, 2011 at 12:10 PM, Filipe David Manana wrote: > On Mon, Oct 3, 2011 at 9:02 AM, Kismat Sood > wrote: > > Thank you for the link. Setting it up looks simple, but I can't tell if > data is compressed when it is sent over the network during replication. Any > idea where I could find th

parallel instances on windows

2011-06-19 Thread Cory Zue
Hey foks, I'd like to migrate my application from 1.0.2 to 1.1, but unfortunately I'm using a windows dev environment. Is there any way to run parallel installations of couch on different ports on windows? thanks, Cory

Re: How best to workaround time filtering + aggregation

2011-06-16 Thread Cory Zue
Hi Aroj, Welcome to my least favorite thing in couch! If you anticipate high volumes of data I'd rule out (1). Likewise list functions (2), I don't think will help you unless I misunderstand how they work. You're still going to have to load all that data into the list function which I doubt saves

Re: Debian package

2011-04-26 Thread Cory Zue
On Tue, Apr 26, 2011 at 11:59 AM, Jens Rantil wrote: > Hi Mehdi, > > Thank you for you response. Sadly, compiling from source is not an option > for me, as I might want to role out to numerous machines automatically. > Therefor, a Debian package would be the optimal way to go. Couchdb packages pa

Re: CouchDB's advantages over MongoDB

2011-04-14 Thread Cory Zue
Master - Master replication On Thu, Apr 14, 2011 at 6:51 AM, Robert Newson wrote: > 'Unlimited document size" - Not true. > "Atomic Bulk Operations" -- Not in the sense you probably mean. > > B. > > 2011/4/14 Daniel Itaboraí : > > I'm trying to come up with some of CouchDB's advantages over Mongo

Re: Spontaneous view rebuild after view compaction?

2011-04-14 Thread Cory Zue
Hi Paul, I encountered a similar issue with my largest view, but it was rebuilding whenever couch restarted. I didn't tie it to compaction because in my app couch restarts more frequently then we compact, however it might have been the same problem. In the end, rewriting the view to make the footp

Re: couch restart triggers view rebuild

2011-04-08 Thread Cory Zue
poorly reducing view would not be able to have it's indices stored across couchdb restarts. On Sun, Apr 3, 2011 at 4:18 PM, Cory Zue wrote: > We have deployed couch in an environment that requires daily shutdowns of > the machine, which means couch is also restarting frequently. What we are

Re: continuous rep

2011-04-04 Thread Cory Zue
> What happens if I trigger cr more than ones (e.g. every day without testing > for already running cr) ? This will have no effect if the same cr task is already running. If you want to ensure continuous replication setup a cron job to restart the task every minute. Cory

couch restart triggers view rebuild

2011-04-03 Thread Cory Zue
We have deployed couch in an environment that requires daily shutdowns of the machine, which means couch is also restarting frequently. What we are observing is that couch seems to need to reindex our views every time it restarts itself. This is not the case for all design docs, but is for some of

Help with replxn over a bad connection

2011-03-21 Thread Cory Zue
Hi everyone, I'm having trouble pushing replication to completion over a very bad internet connection. Are there any configuration parameters I can tweak (e.g. more frequent checkpointing) to optimize couch replication for this type of environment? We are already sending traffic through a compress

Re: schema-driven data entry UI

2011-01-20 Thread Cory Zue
] http://en.wikipedia.org/wiki/XForms [2] https://github.com/dimagi/couchforms [3] https://github.com/dimagi/couchforms/blob/master/couchforms/_design/updates/xform.js [4] http://code.google.com/p/opendatakit/ -- Cory Zue http://www.dimagi.com On Thu, Jan 20, 2011 at 5:39 PM, Ernesto Freyre

Re: First doc in a group?

2010-11-11 Thread Cory Zue
You could emit the users as keys, and in your reduce function just return the latest by date. On Thu, Nov 11, 2010 at 4:35 PM, Mike Bannister wrote: > Yeah, I'm trying to get the latest document for each user in one query > rather than one query per user. > > On Thu, Nov 11, 2010 at 4:11 PM, Matt

Replxn and Deleting docs

2010-10-22 Thread Cory Zue
Note: I tried to find this information on the wiki here: http://wiki.apache.org/couchdb/Replication_and_conflicts, but I don't think it answers my question. Apologies if I just didn't read it carefully enough. Imagine I have two servers S1 and S2 each with a copy of a document D at rev R1. Can yo

Re: Slow filtered _changes feed

2010-10-20 Thread Cory Zue
sequence S (S = 0 the very first >> time) >> 2/ do I have N changes in the couchdb response ? if so repeat 1, setting S >> to the last seq number of the couchdb response. >> >> Regards, >> >> Mickael >> >> - Mail Original - >> De:

Re: Slow filtered _changes feed

2010-10-20 Thread Cory Zue
s only likely a problem when it is a long time between syncs I think it could work ok (definitely not ideal, though). Does this seem sane? > Cheers > Simon > > On 20 Oct 2010, at 03:44, Cory Zue wrote: > >> Howdy, >> >> I'm bringing up a problem I chatted a

Slow filtered _changes feed

2010-10-19 Thread Cory Zue
Howdy, I'm bringing up a problem I chatted about with a few folks with on IRC today but was unable to solve. My app is using the _changes feed to detect what updates need to go to particular clients (in this case cell phones) based on some filtered information the phones send up in the sync reque

under the hood of continuous rep.

2010-09-13 Thread Cory Zue
Hi there, I'm using couchdb to synchronize a bunch of distributed computers whose only internet connection is a flaky GPRS modem and a suspect EDGE network. I had thought that getting them to sync up would be as simple as firing off a continuous replication task and assuming that replication will

Re: Upgrade to 1.0 on Ubuntu 10.4

2010-08-17 Thread Cory Zue
On Mon, Aug 16, 2010 at 6:11 PM, Cory Zue wrote: > Hey, > > I had an Ubuntu machine running a couch 0.11 build from source. I just > tried upgrading to 1.0 using the super-convenient installer from couch.io( > http://www.couch.io/get#ubuntu). I didn't touch any of t

Re: Upgrade to 1.0 on Ubuntu 10.4

2010-08-16 Thread Cory Zue
e should this debugging be? I tried sticking it on the init.d script but it still just spits out: * Starting database server couchdb without actually running couchdb (or at least all of it). > On 16 Aug 2010, at 20:34, Cory Zue wrote: > > > On Mon, Aug 16, 2010 at 9:30 PM, Noah S

Re: Upgrade to 1.0 on Ubuntu 10.4

2010-08-16 Thread Cory Zue
On Mon, Aug 16, 2010 at 9:30 PM, Noah Slater wrote: > Add +x to the hashbang, and run it again. Sorry, not sure what you mean by the hashbang? Both /bin/couchdb and etc/init.d/couchdb are executable for everyone.

Re: Upgrade to 1.0 on Ubuntu 10.4

2010-08-16 Thread Cory Zue
n Mon, Aug 16, 2010 at 7:13 PM, km wrote: > ubuntu by default uses 0.10.x for its desktop operations on 5984, probably > its occupied. So > try changing the listening port to something else like 5985 > and restart > KM > On Mon, Aug 16, 2010 at 9:41 PM, Cory Zue wrote: > > &

Upgrade to 1.0 on Ubuntu 10.4

2010-08-16 Thread Cory Zue
Hey, I had an Ubuntu machine running a couch 0.11 build from source. I just tried upgrading to 1.0 using the super-convenient installer from couch.io ( http://www.couch.io/get#ubuntu). I didn't touch any of the defaults during installation. Couch seems perfectly happy when i start it from /opt

Re: Reporting in CouchDB

2010-07-27 Thread Cory Zue
On Tue, Jul 27, 2010 at 10:22 AM, Luke Driscoll wrote: > If I understand what you're saying, I think you could make your key: > [siteid, year, month, day] > > Then when you call reduce you could set the group_level to 1, 2, 3 or 4, to > granulate by siteid, year, month and day respectively Brilli

Reporting in CouchDB

2010-07-27 Thread Cory Zue
I need to write some reports on top of the data in my couch db application. My use case is a central database monitoring the data coming in from a bunch of satellite sites, and they want to generate aggregate reports on the data by site and by date range. My current plan is to use a view with a c

Re: Why updates PUT only

2010-07-27 Thread Cory Zue
They work fine with POST too, I think the documentation on the wiki is just out of date. On Tue, Jul 27, 2010 at 5:55 AM, Alux wrote: > Hello, > > I just learned about update handler - really like them! > > But why are they only usable with the PUT verb? That means they cannot be > used with HTM

Re: doc coming back null even if include_docs specified

2010-07-21 Thread Cory Zue
Introduction_to_CouchDB_views#Keys_and_values > (Search for "Linked Document" on that page...) > > I'm guessing there isn't another document in the database with the ID > "efg", right? > > On Wed, Jul 21, 2010 at 5:25 PM, Cory Zue wrote: >> I have a stran

doc coming back null even if include_docs specified

2010-07-21 Thread Cory Zue
I have a strange problem that I *think* is a bug in couchdb. I have a document with a child property, that itself has an _id field: { _id : "abc", child: { _id: "efg", somethingelse: 5 } } then I have a view that's emitting the children as objects: function (doc) { if (doc.child)

Re: [ANNOUNCE] Apache CouchDB 1.0.0 has been released

2010-07-14 Thread Cory Zue
Congrats everyone! Does this mean we can expect an Ubuntu package distro sometime in the near future? :) Cory On Wed, Jul 14, 2010 at 9:21 AM, Simon Metson wrote: > +1 - w00t! > > On 14 Jul 2010, at 14:05, Niket Patel wrote: > >> Big milestone, congratulations everyone. >> >> On 14-Jul-2010, at

Re: Problems inserting XML document into CouchDB 0.10.2 on CentOS 5.4

2010-07-05 Thread Cory Zue
I also had to store xml documents in couch, and I accomplished this by modifying an xml to json library to support e4x (the xml parser that comes with couch) and using an update handler. I thought you might find it useful: http://gist.github.com/464483 Cory On Sun, Jul 4, 2010 at 4:49 AM, Nils

Uninstalling Couch .11 On Ubuntu 10

2010-07-02 Thread Cory Zue
Hi, Is there an easy way to uninstall couch on Ubuntu after building and installing from source? I believe I've corrupted my local installation and want to start over from scratch. thanks, Cory

Fuzzy Search

2010-06-24 Thread Cory Zue
Hi again, Is there any mechanism in couchdb to do fuzzy search? In my application I would like to be able to search for a person by name, but want to accommodate typos, misspellings, etc. Is there anything like this built into couch? Is this something that couchdb-lucene (which I know very littl

Replication Chatter / Recovery

2010-06-24 Thread Cory Zue
Hi there, My team is designing a distributed health data capture system to be used in rural Africa, and we are planning to use CouchDB as a back end for it's excellent replication features. One concern I had was how the replication would perform over a very unreliable internet connection. Is rep

Re: Couchdb 0.11 and Ubuntu 10.04

2010-06-17 Thread Cory Zue
On Thu, Jun 17, 2010 at 11:47 AM, Francesco Mazzoli wrote: > Hi, > I have just installed couchdb 0.11 on ubuntu 10.04 following the wiki > instructions ( http://wiki.apache.org/couchdb/Installing_on_Ubuntu ). > It compiles fine, and it seems to work - I can get elements with the > id - but when I

Logging

2010-05-24 Thread Cory Zue
Is there an easy way to log something from within a couchdb view/filter/update method? thanks, Cory

Re: _update, XML, and POST

2010-05-14 Thread Cory Zue
On Fri, May 14, 2010 at 12:40 PM, Nils Breunese wrote: > Cory Zue wrote: > > Actually I'm not really surprised, since XML is a more complex data > format than JSON, so there is no true 1-to-1 mapping. Consider XML > attributes and elements for instance. Initially you might thi

_update, XML, and POST

2010-05-14 Thread Cory Zue
Hi folks, I am prototyping an app to receive an XML POST and convert the data to a couch object. Based on what I've read so far it seems like the _update method is designed to let you do exactly this. However, I have some questions (note that I haven't tried any of this yet, am just basing my in

version history

2010-05-13 Thread Cory Zue
Hi CouchDBers, I'm attempting to use CouchDB for a system that requires full auditing of all data operations. Because of its built in revision-tracking, couch seemed like an ideal choice. But then I read in the O'Reilly textbook that "CouchDB does not guarantee that older versions are kept around.