Re: CouchOne + Membase = Couchbase

2011-02-07 Thread Dirkjan Ochtman
Congratulations to all of you! On Tue, Feb 8, 2011 at 07:41, Jan Lehnardt wrote: > Instead of dwelling on the merger or technology, I'd like to address likely > questions about the relationship between Couchbase and Apache CouchDB. It is > simple, really: at CouchOne we were 100% committed on t

Re: Native List Functions with CouchDB

2011-02-07 Thread Oleg Krevosheev
Here's how I did. { "_id": "_design / test", "_rev": "1931-98f79c92675e9541e448a62377dcc067 ", "language": "erlang", "views": { "vtest": { "map": "fun ({Doc}) -> \ n Key = proplists: get_value (<<\" key \ ">>, Doc, null), \ n Val = proplists: get_value (<<\" va

Re: CouchOne + Membase = Couchbase

2011-02-07 Thread Marcos Oliveira
Jan, Congratulations to you all. We've being using CouchDB in our app since 2009 and I'm expecting good things happening from this merge. []'s Marcos On Mon, Feb 7, 2011 at 10:41 PM, Jan Lehnardt wrote: > Dear CouchDB folks, developers, users, > > I don't usually post business-y things here, b

CouchOne + Membase = Couchbase

2011-02-07 Thread Jan Lehnardt
Dear CouchDB folks, developers, users, I don't usually post business-y things here, but I think this one warrants an email. I'm excited to announce that CouchOne, the company Damien, J Chris and I founded in late 2009, is merging with the company Membase to become Couchbase. Together we will b

Odd replication failures on 0.11

2011-02-07 Thread Patrick Barnes
I have been getting this error when I try to replicate databases: Replication failed: {bad_term,{couch_rep_reader,'-open_doc_revs/3-fun-1-', [{[{<<"error">>,<<"unauthorized">>}, {<<"reason">>, <<"You are no

Re: Native List Functions with CouchDB

2011-02-07 Thread Zachary Zolton
http://tisba.github.com/2010/11/25/native-list-functions-with-couchdb.html On Mon, Feb 7, 2011 at 8:50 AM, Oleg Krevosheev wrote: > Need examples. A function for a list of what and how many arguments. Found > an example where fun (Head, {Req}) is right? Sorry for my English. >

Re: Atomic update of multiple attachments?

2011-02-07 Thread Robert Johnson
Wayne I think we can achieve what you need. Its midnight in the UK so I will think on it & get back to you tomorrow. Bob Wayne Conrad wrote: >Bob, One of my needs is that requestors can get the most recent >"complete" set of attachments, even while a new set is being assembled. > I've no s

Re: Atomic update of multiple attachments?

2011-02-07 Thread Robert Newson
There's also the multipart/related upload api (though undocumented, I think). you can send a doc and 0, 1, or many attachments in a single PUT call. On Mon, Feb 7, 2011 at 11:38 PM, Robert Johnson wrote: > > Create your document with attributes "eventual_attachment _count" (set this > to the exp

Re: Atomic update of multiple attachments?

2011-02-07 Thread Robert Newson
You could also use the COPY feature. :) On Mon, Feb 7, 2011 at 11:59 PM, Wayne Conrad wrote: > Bob, One of my needs is that requestors can get the most recent "complete" > set of attachments, even while a new set is being assembled.  I've no sense > of what it takes to work with previous version

Re: Atomic update of multiple attachments?

2011-02-07 Thread Randall Leeds
If your attachments are small enough that you can use the inline attachment API I think you could update them all at once. http://wiki.apache.org/couchdb/HTTP_Document_API#Inline_Attachments On Mon, Feb 7, 2011 at 15:59, Wayne Conrad wrote: > Bob, One of my needs is that requestors can get the m

Re: Atomic update of multiple attachments?

2011-02-07 Thread Wayne Conrad
Bob, One of my needs is that requestors can get the most recent "complete" set of attachments, even while a new set is being assembled. I've no sense of what it takes to work with previous version of a document, esp. since (as I understand it) replication doesn't transfer old revisions of docu

Re: Atomic update of multiple attachments?

2011-02-07 Thread Robert Johnson
Create your document with attributes "eventual_attachment _count" (set this to the expected count) and "attachment_count_so_far" (set this to zero). As you add each attachment, increment "attachment_count_so_far" Create a view which only emits when "attachment_count_so_far" = "eventual_attachm

Re: Atomic update of multiple attachments?

2011-02-07 Thread Robert Johnson
Create your document with attributes "eventual_attachment _count" (set this to the expected count) and "attachment_count_so_far" (set this to zero). As you add each attachment, increment "attachment_count_so_far" Create a view which only emits when "attachment_count_so_far" = "eventual_attach

Re: new couch user: "denormalizing" using views? General application architecture suggestions?

2011-02-07 Thread Robert Johnson
Michael Couch is very different from a RDBMS. From what you have said, I think that you want to load your CouchDB "one document at a time" as users access them in a browser session. Before loading anything you first need to design your documents. To do this you need to define the data in your

Atomic update of multiple attachments?

2011-02-07 Thread Wayne Conrad
Is there anything I can do to achieve the illusion of atomic update of a set of attachments? Here's the effect I'd like: For create: 1. Create a document. 2. Add attachments to it. 3. Only now does the document and all of its attachments become visible. For update: 1. Delete all of the documen

Native List Functions with CouchDB

2011-02-07 Thread Oleg Krevosheev
Need examples. A function for a list of what and how many arguments. Found an example where fun (Head, {Req}) is right? Sorry for my English.

Re: new couch user: "denormalizing" using views? General application architecture suggestions?

2011-02-07 Thread Michael Kohout
I'd rather not do it via batch because I'd like the system to be interactive (via a browser). And depending on all this processing to occur outside this subsystem seems less robust. And to touch on your point, this is a pretty big database and exporting like that would make some unhappy dbas. I'

Re: Official Windows binaries for 1.0.2?

2011-02-07 Thread Zdravko Gligic
Nikola, Could you and/or others please post the links to where the various binaries and/or corresponding installers are kept. There seem to be several that I am not even aware of. Thanks again, Zdravko (#teslan)

Re: new couch user: "denormalizing" using views? General application architecture suggestions?

2011-02-07 Thread Dirkjan Ochtman
On Mon, Feb 7, 2011 at 18:14, Michael Kohout wrote: > What does the couch community think of this?  Is there some other pattern > that might result in a simpler system? Simple system: use SQL JOINs to fetch all the data for each document you want in CouchDB, then batch-load those into CouchDB (pe

new couch user: "denormalizing" using views? General application architecture suggestions?

2011-02-07 Thread Michael Kohout
Hi All- So, I'm doing a spike on what it would take to convert a portion of an existing rdbms-backed system to something that uses couch instead. I'm also pretty green with couch. Because this would be a conversion from a relational system, the way I envision the system working is that it will t

Official Windows binaries for 1.0.2?

2011-02-07 Thread Nikolai Teofilov
The wiki link point to "current version" 1.0.1 and simultaneously to "old version" 1.0.1? Any progress on the official beta installer for 1.0.2? No snapshots since Feb. 2010?

Re: Replication and security advice sought

2011-02-07 Thread Christian Polzer
Yes, I was just writing an answer when the vpn suggestion came up. I think using Tink would be a nice approach: http://tinc-vpn.org/ You can also build a meshed VPN with tink, so you get failover as well. Tink does automatically restart, the virtual nics can be bridged to inside networks if n

Re: Replication and security advice sought

2011-02-07 Thread Dirkjan Ochtman
On Mon, Feb 7, 2011 at 16:44, Robert Johnson wrote: > Advice and guidance would be very gratefully received, but please bear in > mind that whilst I am a pretty good application developer, my networking > knowledge generally and proxy / firewall knowledge specifically is limited to > principals

Replication and security advice sought

2011-02-07 Thread Robert Johnson
Hello I am creating an application in which individual Company sites input data into individual CouchDB databases running on site specific servers which is then replicated to a single central system at head office (running on a separate server). The central system holds configuration data for e

Re: Unable to POST

2011-02-07 Thread Stefan Matheis
Chris, why not just send a PUT-Request with Ext? method: 'PUT' or sth like that, should do the Trick Regards Stefan On Mon, Feb 7, 2011 at 2:33 AM, Chris Johnson wrote: > I am testing Ext JS running on couch for some of the widgets. I am running > through some of the examples in Ext in Action,