Re: Adding vs replicating documents

2012-06-08 Thread Jens Alfke
On Jun 7, 2012, at 8:12 PM, Luca Matteis wrote: > Ok basically I have a program that runs on my local computer that > generates data that I want to insert/modify to my Couch instance. So > my local data should be in synch with my cloud data... but i can't > install CouchDB locally... so how do I

Re: Adding vs replicating documents

2012-06-08 Thread Tim Tisdall
I was going to suggest something like this too. However, if you have access to the script, you could alter it to record in a separate file which documents have been altered and then write another script to only send those docs to the couchdb server. (This is essentially duplicating what the couch

Re: Adding vs replicating documents

2012-06-08 Thread Dave Cottlehuber
On 8 June 2012 06:26, Luca Matteis wrote: > Ok, say I install a local Couch that I upload my 1gb of data to. > Whenever a change is made to a JSON document in my file, my routine > will still have to go through all the records and update my local > Couch, which would result in the entire DB updat

Re: Adding vs replicating documents

2012-06-07 Thread Luca Matteis
Ok, say I install a local Couch that I upload my 1gb of data to. Whenever a change is made to a JSON document in my file, my routine will still have to go through all the records and update my local Couch, which would result in the entire DB updating, therefore the replication would need to transfe

Re: Adding vs replicating documents

2012-06-07 Thread Mark Hahn
> so how do I keep it in synch with my hosted Couch instance The obvious solution is to either manually use futon or to have a local copy of couchdb and use the built-in replication. So your program on your local computer could either generate data you could manually update or it could update y

Re: Adding vs replicating documents

2012-06-07 Thread Luca Matteis
Because my JSON file is generated programmatically. Ok basically I have a program that runs on my local computer that generates data that I want to insert/modify to my Couch instance. So my local data should be in synch with my cloud data... but i can't install CouchDB locally... so how do I keep

Re: Adding vs replicating documents

2012-06-07 Thread Luca Matteis
Because my JSON file is generated programmatically. Ok basically I have a program that runs on my local computer that generates data that I want to insert/modify to my Couch instance. So my local data should be in synch with my cloud data... but i can't install CouchDB locally... so how do I keep

Re: Adding vs replicating documents

2012-06-07 Thread Mark Hahn
> I can't use futon. Why not?

Re: Adding vs replicating documents

2012-06-07 Thread Luca Matteis
On Fri, Jun 8, 2012 at 4:35 AM, Simon Metson wrote: > Hi, > Can't your program write to a local CouchDB instance instead of a file? Right, the thing is that I can't install CouchDB on my local computer. That's why I'm wondering if there's a simpler solution, but probably not, right?

Re: Adding vs replicating documents

2012-06-07 Thread Simon Metson
Hi, Can't your program write to a local CouchDB instance instead of a file? Cheers Simon On Friday, 8 June 2012 at 03:31, Luca Matteis wrote: > I use my own IDs which are stored in the JSON file. I can't use futon. > I'm stuck with this JSON file (which is generated programmatically > btw). I

Re: Adding vs replicating documents

2012-06-07 Thread Luca Matteis
I use my own IDs which are stored in the JSON file. I can't use futon. I'm stuck with this JSON file (which is generated programmatically btw). I was just wondering if there was an easy way to use the replication API and check if this JSON file has changes, and upload only those, instead of re-uplo

Re: Adding vs replicating documents

2012-06-07 Thread Mark Hahn
You can't update a document unless you have the id. Do you have a view set up to find what you want? If so pull them up and edit them in futon. Usually one would edit the docs in the db directly using futon, not change the original data. On Thu, Jun 7, 2012 at 6:35 PM, Luca Matteis wrote: > I

Adding vs replicating documents

2012-06-07 Thread Luca Matteis
I have a file that contains lots of JSON documents - probably around 1gb of data. I uploaded this file to my server's Couch instance (on the cloud) using the Bulk API. Now I need to re-upload it because I've made some changes to the file - I've added some documents, deleted some, and edited a few.