Re: hide _id

2010-10-12 Thread Michael Zedeler
On 2010-10-12 14:49, Deistl Ross wrote: Is there a way to hide the record _id in a response? As far as I can determine, the record id is always included in a query response. I would have to have the response to a query only show the items requested in the emit, which may or may not include

Re: how to count the number of unique values

2010-10-12 Thread Michael Zedeler
On 2010-10-12 15:09, Anand Chitipothu wrote: Is it possible to count the number of unique values by writing a couchdb view? Consider the following 2 docs. { _id: posts/1, title: post 1, tags: [foo, bar] } { _id: posts/2, title: post 2, tags: [foo, foobar] } Is

Re: Unable to delete empty key document

2010-10-21 Thread Michael Zedeler
On 2010-10-21 12:03, Alex Ivasyuv wrote: I found an issue? in Futon, when there exist an record with empty key (), it's unable to delete it. Record looks like: {rev: 1-8d76c8a85c9ad91083a200bf86e64c6a} But from command like when you try to delete it, it'll delete entire your db!

Multi-dimensional queries?

2010-11-08 Thread Michael Zedeler
Hi CouchDB-users (and developers). Thanks for a great product and very useful discussions on the mailing list. Does anyone know if there has been an effort into making multi-dimensional queries possible? Given a d-dimensional keyspace, I'd like to be able to get all elements in a

Re: error message in log

2010-11-09 Thread Michael Zedeler
On 2010-11-09 11:23, Marco Monteiro wrote: I'm seeing lots of messages like the following one in the logs [Tue, 09 Nov 2010 10:19:17 GMT] [error] [0.20.0] {error_report,0.9.0, {0.20.0,std_error, File operation error: eacces. Target: ./erl_internal.beam. Function:

Force update of index?

2010-11-16 Thread Michael Zedeler
Hi everybody. I know I have taken a wrong turn somewhere earlier when I designed my schema, but... I need a way to force CouchDB to regenerate an index because it is date dependent (bummer!). Isn't there some URL I can GET in order to tell CouchDB to regenerate a specific view? Regards,

CouchDB on debian?

2010-11-22 Thread Michael Zedeler
Hi everybody. I am having a major headache trying to install the latest CouchDB (1.0.1) on debian 5.0. It turns out that the latest available version of CouchDB on debian is version 0.8. In CouchDB-terms that release is lightyears behind version 1.0.1. We simply can't use version 0.8

A possible approach for constructing trees of documents optimized for fast querying

2010-11-30 Thread Michael Zedeler
Hi everybody. I have come up with a way to create a tree where each node is a document in CouchDB. The tree is ordered. Maybe someone on the list tried something similar and could comment on the approach. For others, this could inspire a new way of using CouchDB. The performance features

Re: Suggestions for View Keys

2010-12-07 Thread Michael Zedeler
On 2010-12-07 03:55, Anand Chitipothu wrote: 2010/12/7 King Huangkchu...@ucalgary.ca: I have a view whose view keys are currently of the following form: [k, x, y, z] [k, x, y, 0] [k, x, 0, z] [k, x, 0, 0] [k, 0, y, z] [k, 0, y, 0] [k, 0, 0, z] [k, 0, 0, 0] There are multiple values for k, x,

Re: [somewhat off-topic] Any good perl modules for consuming CouchDB? Having trouble with Perl's CouchDB::Client

2011-04-01 Thread Michael Zedeler
Hi all. On 2011-04-01 09:19, Paul Hirst wrote: So far I've found CouchDB::Client to be the best module for Perl. Net::CouchDB seems to have disappeared and AnyEvent::CouchDB didn't work for me (threw errors in the AnyEvent::HTTP module) and might be a paradigm you don't want to use. If you

Re: Encrypting attachments

2011-04-13 Thread Michael Zedeler
On 2011-04-12 21:51, Travis Jensen wrote: On Apr 12, 2011, at 11:41 AM, Benoit Chesneaubchesn...@gmail.com wrote: On Tue, Apr 12, 2011 at 7:33 PM, Travis Jensentravis.jen...@gmail.com wrote: If I wanted to encrypt all attachments, where would I go about hooking in to couch? I'm guessing I

Re: Patching MultiView to CouchDB 1.1

2011-07-31 Thread Michael Zedeler
Hi Behrad. On 2011-07-31 08:35, Behrad Zari wrote: We were using Norman's multiview patched into couchdb in production. Since Norman has moved multiview to a forked version from couchdb trunk recently we were unable to use multiview alongside Couchdb 1.1 Anyone trying to do that!? I've been

Re: Fetching Attachment Containing Image

2011-10-10 Thread Michael Zedeler
through your code without any modifications. -- Michael Zedeler 70 25 19 99 | LinkedIn http://dk.linkedin.com/in/mzedeler | Twitter http://twitter.com/#%21/mzedeler | Github https://github.com/mzedeler

Re: Update the document without current version

2011-10-13 Thread Michael Zedeler
version… Did you look at CouchDB document update handlers? -- Michael Zedeler 70 25 19 99 | LinkedIn http://dk.linkedin.com/in/mzedeler | Twitter http://twitter.com/#%21/mzedeler | Github https://github.com/mzedeler

Re: unique constraint in couchdb

2011-10-23 Thread Michael Zedeler
reduce function? -- Michael Zedeler 70 25 19 99 | LinkedIn http://dk.linkedin.com/in/mzedeler | Twitter http://twitter.com/#%21/mzedeler | Github https://github.com/mzedeler

Re: Modeling a tree in couchdb.

2012-01-03 Thread Michael Zedeler
as a list of ids, but it is very maintenance heavy and in some scenarios it doesn't perform well. To alleviate those problems, we have collapsed whole trees into single document, which - obviously - won't scale indefinately. -- Michael Zedeler 70 25 19 99 | LinkedIn http://dk.linkedin.com/in/mzedeler

Re: couch has docs!

2012-09-27 Thread Michael Zedeler.
Hi Dave, Dirkjan, Alexander, Jan and Noah. Great job! Thanks! Regards, Michael. On 2012-09-26 23:02, Dave Cottlehuber wrote: Hi, After much hand-wringing gnashing of teeth, we now have a /docs/ branch in git[1], [2], and available online [3]. A huge thank-you to Dirkjan Ochtman, Alexander

Re: Sorting dates in CouchDB

2012-10-08 Thread Michael Zedeler.
On 2012-10-08 11:58, Carl Bourne wrote: Aurélien, You can do that, but be aware that you're comparing strings of different lengths. One consequence is that you won't get timestamps from 2012-12-02. I just checked some of my data and all of the stored strings are of the same length. Am I

Re: how do u handle schema changes ?

2012-11-02 Thread Michael Zedeler
i know it may sound self-contradictory for couchdb being schemaless .. Yes, but nevertheless, we have the same issue. but documents that go into it do have structure/schema. And once that changes - simplest example being renaming of some field - what's the recipe? Our recipe is a small

Re: Refactoring a CouchDB.

2013-01-20 Thread Michael Zedeler.
Hi Dave. I find this discussion very interesting - I have a few questions regarding complexity. On 2013-01-17 14:32, Dave Cottlehuber wrote: The main constraint is that replication filters need to be run per document, per replication. So N replications requires N passes through all the

Re: CouchDB not reachable (beginner's question)

2013-04-15 Thread Michael Zedeler.
Hi Keith and others. First off, I'd prefer to read discussions on this list based on facts and not just wow. You may have a point, but it's not a very nice welcome to Tim who is writing in with a beginners question (his own wording - not mine). Second, I'd like to pick up your comment on

CouchDB handling extreme loads

2013-04-29 Thread Michael Zedeler.
Hi. I have found a way to write a backup script using an event driven environment. For starters, I have just used the naïve approach to get all document ids and then fetch one at a time. This works on small databases, but for obvious reasons, the load becomes too big on larger databases,

Re: CouchDB handling extreme loads

2013-04-29 Thread Michael Zedeler.
/dbname/_changes?include_docs=true. Reading _all_docs and then fetching each document should work fine, it'll just be much slower (and non-incremental, you'll have to start from scratch every time you backup). Does your log include any crash information? B. On 29 April 2013 11:05, Michael Zedeler

Re: CouchDB handling extreme loads

2013-04-29 Thread Michael Zedeler.
Hi Robert. (Again.) The cause has been found: the server ran out of memory due to a memory leak in my script. Regards, Michael. On 2013-04-29 23:17, Michael Zedeler. wrote: Hi Robert. Thanks for the suggestion to use the changes feed in order to do incremental backups. Haven't got any

Re: which is the good server to support CouchDB

2013-05-20 Thread Michael Zedeler.
Hi all. Maybe someone with admin rights can unsubscribe Ashraf? Regards, Michael. On 2013-05-19 17:52, Ashraf Janan wrote: Hello my friends,please help me and answer to my issue? I want to build first a web site which uses http request with CouchDB.when iam finished with this steg then i

Re: Which interface/library is better for couchDB

2014-03-04 Thread Michael Zedeler.
, Michael. -- Michael Zedeler 70 25 19 99 mich...@zedeler.dk mailto:mich...@zedeler.dk dk.linkedin.com/in/mzedeler http://dk.linkedin.com/in/mzedeler/ | twitter.com/mzedeler https://twitter.com/mzedeler | github.com/mzedeler https://github.com/mzedeler/

Re: URGENT HELP!

2014-11-06 Thread Michael Zedeler.
but the response says invalid json. I need to finish this as soon as possible. Please help! Thanks a ton! Regards Siddharth Khialani -- Michael Zedeler 70 25 19 99 mich...@zedeler.dk mailto:mich...@zedeler.dk dk.linkedin.com/in/mzedeler http://dk.linkedin.com/in/mzedeler/ | twitter.com/mzedeler

Re: Using CouchDB as a file system server side

2016-06-21 Thread Michael Zedeler
w unwieldy it can become, imagine replacing the CouchDB component with a tar.gz-server that can read and write to a single tar.gz-archive. You really don't gain anything apart from having bottlenecks in odd places. Regards, Michael. -- Michael Zedeler 70 25 19 99 mich...@zedeler.dk dk.li

RE: Can I run couchdb instance without installing?

2016-08-13 Thread Michael Zedeler
You can run it in a docker container. --  Michael Zedeler 70 25 19 99 mich...@zedeler.dk dk.linkedin.com/in/mzedeler |twitter.com/mzedeler | github.com/mzedeler Cihad Guzel wrote >Hi > >I want to use couchdb for my project testing. So I want to embed cocuhdb in >my pro

Re: Perl and bad characters

2018-04-07 Thread Michael Zedeler
acters that are not being encoded correctly. If anyone has any ideas and/or advice on how to deal with this I’d sure appreciate them. I’ve pretty much ran out of them at this point. Kindest Regards, Bill Stephenson -- Michael Zedeler 70 25 19 99 mich...@zedeler.dk dk.linkedin.com/in/mzedeler | twitter.com/mzedeler | github.com/mzedeler