Re: Error while indexing a big JSON

2015-02-09 Thread Stanley Iriele
One thing that van be happening is that you are hitting the RPC timeout for the view server. The real question is..why do you have an 11 mb file?. Would your project make sense it apart into smaller docs? On Feb 9, 2015 6:41 PM, Luca Morandini lmorand...@ieee.org wrote: Dear CouchDB community,

Re: Strange issue with dates

2015-02-05 Thread Stanley Iriele
There is probably something off happening when parsing dates between what's stored on disk in erlang what's sent back. Remember dates are not a thing in JSON. My advice would be to NEVER STORE DATES. New date().getTime() and just get the milliseconds...and when you want to use it use new

Re: Export from a table which have more tables in it

2015-02-03 Thread Stanley Iriele
Its pretty standard that every document has a type Field on it that let's you know what kind of type that document is. Then the map function just needs a if type == user for processing specifically users On Feb 1, 2015 3:52 AM, Ayhan Kesenci a.kesenc...@googlemail.com wrote: Hello Friends I

Re: Export from a table which have more tables in it

2015-02-03 Thread Stanley Iriele
of different types in separate databases - this way you can also deal with views and other design docs in a more simplified way. HTH. *With best regards,* Kiril On 2/3/2015 8:18 PM, Stanley Iriele wrote: Its pretty

RE: Why am i seeing this behavior?

2015-01-29 Thread Stanley Iriele
Yes...you can..but you might want to change your view first. Index on time...that is to say emit the creation date in milliseconds into the view...then use startkey=now() /endkey =now() - 7 days or something. On Jan 29, 2015 8:03 AM, TAE JIN KIM snoweb...@hotmail.com wrote: Are you sure I can

Re: Why am i seeing this behavior?

2015-01-28 Thread Stanley Iriele
Hey TAE, I think you have a misunderstanding about how views work in couchdb in general. So let me start at a very high level. When you create an index in SQL what basically happens is the database runs a CREATE INDEX function and that index data structure is updated, whether its a b-tree or

Re: Outdated view right after bulk document update

2015-01-26 Thread Stanley Iriele
*delayed_commits *to true improve/fix this? Can it affect performance noticeably? Thanks! On Wed, Jan 21, 2015 at 11:43 PM, Stanley Iriele siriele...@gmail.com wrote: Are you calling the view right after?...this is just a thought but they may not have committed to disk yet

Re: Outdated view right after bulk document update

2015-01-21 Thread Stanley Iriele
Are you calling the view right after?...this is just a thought but they may not have committed to disk yet at that point On Jan 21, 2015 5:33 AM, Boaz Citrin bcit...@gmail.com wrote: Hello, We are having a strange issue using the bulk document API of couchdb 1.2.1; 1. We have a view on a

Re: Is it

2015-01-21 Thread Stanley Iriele
hmm? your curl command should have worked just fine...something tells me you're not typing EXACTLY what you sent...could you type history and paste it here? Also...could you show us the map and reduce functions as well? On Wed, Jan 21, 2015 at 1:46 PM, Ayhan Kesenci a.kesenc...@googlemail.com

Re: Is it

2015-01-21 Thread Stanley Iriele
Hey I can't actually see images on there On Wed, Jan 21, 2015 at 3:59 PM, Ayhan Kesenci a.kesenc...@googlemail.com wrote: [image: Inline-Bild 1] [image: Inline-Bild 2] there are the map function and the command 2015-01-21 22:55 GMT+01:00 Stanley Iriele siriele...@gmail.com: hmm? your

Re: Is it

2015-01-21 Thread Stanley Iriele
...@googlemail.com wrote: the only thing that it is in the csv is {rows:[ {key:null,value:1915} ]} 2015-01-22 1:22 GMT+01:00 Stanley Iriele siriele...@gmail.com: Also it looks like your curl -X GET url has the GET and the url touching so it looks like GETurl to me On Wed, Jan 21, 2015 at 4

Re: Is it

2015-01-21 Thread Stanley Iriele
Also it looks like your curl -X GET url has the GET and the url touching so it looks like GETurl to me On Wed, Jan 21, 2015 at 4:21 PM, Stanley Iriele siriele...@gmail.com wrote: Hey I can't actually see images on there On Wed, Jan 21, 2015 at 3:59 PM, Ayhan Kesenci a.kesenc...@googlemail.com

Re: Is it

2015-01-21 Thread Stanley Iriele
is this message in the csv file {error:method_not_allowed,reason:Only GET,POST,HEAD allowed} 2015-01-22 1:52 GMT+01:00 Stanley Iriele siriele...@gmail.com: I still can't see our output but we can proceed anyway :-D. You have a reduce function in that map section and couchdb's default

Re: Is it

2015-01-21 Thread Stanley Iriele
(doc.user, null) } and when you query it it should look like this: curl -X GET -g http://127.0.0.1:5984/twitterdb/twitterdb/_design/user/_view/user?reduce=falseinclude_docs=true; C:\Users\Sei_Erfolgreich\Desktop\text.txt I hope this helps On Wed, Jan 21, 2015 at 7:05 PM, Stanley Iriele siriele

Re: Is it

2015-01-21 Thread Stanley Iriele
/_design/user/_view/user reduce = false C:\Users\Sei_Erfolgreich\Desktop\text.txt 2015-01-22 3:01 GMT+01:00 Stanley Iriele siriele...@gmail.com: Huh?...no pass reduce=false as a url query string param... So?reduce=false at the end of the query string On Jan 21, 2015 5:49 PM, Ayhan Kesenci

RE: Couchdb view error

2014-11-07 Thread Stanley Iriele
That function seems weird... Could you paste the map and reduce functions again?...why do do you have a reduce function that just returns null? Instead of a value?.. Why have a reduce function at all?.. Also that if statement doesn't have {} maybe because it's a one liner?... Meh...you should put

Re: View question

2014-10-05 Thread Stanley Iriele
Citrin bcit...@gmail.com wrote: I need to get the count of document that were associated to a group between two given dates. Thanks! On Sun, Oct 5, 2014 at 8:13 AM, Stanley Iriele siriele...@gmail.com wrote: Hey what date are you looking to filter to? Day/ month..year? On Oct 4, 2014 10

Re: View question

2014-10-05 Thread Stanley Iriele
And the result will be - a, 2 b, 1 On Sun, Oct 5, 2014 at 9:36 AM, Stanley Iriele siriele...@gmail.com wrote: Right ...are you saying... That you need grouping down to the day?... In which case you can just emit[ date, group]... The fate being the milliseconds truncated to the day

Re: View question

2014-10-05 Thread Stanley Iriele
, ... } I want to support a query with from-date = 2014-10-02T21:58:59.377Z to-date= 2014-10-04T22:58:59.377Z And the result will be - a, 2 b, 1 On Sun, Oct 5, 2014 at 9:36 AM, Stanley Iriele siriele...@gmail.com wrote: Right ...are you saying... That you need grouping down

Re: View question

2014-10-05 Thread Stanley Iriele
on last time to get your desired output On Oct 5, 2014 12:33 AM, Boaz Citrin bcit...@gmail.com wrote: how could I solve it if let's say it would be limited to the second? On Sun, Oct 5, 2014 at 10:07 AM, Stanley Iriele siriele...@gmail.com wrote: Or can it be down to saythe hour... Or minute

Re: View question

2014-10-05 Thread Stanley Iriele
Comparing numbers is much faster and cheaper space wise than strings On Oct 5, 2014 1:04 AM, Stanley Iriele siriele...@gmail.com wrote: You would need a view... As I described earlier But BE SURE TO store the UTC milliseconds on the doc...what...or use the getTime() function to emit

Re: View question

2014-10-05 Thread Stanley Iriele
chaining map reduce sounds really excitingbut for your current solution...list functions would be the way to go On Sun, Oct 5, 2014 at 10:03 AM, Giovanni P fiat...@gmail.com wrote: as I always have trouble imagining the results of a some reduce function with group_level and stuff alike, I

Re: View question

2014-10-04 Thread Stanley Iriele
Hey what date are you looking to filter to? Day/ month..year? On Oct 4, 2014 10:11 PM, Boaz Citrin bcit...@gmail.com wrote: Thanks Giovanni, You say I can get all the groups at the same time, but how can I achieve this and also filter by date? On Sun, Oct 5, 2014 at 4:04 AM, Giovanni P

Re: Union functions

2014-09-22 Thread Stanley Iriele
Hey...thanks for your response. Somewhere in the mix I mentioned vector clocks being returned as well. You shouldn't need the ancestor doc...just what it holds as a collision. Your function should be able to given 2 docs and a vector clocks be able to resolve the conflict. This can take many

Re: Union functions

2014-09-22 Thread Stanley Iriele
comes out of it. H From: Stanley Iriele siriele...@gmail.com Sent: Monday, September 22, 2014 09:08 To: user@couchdb.apache.org Subject: Re: Union functions Hey...thanks for your response. Somewhere in the mix I mentioned vector clocks being returned

Re: Union functions

2014-09-18 Thread Stanley Iriele
the others or something On Sep 17, 2014 10:42 PM, Stanley Iriele siriele...@gmail.com wrote: Ora conflict is only saved as a conflict of this function returns null.. Saying idk how to resolve this so leave it as a conflict On Sep 17, 2014 10:39 PM, Stanley Iriele siriele...@gmail.com wrote

Union functions

2014-09-17 Thread Stanley Iriele
Hey, This idea I'd still in the rough so bear with me a little. Couchdb is an ap system... And stores the result of both docs during a conflict. We have update functions as a way to do incremental updates. And show functions to do a transform on a doc before sending it. Can we have union

Re: Union functions

2014-09-17 Thread Stanley Iriele
Ora conflict is only saved as a conflict of this function returns null.. Saying idk how to resolve this so leave it as a conflict On Sep 17, 2014 10:39 PM, Stanley Iriele siriele...@gmail.com wrote: Hey, This idea I'd still in the rough so bear with me a little. Couchdb is an ap system

Re: Ben Rowland Out Of Office

2014-09-14 Thread Stanley Iriele
seems like its a auto-response...I have no idea why it wold repeat every minute or something but this is flooding my mailbox. Can the admin or this email list do something about this?? On Sat, Sep 13, 2014 at 8:28 PM, browl...@tecture.com wrote: I am out of the office from Monday, September

Re: The big question

2014-09-14 Thread Stanley Iriele
Judging from the email response storm... I'd say he's out of the office On Sep 14, 2014 12:16 PM, Andrey Cherkashin andor...@gmail.com wrote: On a vacation, he is out of office. -- Andrey Cherkashin Sent with Airmail On September 14, 2014 at 12:15:18 PM, Mark Hahn (m...@hahnca.com) wrote:

Re: The big question

2014-09-14 Thread Stanley Iriele
:22 PM, Yves S. Garret yoursurrogate...@gmail.com wrote: He's going to be in for quite a surprise when he's back from vacation :) . On Sun, Sep 14, 2014 at 3:19 PM, Stanley Iriele siriele...@gmail.com wrote: Judging from the email response storm... I'd say he's out of the office

Re: Ben Rowland Out Of Office

2014-09-13 Thread Stanley Iriele
This...email Really needs to stop being sent On Sep 13, 2014 8:08 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: Crashing couchdb

2014-08-06 Thread Stanley Iriele
Hey, Just out of curiosity are you using views or just reading via the doc ID with http gets? On Aug 6, 2014 6:16 AM, Jason Woods de...@jasonwoods.me.uk wrote: On 6 Aug 2014, at 13.56, Robert Newson rnew...@apache.org wrote: Yes, the entire Erlang process should crash if it hits this kind

Re: Control view query performance

2014-07-14 Thread Stanley Iriele
Interestingdoes the native view server have the same relationship with couchdb? And by that I mean is there a pool of processes that read db files from disk or is its relationship completely different?. Also...can..and should the number of spun up processes be configurable? By the way many

Re: Control view query performance

2014-07-13 Thread Stanley Iriele
any thoughts on this?...Its not a blocker..I'd just really like to know On Thu, Jul 10, 2014 at 3:44 PM, Stanley Iriele siriele...@gmail.com wrote: When a doc needs to be calculated for a particular set of entries from the changes feed...are docs sent one at a time or in batches

Re: Control view query performance

2014-07-13 Thread Stanley Iriele
. And it doesn’t “calculate” docs; it just returns existing doc IDs and revision IDs. If that’s not what you were actually asking, you’ll need to rephrase your question more clearly. —Jens On Jul 13, 2014, at 8:49 PM, Stanley Iriele siriele...@gmail.com wrote: any thoughts on this?...Its not a blocker

Control view query performance

2014-07-10 Thread Stanley Iriele
When a doc needs to be calculated for a particular set of entries from the changes feed...are docs sent one at a time or in batches?... And is there just one view server doing all of the computation. Lastly...is there a way to configure or control any of the settings that would dictate the

Re: Viewings

2014-06-24 Thread Stanley Iriele
I think the real question is why are you dealing with a document that is 1gb in the first place? Basically what's happening is couchdb has to load all of that doc into memory to use it in a map function and there is a default timeout of like 5 seconds or something. Is there anyway you can

Re: authentication issues

2014-05-16 Thread Stanley Iriele
You don't need to keep re-sending your credentials...also..the header is set to HttpOnly so you cannot access it from javascript land try this or just remove your credentials: $.ajax({ type: GET, url: /_session, contentType: application/json, dataType: json,

Re: authentication_redirect is not working.

2014-04-18 Thread Stanley Iriele
I've personally used the vhosts +rewrites to solve a similar problem but I used an internal show function in the ddoc as my web navigation...lastly all of my attachments/ web pages were in 1 ddoc. And unsafe- rewrites were enabled... A little proxy for really crazy requests and you're pretty much

Re: Howto delay view requests until indexes are rebuilt

2014-04-18 Thread Stanley Iriele
So the default behavior us to wait until it's finished for that sequence particular request. Can you send the exact query you're making... Are you passing stale=OK? On Apr 18, 2014 12:59 PM, Alex Schenkman a...@schenkman.info wrote: Hi list, According to what I see in the logs and the results

Re: Is the revision field deterministic?

2014-04-09 Thread Stanley Iriele
In an odd way this relates back to the BigCouch vs couchbase server discussion the other week in that it clears up the confusion that arises due to similar names and what not. On Apr 9, 2014 9:48 AM, Jens Alfke j...@couchbase.com wrote: On Apr 9, 2014, at 3:48 AM, Alexander Shorin

Re: Bench marking a simple 10k write

2014-04-04 Thread Stanley Iriele
On Fri, Apr 4, 2014 at 1:28 AM, Benoit Chesneau bchesn...@gmail.com wrote: On Fri, Apr 4, 2014 at 10:25 AM, Will Holley willhol...@gmail.com wrote: .NET should set keep-alive by default. I have a hard time believing that because its the library you're using not NET itself that decides

Re: Bench marking a simple 10k write

2014-04-04 Thread Stanley Iriele
. Nick On 4 April 2014 10:24, Stanley Iriele siriele...@gmail.com wrote: On Fri, Apr 4, 2014 at 1:28 AM, Benoit Chesneau bchesn...@gmail.com wrote: On Fri, Apr 4, 2014 at 10:25 AM, Will Holley willhol...@gmail.com wrote: .NET should set keep-alive by default

Re: Optimizing Couchdb Performance

2014-04-04 Thread Stanley Iriele
Hey could you be a bit more specific about your problems? What is the performance problem? What is your set up? What version of CouchDB are you using? This would be the place to fins all of things you mentioned BTW On Apr 4, 2014 11:19 AM, Diogo Júnior diogo.jun...@fraunhofer.pt wrote: Hi,

Re: Bench marking a simple 10k write

2014-04-03 Thread Stanley Iriele
Are you tearing down the connection and reestablishing it every time? Or have you played with the TCP_no_delay settings?... Could you define slow and maybe post your function minus credentials? On Apr 3, 2014 7:41 PM, Knudsen, Ken ken.knud...@imaginecommunications.com wrote: to a CouchDB

RE: Bench marking a simple 10k write

2014-04-03 Thread Stanley Iriele
writes in CouchDB can happen as fast.. ArangoDB is extremely fast, as I expected (waitforsync=false)... I thought CouchDB would have been just as fast. -Original Message- From: Stanley Iriele [mailto:siriele...@gmail.com] Sent: April-03-14 10:46 PM To: user@couchdb.apache.org Subject

RE: Bench marking a simple 10k write

2014-04-03 Thread Stanley Iriele
: Stanley Iriele [mailto:siriele...@gmail.com] Sent: April-03-14 11:04 PM To: user@couchdb.apache.org Subject: RE: Bench marking a simple 10k write That's fine..I definitely relate to your situation.. If you want to do 10k writes...use the bulk_docs API that should do the trick... Bit tearing

Re: Bigcouch vs couchbase

2014-03-27 Thread Stanley Iriele
return stale data... Ever?... Like the example I described above?... This mail thread really needs to be in a doc somewhere BTW.. Again many thanks On Mar 26, 2014 10:45 PM, Benoit Chesneau bchesn...@gmail.com wrote: On Thursday, March 27, 2014, Stanley Iriele siriele...@gmail.com wrote: Also

Re: Bigcouch vs couchbase

2014-03-27 Thread Stanley Iriele
/bigcouch-zero-point-four/ On 27 Mar 2014, at 06:00, Stanley Iriele siriele...@gmail.com wrote: This is again extremely helpful...thanks... MVCC says... Hey...while you're writing... Every one is still pointing to the old one for reads... But the moment its done... Look at this new one

Re: Bigcouch vs couchbase

2014-03-27 Thread Stanley Iriele
/dynamo-and-couchdb-clusters/ https://cloudant.com/blog/bigcouch-0-3/ https://cloudant.com/blog/bigcouch-zero-point-four/ On 27 Mar 2014, at 06:00, Stanley Iriele siriele...@gmail.com wrote: This is again extremely helpful...thanks... MVCC says... Hey...while you're writing

Re: Bigcouch vs couchbase

2014-03-27 Thread Stanley Iriele
AM, Robert Samuel Newson rnew...@apache.org wrote: There'll definitely be official documentation on the clustering part of couchdb. On 27 Mar 2014, at 16:50, Stanley Iriele siriele...@gmail.com wrote: Thanks Jens... I knew that the key value storage from memcache and apologies for my

Bigcouch vs couchdb

2014-03-26 Thread Stanley Iriele
I'm trying to find a document comparing the two... Especially from a CAP theorem / distributed write perspective. How does bigcouch handle multiple simultaneous writes ? Is it first to write? How is couchbase different?... There is no clear comparison between documentation the on these

Re: Bigcouch vs couchdb

2014-03-26 Thread Stanley Iriele
Apologies for the title.. It should be bigcouch vs couchbase On Mar 26, 2014 12:43 AM, Stanley Iriele siriele...@gmail.com wrote: I'm trying to find a document comparing the two... Especially from a CAP theorem / distributed write perspective. How does bigcouch handle multiple simultaneous

Re: Bigcouch vs couchbase

2014-03-26 Thread Stanley Iriele
:43 AM, Stanley Iriele siriele...@gmail.com wrote: How does bigcouch handle multiple simultaneous writes ? Is it first to write? How is couchbase different?... In Couchbase Server the key-space is partitioned among the nodes in the cluster, so each key is 'owned' by one node at a time. So

Re: Bigcouch vs couchbase

2014-03-26 Thread Stanley Iriele
26, 2014, at 9:31 AM, Stanley Iriele siriele...@gmail.com wrote: Why would you say that couchbase scales better?... That's getting way off-topic for this list, but http://couchbase.com has a bunch of marketing materials and white papers and such, and we have sales engineers you can talk

Re: Bigcouch vs couchbase

2014-03-26 Thread Stanley Iriele
for all parties involved.. On Mar 26, 2014 2:58 PM, Stanley Iriele siriele...@gmail.com wrote: Thanks again Jens for the reply... Couchbase has documentation on this...and gobs of marketing... But bigcouch does not... In bigcouch...all nodes can handle every request... But let's say a node

Re: A million databases

2014-03-25 Thread Stanley Iriele
What is the difference between filtered changes feed and sync gateway?. Are they that comparable? On Mar 25, 2014 11:27 AM, Jens Alfke j...@couchbase.com wrote: On Mar 25, 2014, at 12:41 AM, Suraj Kumar suraj.ku...@inmobi.com wrote: If there are a million *.couch files under

Re: Storing a doc I'd as json array string

2014-03-05 Thread Stanley Iriele
, 2014 7:53 AM, Marcello Barnaba v...@openssl.it wrote: On Mar 05, 2014, at 07:27, Stanley Iriele siriele...@gmail.com wrote: I want to store a document for a particular game... Version...and key...where key could be any string. I want there to be a key collision on insert I don't want

Re: Which interface/library is better for couchDB

2014-03-04 Thread Stanley Iriele
Cocudb is a very flexible database so it really depends on what you're trying to do with italso what language is your project in? On Mar 4, 2014 9:43 AM, Ramanadham, Radhika radhika.ramanad...@emc.com wrote: Hi, I am trying to see if couchDB is a good fit for my project. For the most

Storing a doc I'd as json array string

2014-03-04 Thread Stanley Iriele
I want to store a document for a particular game... Version...and key...where key could be any string. I want there to be a key collision on insert I don't want to make up some delimeter because that wouldn't go so well On a scale of 1 to 10 how bad of an idea is this?

Re: Bigcouch without ha proxy

2014-03-02 Thread Stanley Iriele
...@benjamindsmith.com wrote: On 02/25/2014 11:25 AM, Stanley Iriele wrote: So in clustering couchdb everyone recommends haproxy but I do t want to pay the price for an extra hop. Is there a better solution out there?.. I'm thinking of pulling they keyspace doc in myself and just have a collection

Erlang proplists for Docs

2014-02-27 Thread Stanley Iriele
I'm fairly new to erlang and I am going through the docs couchdb docs again and its shows that proplists are the way objects documents are stored when you interact with them in an map function (or whatever other function). My question is...from what I have read proplists have linear performance

Re: Erlang proplists for Docs

2014-02-27 Thread Stanley Iriele
Basically my case is that I may have a doc with hundreds of keys potentially and was curious about the behavior On Thu, Feb 27, 2014 at 1:12 AM, Stanley Iriele siriele...@gmail.comwrote: I'm fairly new to erlang and I am going through the docs couchdb docs again and its shows that proplists

Re: Enforcing creating documents using an update handler in a CouchApp

2014-02-27 Thread Stanley Iriele
Use a proxy to say no posts and puts matching that Or...just don't call it. :-) I exclusively use update handlers to update my docs unless I move them in bulk On Feb 27, 2014 2:46 PM, Alexander Shorin kxe...@gmail.com wrote: How you suppose to deal with replication which stores documents

Couchbase _changes feed equivalent

2014-02-27 Thread Stanley Iriele
What is the couchbase equivalent of the changes feed?...just to be clear I am using couchdb but I am asking for a friend. I am familiar with the changes feed enough but it seems like this has been hidden away from the developer in couchbase. ...how would someone achieve the same behavior from

Re: _all_docs vs regular view

2014-02-25 Thread Stanley Iriele
hesitate to call it a view though, since it's the database itself just rendered in the same format as views. You could think of it as primary index vs secondary index. B. On 25 Feb 2014, at 06:59, Stanley Iriele siriele...@gmail.com wrote: is the All docs a special view?...it never has

Bigcouch without ha proxy

2014-02-25 Thread Stanley Iriele
So in clustering couchdb everyone recommends haproxy but I do t want to pay the price for an extra hop. Is there a better solution out there?.. I'm thinking of pulling they keyspace doc in myself and just have a collection of http clients connecting to different nodes. My question is is the extra

_all_docs vs regular view

2014-02-24 Thread Stanley Iriele
is the All docs a special view?...it never has to be primed like traditional views. why is that?...if a use a list function to fold over a certain number of keys during a period of a lot of writes does this view stay up to date ? or does it behave like a regular view?

Re: History tracking as a plugin?

2014-02-16 Thread Stanley Iriele
This may not be too helpful to you but I solved this problem with update handlers and a records database..each update returned an update record object containing the docid the CTX user old.. All of the old keys and new...the new changed keys. I accumulated them in memory in a server than bulk but

Re: CouchDB: Timestamp inaccurate and seems to be cached

2014-01-08 Thread Stanley Iriele
Maps should not be used for that... Also...why can't show or list functions be used for that?... On Jan 8, 2014 10:59 AM, Hank Knight hknight...@gmail.com wrote: I want to get the current timestamp according to the CouchDB server using a GET request. When new documents are created, an update

Re: CouchDB: Timestamp inaccurate and seems to be cached

2014-01-08 Thread Stanley Iriele
That's the browser cache... Not the JavaScript call you'll make... Try making call...logging it to the console.. Then making that call again a second later... It should work just fine.. You can even get the age from the show function... With a new date minus created date and just return that in a

Re: CouchDB: Content Type Header for Show Function

2014-01-08 Thread Stanley Iriele
Wait...exactly are you trying g to accomplish with the current server time? Here is my show function: https://zuhqtr5.couchappy.com/test/show/show.txt Here is what it does: https://zuhqtr5.couchappy.com/test/_design/showtimestamp/_show/serverTime How can I add a custom content header to this

Re: CouchDB: Most recently added document that is NOT a design document

2014-01-06 Thread Stanley Iriele
Could you do what Jens just mentioned and just make a filter?that way a seq number plus the filter should get you what you want On Jan 6, 2014 1:28 PM, Jens Alfke j...@couchbase.com wrote: On Jan 6, 2014, at 12:42 PM, Hank Knight hknight...@gmail.com wrote: I want the ID of the most

Re: Proble with rewriting to list functions

2014-01-02 Thread Stanley Iriele
The 1st thing I see right off the bat is that that is not valid json... The keys need to be in quotes because they are strings... Second.. They query arg needs to be a string too... I believe...I haven't used them in a while...either way that's not valid json. On Jan 2, 2014 6:54 AM, Oliver

Re: Disabling doc include

2014-01-02 Thread Stanley Iriele
Correct me if I'm wrong here... If every doc had some meta info with it... And every URL rewrite went to a show or list function...couldn't you use the sec object passed on the request object to get what you want?... Or pass in some application level user credentials... Granted that doesn't sound

Re: Disabling doc include

2014-01-02 Thread Stanley Iriele
Well..thanks for that I didn't realize that. The solution I was suggesting would have been places behind a reverse proxy of course On Jan 2, 2014 1:12 PM, Jan Lehnardt j...@apache.org wrote: On 01 Jan 2014, at 23:32 , Stanley Iriele siriele...@gmail.com wrote: Can't you just use vhosts

Re: CouchDB: Returning latest revision as update function result

2013-12-30 Thread Stanley Iriele
Yes...the new ID and rev are returned as headers. X-Couch-Id is the new ID X-Couch-Update-Newrev is the new revision Here's where its mentioned in the docs http://docs.couchdb.org/en/latest/api/ddoc/render.html?highlight=update#put--db-_design-ddoc-_update-func-docid On Dec 30, 2013 3:11 PM,

Re: CouchDB: Returning latest revision as update function result

2013-12-30 Thread Stanley Iriele
than nothing but is there any way to get the revision information returned like this? return [doc, doc._rev] On Mon, Dec 30, 2013 at 4:17 PM, Stanley Iriele siriele...@gmail.com wrote: Yes...the new ID and rev are returned as headers. X-Couch-Id is the new ID X-Couch-Update-Newrev

Re: Burst PUT updates

2013-12-26 Thread Stanley Iriele
What's the hardware... Cocudb version...operating system of your project...also that doesn't sound like a lot..sounds like there's something funky going on...you're not spinning up new processes for each request are you? On Dec 26, 2013 7:51 PM, Vladimir Ralev vladimir.ra...@gmail.com wrote: Hi

Re: Burst PUT updates

2013-12-26 Thread Stanley Iriele
Even without bulk docs...that doesn't sound right..it sounds to me like the library you're using is having a problem with its http client and the time gap in closing a connection and opening a new one. Try looking at how many open connections your app has when it starts to slow down. I'm guessing

Re: Timeout using Erlang views with large documents

2013-12-19 Thread Stanley Iriele
2:01 AM, david martin david.mar...@lymegreen.co.uk wrote: On 19/12/13 03:28, Stanley Iriele wrote: Why did you place quotes around your timeout? Its just the value... No quotes The 'value' of the timeout 50 is merely the form or representation that is reported

Re: Timeout using Erlang views with large documents

2013-12-19 Thread Stanley Iriele
On Dec 19, 2013 2:32 AM, david martin david.mar...@lymegreen.co.uk wrote: On 19/12/13 10:08, Stanley Iriele wrote: Ahh yes yes you're right...hmm...it is possible that they place a guard on the function and call it using the default value or something like that...also...what is your doc so

Re: Timeout using Erlang views with large documents

2013-12-19 Thread Stanley Iriele
Random asside.. Have you restarted the database?... Yes you can curl and get the value but the process ..may not have respected it ... On Dec 19, 2013 7:37 AM, david martin david.mar...@lymegreen.co.uk wrote: On 18/12/13 22:42, Robert Newson wrote: There is something hard coded in there and I

Re: Timeout using Erlang views with large documents

2013-12-18 Thread Stanley Iriele
Why did you place quotes around your timeout? Its just the value... No quotes On Dec 18, 2013 2:42 PM, Robert Newson rnew...@apache.org wrote: There is something hard coded in there and I will find it eventually and find why it was put there and by whom. This attitude might

Couchdb easter eggs like returning json:

2013-12-09 Thread Stanley Iriele
I have been reading through the couchdb docs online..,fantastic job by the way, and I discovered the joy of returning json instead if stringifying my objects and setting the application/json header myself I don't see any official reference pointing out this goodie... Are there more? Is there an

Re: couchdb teporaly average view

2013-11-28 Thread Stanley Iriele
You mean _id right? On Nov 28, 2013 3:20 PM, Gerardo Di Iorio aret...@gmail.com wrote: Hi, i try to use couchdb for store data sensor. My document is { id:123 source:

Re: couchdb teporaly average view

2013-11-28 Thread Stanley Iriele
I mean other than the fact that your json sample is totally hosed On Nov 28, 2013 3:21 PM, Stanley Iriele siriele...@gmail.com wrote: You mean _id right? On Nov 28, 2013 3:20 PM, Gerardo Di Iorio aret...@gmail.com wrote: Hi, i try to use couchdb for store data sensor. My document

Re: Filtered replication documentation

2013-11-28 Thread Stanley Iriele
A complete side note...good job on the documentation guys.. Its a one stop shop for the most part...plus it looks really nice visually All in all job well done On Nov 28, 2013 7:01 PM, Alexander Shorin kxe...@gmail.com wrote: Don't worry, it's just missed (like any usage examples). Thanks

Re: proposed feature - list function /update handler half baby

2013-11-27 Thread Stanley Iriele
@florian I am not sure what you mean 1 doc update changes all others...I basically you operate on an index of things... Just like a list applies to a view... And each call flushes a doc... Its OK for bulk updates to take a while And the output would be what is returned from the bulk updates

Re: proposed feature - list function /update handler half baby

2013-11-27 Thread Stanley Iriele
or something On Nov 27, 2013 12:55 AM, Stanley Iriele siriele...@gmail.com wrote: @florian I am not sure what you mean 1 doc update changes all others...I basically you operate on an index of things... Just like a list applies to a view... And each call flushes a doc... Its OK for bulk updates to take

proposed feature - list function /update handler half baby

2013-11-26 Thread Stanley Iriele
Bulk updates in couchdb are a tad painful. you have to fetch them out of the database apply your change and save them. I propose adding the ability to have something like an update handler that folds across documents either in the way that lists do via get row ex. function (head, req){ while

Startkey endkey vs keys

2013-11-25 Thread Stanley Iriele
Which on is faster..?..if couchdb just finds Startkey and walks until end key... Is it that much faster then keys?? Which I'm guessing does a search for every key?... Anyways is the gap in speed worth worrying about?.. I'm not in a position to benchmark one architecture vs the other so I'm asking

Re: couchdb data structure

2013-11-21 Thread Stanley Iriele
I think the use of the word collection is misleading...even though they are synonymous..type is far clearer... But that's all just my preference On Nov 21, 2013 12:03 PM, Tim Black t...@alwaysreformed.com wrote: I should note that instead of using the common convention Jens mentioned of a

Re: simultaneously run update handler and update doc content

2013-11-20 Thread Stanley Iriele
Wait...I believe you''re fundamentally have the idea of the update handler wrong curl -s -X PUT 'http://localhost:5984/i7rmdb/_design/compnbd/_update/ timestamp/testid' -d @/tmp/2.json you don't need to pass in that json file an update handler loads the latest version of that doc from the

Re: simultaneously run update handler and update doc content

2013-11-20 Thread Stanley Iriele
at 12:44 AM, Vivek Pathak vpat...@orgmeta.com wrote: I would like to do both update and run update handler - without having a window of time between the client update and sever side update handler. What is wrong with this ? On 11/20/2013 03:36 AM, Stanley Iriele wrote: Wait...I believe

Re: Considering CouchDB

2013-11-20 Thread Stanley Iriele
When you say blocked... Do you mean time for the view to build? Or waiting to get a doc out of the database while its being written?.. I thought couch db was mvcc so there was none of that On Nov 20, 2013 1:36 PM, Mark Hahn m...@reevuit.com wrote: Database writes are not coupled to view

Re: Considering CouchDB

2013-11-20 Thread Stanley Iriele
Idk..it sounds hackey.. But curl and crontab is good enough for me for the views that can't fall more than 1 minute behind On Nov 20, 2013 2:57 PM, Robert Newson rnew...@apache.org wrote: The bigcouch merge will not bring any automatic view updating scheduler. Nothing stops someone contributing

Re: Considering CouchDB

2013-11-20 Thread Stanley Iriele
: .it sounds hackey. Just use update_after. It's not a hack. On Wed, Nov 20, 2013 at 2:59 PM, Stanley Iriele siriele...@gmail.com wrote: Idk..it sounds hackey.. But curl and crontab is good enough for me for the views that can't fall more than 1 minute behind On Nov 20, 2013 2:57 PM, Robert

Re: More couch performance questions

2013-11-20 Thread Stanley Iriele
TCP no delay?... Plus are you building a lot of indexes?... If you're just serving documents I'm surprised it doesn't cache it all and mind its own business I'm curious...is your test testing what yours actually going to be using it for or are they just Benchmarks? On Nov 20, 2013 3:24 PM, Joe

  1   2   3   >