Re: Re: Re: Allow clients to provide revId

2016-10-20 Thread Giovanni P
On Thu, Oct 20, 2016 at 11:52 AM, Jonas Weber wrote: > Hi Robert, > > it's documented a little bit better here: http://docs.couchdb.org/en/2. > 0.0/replication/protocol.html#upload-batch-of-changed-documents In > essence, you have to supply the _revisions array always. > > Are

Re: Good way to fetch multiple documents

2016-09-15 Thread Giovanni P
I don't understand how documents in a view should be fetched "since" some sequence, do you mean "last changed documents that appear in this view"? Two stupid suggestions just to get the explanations: 1. fetch _changes with a filter function filtering for type0 documents 2. in the view map

Re: [NEWS] The CouchDB weekly news for September 8 is out!

2016-09-08 Thread Giovanni P
So no mention of the excellent http://lesorub.pro/how-it-works ? On Thu, Sep 8, 2016 at 3:14 PM, Jenn Turner wrote: > Hello there! > > > > The CouchDB weekly news is now live at: https://blog.couchdb.org/2016/ > 09/08 > /couchdb-weekly-news-september-8-2016/ > > > >

Re: Deploying Single Page Application(SPA) with CouchDB

2016-03-27 Thread Giovanni P
at 10:18 PM, Giovanni P <fiat...@gmail.com> wrote: > 2 is probably your best option. Just use attachments. /db/doc/index.html > > better yet, if possible: host the static files for the SPA yourself, use > the HTML appcache so the files will be avaliable for the users even when &

Re: Deploying Single Page Application(SPA) with CouchDB

2016-03-27 Thread Giovanni P
2 is probably your best option. Just use attachments. /db/doc/index.html better yet, if possible: host the static files for the SPA yourself, use the HTML appcache so the files will be avaliable for the users even when offline, then let the users input their own CouchDB URL/passwords in the app.

Re: how to use an included document's key?

2015-04-20 Thread Giovanni P
After thinking more about it, I think that the optimal suggestion (in the sense that I want you to consider that my only suggestion from now on) is to have one document for each patient visits to the pharmacy, as Sebastian said. The document structure could be something like this

Re: how to use an included document's key?

2015-04-18 Thread Giovanni P
Ok, I'm still a little confused, but understand that all the things we suggested will not work for the third use case: ​​ Third, at 5/1 another pharmacist Carol working at another pharmacy is consulted by a prescriber that I have prescribed my patient drug S but this does not work well. So I am

Re: how to use an included document's key?

2015-04-15 Thread Giovanni P
Depending on what exactly you are doing, you could perhaps add everything as one document, using update functions to prevent the roundtrip? On Wed, Apr 15, 2015 at 1:09 PM, ken tashiro presidenttash...@gmail.com wrote: Thank you, Giovanni. You can't. Each document only knows about itself.

Re: how to use an included document's key?

2015-04-15 Thread Giovanni P
You can't. Each document only knows about itself. But there is probably another way of accomplishing what you want with CouchDB. On Wed, Apr 15, 2015 at 6:55 AM, ken tashiro presidenttash...@gmail.com wrote: Hi, I have a question. Suppose documents are [ { _id: 1 }, { _id: 2,

Re: CORS using PUT

2015-03-16 Thread Giovanni P
how are you doing this request? to which URL? what are the contents of the request? On Mon, Mar 16, 2015 at 7:07 PM, Derrick Oswald derrick.osw...@gmail.com wrote: Hi, For inserting documents with attachments (Content-Type: multipart/related;) I have a choice between PUT (status 415

Re: Help with setting a fake CouchDB replication endpoint

2015-02-26 Thread Giovanni P
Thank you very much for looking at it, Alexander. I haven't had time to (try to) fix my implementation, but I will. On Sun, Feb 22, 2015 at 6:57 PM, Alexander Shorin kxe...@gmail.com wrote: On Mon, Feb 23, 2015 at 12:53 AM, Alexander Shorin kxe...@gmail.com wrote: Is it my multipart/mixed

Re: Help with setting a fake CouchDB replication endpoint

2015-02-22 Thread Giovanni P
So, anyone has any idea about what might be happening? On Sat, Feb 7, 2015 at 7:35 PM, Giovanni P fiat...@gmail.com wrote: I'm trying to make a fake CouchDB replication endpoint so I can replicate just one dynamically generated design document to an empty CouchDB database (so, my fake

Re: Replication not reaching 100% and consuming lots of CPU on destination node

2015-02-05 Thread Giovanni P
I don't know. Can it be attachments? On Thu, Feb 5, 2015 at 5:19 PM, Roger Sindreu ro...@empaytech.com wrote: Any suggestions/ideas on that? Any help will be appreciated. Thanks On Mon, Feb 2, 2015 at 11:57 AM, Roger Sindreu ro...@empaytech.com wrote: Hi everyone, Nice to be here and

Re: Export question

2015-02-05 Thread Giovanni P
Why do you want that? Values that are surrounded by quotes are strings. Do you want strings? You just need to convert your values to strings when emitting them, like function(doc) { emit([doc.user.friends_count.toString(), doc.user.followers_count .toString(), doc.retweet_count.toString(),

Re: Strange issue with dates

2015-02-05 Thread Giovanni P
what is this formatting you're using? it is really difficult to read all those ||| On Thu, Feb 5, 2015 at 10:07 PM, Kiril Stankov ki...@open-net.biz wrote: Hi, I have two update handlers: |||SetCancelled|:|function(doc,req) {doc['cancelled']=true; doc['cancelledDate']=Date.now(); return

Re: Retrieving selected documents in CouchDB

2015-01-01 Thread Giovanni P
if your ids are strings your query parameter should be ?keys=[7, 10] On Thu, Jan 1, 2015 at 11:01 PM, Mic micta...@gmail.com wrote: Hi, I have the following example document in CouchDB stored: *{ _id: 10, _rev: 3-5288068d2c4ef3e6a9d3f8ff4e3377dd, sub_name: B01, name: A,

Re: Get a CouchDB cloud instance in less than 30 seconds.

2014-12-10 Thread Giovanni P
That's awesome. A world of portable deployable CouchDBs is something we should be welcoming. Is this safe enough? Can I use it in production? On Wed, Dec 10, 2014 at 1:12 PM, Enrique Conci e...@cloudlabs.io wrote: *Hello,* Thanks for your suggestion! I will try to include it in a new CouchDB

Re: Is CouchDB suitable for my purpose?

2014-12-01 Thread Giovanni P
I would. On Mon, Dec 1, 2014 at 9:28 AM, Vladimir Ralev vladimir.ra...@gmail.com wrote: Depends on the documents. Are they binary, text or json? Also do you need to maintain metadata about who touched what/when/why in a document? How do you expect to query and maintain these documents - by

Re: [NEWS] Your links for the CouchDB Weekly News

2014-10-29 Thread Giovanni P
Hi, Lena, here's my link: https://github.com/fiatjaf/microanalytics, a web-analytics CouchApp. On Wed, Oct 29, 2014 at 11:04 AM, Lena Reinhard l...@thehoodiefirm.com wrote: Hi everyone, if you want to submit a link for this week's CouchDB News, please send it to this thread until tomorrow,

Re: [NEWS] Your links for the CouchDB Weekly News

2014-10-29 Thread Giovanni P
be listet at https://cwiki.apache.org/confluence/display/COUCHDB/Useful+utilities . Please register at https://cwiki.apache.org/confluence/signup.action and write me your username. I will then grant you the needed rights :) Cheers Andy On 29 October 2014 14:54, Giovanni P fiat...@gmail.com wrote

Re: [DISCUSS] Improved CouchDB logo

2014-10-28 Thread Giovanni P
If I declare myself offended (for no reason, because there is absolutely no reason to be offended by the present logo) by the next logo you come up with, will you change it? On Tue, Oct 28, 2014 at 11:51 AM, Alexander Shorin kxe...@gmail.com wrote: On Tue, Oct 28, 2014 at 4:33 PM, Bryan Green

Re: [DISCUSS] Improved CouchDB logo

2014-10-28 Thread Giovanni P
http://upload.wikimedia.org/wikipedia/commons/3/35/Et_selskab_af_danske_kunstnere_i_Rom.jpg is this offensive? On Tue, Oct 28, 2014 at 11:59 AM, Bryan Green dbryan.gr...@gmail.com wrote: I would assume we would discuss it as we are now. On Tue, Oct 28, 2014 at 6:58 AM, Giovanni P fiat

Re: [DISCUSS] Improved CouchDB logo

2014-10-28 Thread Giovanni P
(serious) idea for a logo that fits with the relax motto: http://www.papeldeparede.etc.br/wallpapers/snoopy-e-woodstock_6591_1024x768.jpg On Tue, Oct 28, 2014 at 12:00 PM, Giovanni P fiat...@gmail.com wrote: http://upload.wikimedia.org/wikipedia/commons/3/35

Re: [DISCUSS] Improved CouchDB logo

2014-10-27 Thread Giovanni P
If the person is removed the slogan loses its meaning. On Mon, Oct 27, 2014 at 11:17 PM, Bryan Green dbryan.gr...@gmail.com wrote: I think it would be interesting just to get rid of the person altogether and have some sort of stylized couch. Bryan Green aka lispyone On Mon, Oct 27, 2014 at

Re: View question

2014-10-05 Thread Giovanni P
as I always have trouble imagining the results of a some reduce function with group_level and stuff alike, I made this app for quickly simulating these things: http://fiatjaf.github.io/couchdb-mr-simulator/ here's the same simulation Aurélien did:

Re: View question

2014-10-04 Thread Giovanni P
You can use the second with group_level=1 and get all the groups at the same time. And you can use _count instead of _sum, so you don't even need to emit any value, just the key. On Sat, Oct 4, 2014 at 8:24 PM, Boaz Citrin bcit...@gmail.com wrote: Hello, My documents contain two fields to

Re: Ben Rowland Out Of Office

2014-09-13 Thread Giovanni P
stop, man, you're crazy! On Sat, Sep 13, 2014 at 11:33 PM, browl...@tecture.com wrote: I am out of the office from Monday, September 15th through Friday, September 19th, returning Monday, September 22nd. In my absence, please contact: Support (312) 895-4981 ext 2

Re: Ben Rowland Out Of Office

2014-09-13 Thread Giovanni P
please stop this madness. On Sun, Sep 14, 2014 at 12:22 AM, browl...@tecture.com wrote: I am out of the office from Monday, September 15th through Friday, September 19th, returning Monday, September 22nd. In my absence, please contact: Support (312) 895-4981 ext 2

Humble feature proposal: a little hierarchy solution with `_parent` field and parents passed to mapfun

2014-06-12 Thread Giovanni P
Here's something that would not impose speed or scalability problems for CouchDB and could create countless possibilities of better organizing and querying data of various kinds -- mainly docs linked to other docs somehow --, as well as making views more useful (for storing valuable data not

Re: Humble feature proposal: a little hierarchy solution with `_parent` field and parents passed to mapfun

2014-06-12 Thread Giovanni P
replicate parent docs. In a multi-couch environment and with replication trying to manage related docs does not scale. On Thu, Jun 12, 2014 at 7:40 AM, Giovanni P fiat...@gmail.com wrote: Here's something that would not impose speed or scalability problems for CouchDB and could create

Re: Seeking for professional training help with CouchDB

2013-11-12 Thread Giovanni P
what does an expert knows that is so important that can't be learned on documentation, wikis and blogs? On Tue, Nov 12, 2013 at 3:55 PM, Simon Metson si...@cloudant.com wrote: thecouchfirm.com On Friday, 8 November 2013 at 22:33, Naik, Purushottam wrote: Please provide with details on

Re: Seeking for professional training help with CouchDB

2013-11-12 Thread Giovanni P
please, it's a serious question. On Tue, Nov 12, 2013 at 4:35 PM, Robert Newson rnew...@apache.org wrote: We know where the secret turbo button is. B. On 12 November 2013 18:32, Giovanni P fiat...@gmail.com wrote: what does an expert knows that is so important that can't be learned

Re: Seeking for professional training help with CouchDB

2013-11-12 Thread Giovanni P
economy for us knowledge workers, and we'd all be out of jobs. /always looking for the secret turbo button -- *matt j. sorenson* On Tue, Nov 12, 2013 at 12:39 PM, Benoit Chesneau bchesn...@gmail.com wrote: On Tue, Nov 12, 2013 at 7:32 PM, Giovanni P fiat

Re: Seeking for professional training help with CouchDB

2013-11-12 Thread Giovanni P
Of course experience has value. I'll never deny it. The problem was that the term expert states something about knowing more, not having more experience. Ok, these points are blurry and confusing, but that was part of my question. Thanks everybody. On Tue, Nov 12, 2013 at 5:46 PM, Giovanni P

Re: each project have only one database

2013-09-23 Thread Giovanni P
You're correct. Join views, i. e., views that relate one document to another of another type, will require them to be in the same database. On Mon, Sep 23, 2013 at 10:49 AM, Ashraf Janan ashrafja...@yahoo.comwrote: Hi Guys, I have a project, and that project need to CouchDB to get,post

Re: Map view

2013-09-17 Thread Giovanni P
what code (script)? from where? try jquery-couch: http://daleharvey.github.io/jquery.couch.js-docs/symbols/ On Tue, Sep 17, 2013 at 3:32 PM, Stanley Iriele siriele...@gmail.comwrote: How are you trying to access couch dB?.. All you have to do is use and http client in whatever language you

Re: access each element in the Response

2013-09-17 Thread Giovanni P
send param include_docs=true on the querystring. or put the 'weeks' at the value field on the view. On Tue, Sep 17, 2013 at 9:04 PM, Rana Bunnni rana_...@yahoo.se wrote: Hi guys, Please : I have database document: type:course class_name:ios week:[22,23,24] students:[max,tom,foo,]

Re: HTTP access control (CORS, Cross Origin Resource Sharing ) problem with couchdb server

2013-08-22 Thread Giovanni P
Enabling CORS http://pouchdb.com/getting-started.html To replicate directly with CouchDB you need to make sure CORS is enabled, only set the username and password if you have set them previously, by default CouchDB will be installed in Admin Party and they are not needed, you will need to replace