Re: Considering CouchDB

2013-11-20 Thread Robert Newson
wrote: Database writes are not coupled to view updates. I understand now, you are talking about file read/write level. DB reads are blocked by DB updates at the http level. On Wed, Nov 20, 2013 at 1:05 PM, Robert Newson robert.new...@gmail.comwrote: A write requires updating views and reads

Re: Considering CouchDB

2013-11-20 Thread Robert Newson
requests are blocked after http update requests. On Wed, Nov 20, 2013 at 1:52 PM, Robert Newson rnew...@apache.org wrote: DB reads are blocked by DB updates at the http level. Nope, there's a process that can read the database and a separate one for writing to it. Writing

Re: Considering CouchDB

2013-11-20 Thread Robert Newson
, 2013 at 2:36 PM, Robert Newson rnew...@apache.org wrote: True, but remember couchdb doesn't automatically keep indexes fresh in the background, so stale can be really really stale. ;) B. On 20 November 2013 22:34, Simon Metson si...@cloudant.com wrote: Unless your app can deal with querying

Re: CouchDB: POST Data with Update Handler

2013-11-18 Thread Robert Newson
See https://wiki.apache.org/couchdb/Document_Update_Handlers#Request, I think req.body is what you're after. B. On 18 November 2013 14:04, Hank Knight hknight...@gmail.com wrote: I understand that I can pass information using an update handler like this:

Re: Couch crashing under medium load

2013-11-16 Thread Robert Newson
There's no detail here for us to even begin to help. What OS, machine specs, version of couchdb, erlang, spidermonkey, what is medium load? which tweaks have you made? What were the crashes (See couch.log)? B. On 16 November 2013 13:26, Joe RNL jmor...@rednovalabs.com wrote: Apologies if

Re: Couch crashing under medium load

2013-11-16 Thread Robert Newson
usage slowly climb before couchdb crashes. Usually around 3000 available of 14980MB available. Thanks joe On Sat, Nov 16, 2013 at 7:33 AM, Robert Newson rnew...@apache.org wrote: There's no detail here for us to even begin to help. What OS, machine specs, version of couchdb, erlang

Re: decimal and builtin _sum function

2013-11-15 Thread Robert Newson
To answer the original question, _sum can only sum numbers, it does not understand numbers inside strings. On 15 November 2013 10:27, Andy Wenk a...@nms.de wrote: sidenote: super cool talk by Bartek Szopka about floating point numbers in JavaScript (and other languages) held at JSConf.eu 2013

Re: decimal and builtin _sum function

2013-11-15 Thread Robert Newson
a multiprecision library that understands strings of that form to be able to process them. B. On 15 November 2013 12:19, Pedro Narciso García Revington p.reving...@gmail.com wrote: Yes, I know this is not couchdb stuff. What confused to me was to store numbers as strings. 2013/11/15 Robert Newson rnew

Re: decimal and builtin _sum function

2013-11-15 Thread Robert Newson
You just need to round at the appropriate points in your code. Not accounting software I'd want to use. B. On 15 November 2013 17:00, Mark Hahn m...@reevuit.com wrote: Numbers are 100% supported in JSON and JavaScript. You would never have a problem using real numbers. I don't know where

Re: view_duplicate_id chaos

2013-11-15 Thread Robert Newson
This is a bug fixed many releases ago, you need to compact your database, then delete your .view files and rebuild them. The release notes at the time explained the procedure. I believe this is COUCHDB-968 / COUCHDB-999. https://issues.apache.org/jira/browse/COUCHDB-968

Re: show/list

2013-11-14 Thread Robert Newson
imo, show and list are for the cases where you can't do processing at the client. B. On 14 November 2013 16:49, thomas.b...@ptb.de wrote: Hi all, just watched Joan Touzet presentation ( https://speakerdeck.com/wohali/10-common-misconceptions-about-apache-couchdb ) On slide 27 she says:

Re: show/list

2013-11-14 Thread Robert Newson
deprecate does not require or imply a replacement, it's merely express disapproval of. That said, Joan is wrong to assert that Show/List is deprecated, no such decision has been made by the couchdb dev team, let alone approved. B. On 14 November 2013 17:52, Benoit Chesneau bchesn...@gmail.com

Re: HTTP request with CouchDB

2013-11-13 Thread Robert Newson
what Jens said. We prevent this deliberately. Crowbar it back in at your own risk. B. On 13 November 2013 15:45, Jens Alfke j...@couchbase.com wrote: On Nov 13, 2013, at 4:48 AM, Hank Knight hknight...@gmail.com wrote: function(doc, req) { var http = new XMLHttpRequest(); http.open(

Re: rewrites not working

2013-11-12 Thread Robert Newson
typically, only root can bind to ports under 1024 and couchdb runs, and should run, as not-root. B. On 12 November 2013 10:27, Alexander Gabriel a...@barbalex.ch wrote: Hi Jim I had some trouble configuring my local.ini file. Setting [httpd] port = 80 doesn't work because I get a

Re: Seeking for professional training help with CouchDB

2013-11-12 Thread Robert Newson
My answer was as serious as the question what does an expert knows that is so important that can't be learned on documentation, wikis and blogs?. An expert or experienced practitioner is someone who has already done the above, and more, allowing you to exchange one commodity (money) for another

Re: rewrites not working

2013-11-10 Thread Robert Newson
rewrites.json not rewrites.js On 11 November 2013 00:03, Alexander Gabriel a...@barbalex.ch wrote: Hi I have a couchapp on http://arteigenschaften.ch. It's built with the original python couchapp tool. My goal: Instead of http://arteigenschaften.ch/artendb/_design/artendb/index.html; the

Re: Database information from validate_doc_update

2013-11-09 Thread Robert Newson
validate_doc_update functions deliberately don't let you do this otherwise eventually consistency can be compromised. Also remember that the native view server has no sandbox, anyone allowed to edit design documents can do anything to your servers that the user you run couchdb as can (read files,

Re: Database information from validate_doc_update

2013-11-09 Thread Robert Newson
Deliberately not, no, a validate_doc_update function is only passed the new document you're trying to update, the current one (if there is one), the context of the user and the security object for the database. B. On 9 November 2013 11:00, first-l...@yandex.ru first-l...@yandex.ru wrote: And i

Re: Storage limitations?

2013-11-09 Thread Robert Newson
while the default configuration has max_document_size as 4Gb, it would be very unwise to make a document anywhere near that large. Database size is limited only by disk capacity but note that you'll need some free space for compacting the database. On 9 November 2013 15:28, first-l...@yandex.ru

Re: Storage limitations?

2013-11-09 Thread Robert Newson
. Haven't tried yet but seems logical. On Sat, Nov 9, 2013 at 11:32 AM, Robert Newson rnew...@apache.org wrote: while the default configuration has max_document_size as 4Gb, it would be very unwise to make a document anywhere near that large. Database size is limited only by disk capacity

Re: Tool to upload an entire website to CouchDB

2013-11-08 Thread Robert Newson
couchapp, erica, kanso, there must be others... http://www.couchapp.org/page/index https://github.com/benoitc/erica http://kan.so/ B P.S Friends don't let friends use Perl, m'kay. On 8 November 2013 09:51, Hank Knight hknight...@gmail.com wrote: From a Linux command line, I would like to be

Re: overwrite document without revision?

2013-11-08 Thread Robert Newson
There is not, not even update handlers can do that, by design. B. On 8 November 2013 17:41, Stanley Iriele siriele...@gmail.com wrote: Update handlers sound like the way to go here On Nov 8, 2013 9:39 AM, Alex Ramos i2...@alexramos.net wrote: Is there any way to unconditionally

Re: overwrite document without revision?

2013-11-08 Thread Robert Newson
a document ( http://docs.couchdb.org/en/latest/api/document/common.html#put--db-docid) using it's ID, it will replace the previous revision. Am I missing something? On Fri, Nov 8, 2013 at 11:33 AM, Robert Newson rnew...@apache.org wrote: There is not, not even update handlers can do

Re: overwrite document without revision?

2013-11-08 Thread Robert Newson
Please start a new thread, don't tack unrelated items to existing ones. B. On 8 November 2013 22:52, Naik, Purushottam pn...@ballytech.com wrote: Hi Jens, This (Yes) was sent to confirming to subscription to CouchDB! I am new to CouchDB. We are looking for help on professional training with

Re: Query about your database (Couchdb)

2013-11-06 Thread Robert Newson
Perhaps it's confusing, but IrisCouch provide CouchDB hosting, Cloudant run a distributed database service based on and compatible with CouchDB, but does not run CouchDB itself. B. On 6 November 2013 12:33, Andy Wenk a...@nms.de wrote: Hi Ghadah, you should keep posting this again to the

Re: Can CouchDB be Distributed in a Fail-safe Manner?

2013-11-06 Thread Robert Newson
Then have several haproxy servers and have DNS level failover (like Cloudant does). B On 6 November 2013 19:05, Hank Knight hknight...@gmail.com wrote: At the bottom of the page for Installing Using BigCouch it says: Cloudant recommends HAProxy. http://bigcouch.cloudant.com/use Sounds like

Re: Http 1.1 keep alive

2013-11-05 Thread Robert Newson
yes. (connection keep-alive is also the default for http 1.1). On 5 November 2013 21:46, Stanley Iriele siriele...@gmail.com wrote: Hey all, Does couchdb respect http keep alives?... Most of ReSTs pain comes from creating and tearing down connections... If a client is trying to reuse that

Re: View clean up with automatic compaction

2013-11-04 Thread Robert Newson
That's a nice feature to add but it's not currently present. Submit a JIRA ticket? B. On 4 November 2013 14:35, Tillmann Seidel tsei...@eclipsesource.com wrote: We are using automatic compaction that was introduced with CouchDB 1.2. Is there a way to configure it to clean up old view files?

Re: CouchDB: invalid_json error when adding attachment

2013-11-04 Thread Robert Newson
your url is a path to a document, not a path to an attachment. /wcs/z1/attachment_name_goes_here On 4 November 2013 19:10, Hank Knight hknight...@gmail.com wrote: You can view my document here: https://zuhqtr5.couchappy.com/wcs/z1?rev=7-15810428fa1a0eb14c72e456457bb467 I am trying to add an

Re: CouchDB: Add document through update handler

2013-11-03 Thread Robert Newson
Yes, see the examples in the test suite's update_documents.js. B. On 3 November 2013 20:08, Hank Knight hknight...@gmail.com wrote: I created an Update Handler that works great for updating existing documents I want it to continue updating existing documents however if the document does not

Re: Views with include_docs=true including old or incomplete results.

2013-10-31 Thread Robert Newson
https://wiki.apache.org/couchdb/HTTP_view_API The include_docs option will include the associated document. However, the user should keep in mind that there is a race condition when using this option. It is possible that between reading the view data and fetching the corresponding document that

Re: Installing couchdb-lucene on Windows

2013-10-30 Thread Robert Newson
the README instructions should work on Windows too. 1) 'mvn' 2) unpack the zip file in target/ dir. 3) bin/run B. On 30 October 2013 21:25, Hank Knight hknight...@gmail.com wrote: What is the easiest way to install couchdb-lucene on Windows?

Re: Skipping complex key values in a view function

2013-10-26 Thread Robert Newson
Is there a way to skip a value in a complex key (i.e. an array key) when using startkey and end key? That is, is there a way to match any value for an item in the array? Through a list function, you could, but not otherwise. A view is a linear sequence of rows ordered by the full key, couchdb can

Re: Running Extern PHP Script

2013-10-23 Thread Robert Newson
Your process is required to loop over stdin and keep processing, rather than immediately exiting. B. On 23 Oct 2013, at 18:26, Scott Weber scotty2...@sbcglobal.net wrote: Hello All, I am trying to run a PHP script, using this basic tutorial:

Re: CouchDB: Return Results in Random Order

2013-10-22 Thread Robert Newson
Sorry, nope. On 22 Oct 2013, at 13:28, Hank Knight hknight...@gmail.com wrote: This returns 10 results: http://localhost:5984/mydb/_design/type/_view/q?limit=10key=%22xyz%22 Is there a way for the results to be returned in random order? signature.asc Description: Message signed with

Re: Most recent or first results by custom ID

2013-10-20 Thread Robert Newson
Hi, There's a good answer there from 2 days ago that correctly points out that to achieve the If any one unit has been tested more than once, only measurement results from the first test should be included. requires a different document model than the one in your post. Specifically, use one

Re: any deeper doc for big couch?

2013-10-17 Thread Robert Newson
There's also; http://bigcouch.cloudant.com/ https://cloudant.com/blog/dynamo-and-couchdb-clusters/ https://cloudant.com/blog/scaling-couchdb-with-bigcouch/ https://cloudant.com/blog/choosing-zone-configurations-for-bigcouch/ Once the bigcouch-couchdb merge is done we'll need to improve

Re: Strange values for total_rows and offset

2013-10-15 Thread Robert Newson
total_rows is the total number of rows in the view, not that match your query. B. On 15 Oct 2013, at 13:38, Hank Knight hknight...@gmail.com wrote: There are only 10 matching results where the key is GOLD: http://example.com/abc/_design/iws/_view/q?key=%GOLD%22 However the first line of

Re: Strange values for total_rows and offset

2013-10-15 Thread Robert Newson
Sadly not. On 15 Oct 2013, at 13:56, Hank Knight hknight...@gmail.com wrote: I need the total rows matching my query so I can do proper pagination based on a query. Is this possible? On Tue, Oct 15, 2013 at 9:42 AM, Robert Newson rnew...@apache.org wrote: total_rows is the total

Re: Strange values for total_rows and offset

2013-10-15 Thread Robert Newson
of this feature being added to future releases of CouchDB? I am sure it would benefit many. On Tue, Oct 15, 2013 at 10:19 AM, Robert Newson rnew...@apache.org wrote: Sadly not. On 15 Oct 2013, at 13:56, Hank Knight hknight...@gmail.com wrote: I need the total rows matching my query so I can do

Re: Pulling more docs into update handler

2013-10-15 Thread Robert Newson
That would violate our fundamental approach that a document stands alone (that we make no promises about *other* documents contents or even presence). B. On 15 Oct 2013, at 21:56, Stanley Iriele siriele...@gmail.com wrote: How bad of an idea would it be to add some parameter like include_doc

Re: CouchDB: Using OR in Queries

2013-10-11 Thread Robert Newson
http://example.com/abc/_design/iws/_view/q?startkey=GOLDendkey=SILVER; This assumes you don't have other key values inbetween. B. On 11 Oct 2013, at 13:56, Hank Knight hknight...@gmail.com wrote: This allows my to find all results where the key equals GOLD:

Re: CouchDB: Using OR in Queries

2013-10-11 Thread Robert Newson
That'll work too, though keys for GET is fairly recent iirc, you might have to POST for older versions. OR is easy enough, it's AND that's tricky (and why I wrote couchdb-lucene…) B. On 11 Oct 2013, at 14:09, svilen a...@svilendobrev.com wrote: wasn't it ...?keys=[list] n Fri, 11 Oct

Re: username,password

2013-10-08 Thread Robert Newson
Please read the wiki or our docs. On 8 Oct 2013 05:56, Ashraf Janan ashrafja...@yahoo.com wrote: Hi sir, I tried to send request to couchDb, to get the id for a user, I did the following: http://url/DB name/?student=namepassword=pass What is the wrong please? Best wishes Ashraf

Re: Having troubles with rewrites

2013-10-07 Thread Robert Newson
https://wiki.apache.org/couchdb/Rewriting_urls http://docs.couchdb.org/en/latest/configuring.html#http-rewrite-handler B. On 7 Oct 2013, at 21:24, Stanley Iriele siriele...@gmail.com wrote: I'm in a movie but you need the full path to the rewrites section..also your rewrites path is

Re: Bug? Database compaction keeps re-running continuously on CouchDB 1.4

2013-10-05 Thread Robert Newson
It makes intuitive sense that setting that % too low will cause endless (and pointless) compactions (the ratio of disk_size to data_size exceeding your % immediately after compaction). I'm fairly sure, for example, that the data_size value does not include the space consumed by the many

Re: Performance - Initiating over 100 simultaneous replications.

2013-10-04 Thread Robert Newson
One common gotcha with limits.conf is that couchdb su's to the couchdb user and /etc/pam.d/su in debian/ubuntu defaults to *not* respecting limits.conf, you need to enable it. B. On 4 Oct 2013, at 02:38, Ramkrishna Kulkarni ramkrishna.kulka...@gmail.com wrote: I'm initiating over 100 one

Re: How to implement system hooks

2013-09-24 Thread Robert Newson
Hi, The after_doc_read feature is not available to users at this time, it's an internal feature used for _users and _replicator. B. On 24 Sep 2013, at 09:28, Thorsten Scherler scher...@gmail.com wrote: On 09/23/2013 06:50 PM, Mike Marino wrote: Hi Thorsten, I believe you're asking how

Re: dictionary or array

2013-09-18 Thread Robert Newson
It's JSON. B. On 18 Sep 2013, at 19:48, Rana Bunnni rana_...@yahoo.se wrote: Hi guys! I don't understand when i get the response from web service like (CouchDB) , the response is array or dictionary ? If was an array how can i get the information from it ? And If was a

Re: Redirects from _list functions in CouchDB 1.4

2013-09-17 Thread Robert Newson
Comparing with the examples at https://wiki.apache.org/couchdb/Formatting_with_Show_and_List#Sending_a_Redirect, I think you need to return JSON (which requires the double quotes for code, for example) rather than Javascript. B. On 17 Sep 2013, at 14:34, Bernhard Gschwantner

Re: Change document in validate_doc_update

2013-09-17 Thread Robert Newson
How can end users like me achieve the same for my business logic and altogether bypass the need to write middleware code? It's not currently available to users though I believe that's planned. B. On 17 Sep 2013, at 15:29, Suraj Kumar suraj.ku...@inmobi.com wrote: I'd like to add extra fields

Re: Map view

2013-09-17 Thread Robert Newson
You asked this same question 30 minutes ago and received responses, please do not post duplicate threads. B. On 17 Sep 2013, at 20:06, Rana Bunnni rana_...@yahoo.se wrote: Hi guys, Please , i need help : I have the following map view : function(doc) { if(doc.type === course){ for(var

Re: Beginners approach of designing documents

2013-09-16 Thread Robert Newson
A database per user is not unusual, don't fear it. As for the users aspect, we have this built-in as the _users database, it would be inappropriate to implement a new auth system when one exists. B. On 16 Sep 2013, at 11:48, svilen a...@svilendobrev.com wrote: It depends what are the goals

Re: couchdb crashes silently

2013-09-15 Thread Robert Newson
Those eacces do sound superficially interesting but they are not. What's happening here is that erlang is searching for beam files in the current working directory first, and then the paths where couchdb is actually installed. This is a side-effect of how couchdb is currently started (i.e, in a

Re: couchdb crashes silently

2013-09-15 Thread Robert Newson
But, again, R15 is also new enough to have scheduler problems, if that turns out to be your problem then this change should also fail the same way. I trust R14B01 through extensive punishment, and recommend it. B. On 15 Sep 2013, at 04:14, James Marca jma...@translab.its.uci.edu wrote: eacce

Re: CouchDB authentication

2013-09-15 Thread Robert Newson
http://guide.couchdb.org/draft/security.html https://wiki.apache.org/couchdb/Security_Features_Overview https://wiki.apache.org/couchdb/Setting_up_an_Admin_account B. P.S Please don't make multiple posts for the same question. On 15 Sep 2013, at 09:27, Ashraf Janan ashrafja...@yahoo.com

Re: couchdb crashes silently

2013-09-14 Thread Robert Newson
We should really remove that init.d daemon script and replace it with runit. That way you a) are guaranteed a restart on crash and b) stdout/err is automatically captured (and rotated). In my experience the stdout/err in these events is very useful. To switch, you need runit (obviously) and

Re: Limitation on database per server.

2013-09-10 Thread Robert Newson
Hi, It sounds like you've reached the limit of that server to me. The cumulative resource usage of those thousands of active changes feeds and the small amount of memory in the server in particular. B. On 9 Sep 2013, at 17:30, Herman Chan herman...@gmail.com wrote: Hi all, Recently

Re: Bind Address

2013-09-08 Thread Robert Newson
Patches welcome. On 8 Sep 2013 13:55, Franck Eyraud franck+couchd...@yrnm.net wrote: Paul Davis paul.joseph.davis@... writes: On Wed, Mar 24, 2010 at 3:28 PM, Cairo Noleto caironoleto@... wrote: Hi, how to set bind address for a five unique IPs? (bind_address = 192.168.1.1 192.168.1.2

Re: Replication through proxy does not work?

2013-09-07 Thread Robert Newson
Hi, Replicating through a proxy should be working just fine, more likely it's a problem with the proxy itself. What are you using? B. On 7 September 2013 02:18, Chung, Yang yang.ch...@spirent.com wrote: Hey guys, I've been trying to replicate certain database from external source to local

Re: Deleting Documents with attachments

2013-09-05 Thread Robert Newson
q) If I delete a document with attachments using the DELETE http verb I am guessing the actual document and attachments are deleted as well? a) yes q) also will using the _deleted true preserve the attachments in the database? a) yes. On 5 September 2013 11:04, Stanley Iriele

Re: How long will a non-continuous replication keep trying?

2013-09-05 Thread Robert Newson
You can set the retry count to the special value 'infinity' though. On 5 September 2013 19:38, Dale Harvey d...@arandomurl.com wrote: Actually I dont think continuous replication does not retry indefinitely (sadly), As far as I remember, both continuous and one off replication use the same

Re: Monitoring whether servers are talking to one another.

2013-09-04 Thread Robert Newson
Hi, You should see access attempts in the log, look for lines matching _changes, for example. B. On 3 September 2013 06:48, Daniel Carr d.douglas.c...@gmail.com wrote: Hi all. I have two instances of couchdb which are connected by an unreliable network, and have an continuos asynchronous

Re: _active_tasks replication progress stuck at 98

2013-09-04 Thread Robert Newson
continuous replication, though. Not sure it will reach 100 (and it would obviously be meaningless if it did..). B. On 4 September 2013 23:21, Daniel Carr d.douglas.c...@gmail.com wrote: Hi all. I'm using couchDB 1.2.1 I have a replication that I start by posting to _replicate. When I poll

Re: [ANNOUNCE] Apache CouchDB 1.4.0 released

2013-09-03 Thread Robert Newson
Off-topic. Open a new thread for 'partial updates' assuming that the answer is distinct from the long-standing update handler feature. B. On 3 September 2013 20:33, Stanley Iriele siriele...@gmail.com wrote: Partial updates? What's that?.that's the first time i've heard of that On Sep 3,

Re: Which revisions does _revs_limit prune?

2013-08-31 Thread Robert Newson
The best I can find right now is from couch_key_tree where the truncation occurs; %% What makes this a bit more complicated is that there is a limit to the %% number of revisions kept, specified in couch_db.hrl (default is 1000). When %% this limit is exceeded only the last 1000 are kept. This

Re: Which revisions does _revs_limit prune?

2013-08-31 Thread Robert Newson
and age of a revision is its depth, not how recently it was transferred in a PUT operaiton. B. On 31 August 2013 19:05, Robert Newson rnew...@apache.org wrote: The best I can find right now is from couch_key_tree where the truncation occurs; %% What makes this a bit more complicated

Re: CouchDB Replication Errors

2013-08-30 Thread Robert Newson
Source and target can both be remote, that's not a problem for the replicator. The addressinuse means couchdb's attempt to bind to port 5984 failed because something else already bound it. Check to see if a beam.smp process keeps launching and crashing. The 'badmatch' is that couchdb gets that

Re: Unsolicited email from CouchBase

2013-08-30 Thread Robert Newson
particularly cool to me to be harvesting emails from an apache list for marketing purposes in the first place That would be distinctly uncool if true, thanks for letting us know. B. On 30 August 2013 13:45, Andru Vallance an...@tinymighty.com wrote: Just wondering - has anyone else on this

Re: Lots of requests with continuous replications (every 5 seconds)

2013-08-29 Thread Robert Newson
Hi, The checkpoint interval is now configurable on Cloudant (as of a few days ago) as a consequence of either your report or another user. Just add checkpoint_interval: number to your _replicate request. If your replication is started by CouchDB then this option will not currently work. B. On

Re: Lots of requests with continuous replications (every 5 seconds)

2013-08-29 Thread Robert Newson
, 2013, at 2:36 PM, Robert Newson rnew...@apache.org wrote: Hi, The checkpoint interval is now configurable on Cloudant (as of a few days ago) as a consequence of either your report or another user. Just add checkpoint_interval: number to your _replicate request. If your replication is started

Re: New .Net lib

2013-08-28 Thread Robert Newson
Cool! B. On 28 August 2013 15:03, Daniel Wertheim dan...@wertheim.se wrote: Hi, I'm writing a new async .Net client, currently targeting .Net4+ and Windows store apps. I'm aiming at providing a clean lib that tries to keep the domain language of CouchDb and does not add fancy stuff like

Re: Strange Reduce Value

2013-08-26 Thread Robert Newson
Sure, you're not accumulating your count value, you just overwrite it with the length of the latest values array. I suggest this instead; map: function(doc) { if (doc.$type === 'employee') { emit(doc.surveyID, [doc.answer, 1]); } } reduce:: _sum The answer will be an array where the

Re: Changes API - purged?

2013-08-23 Thread Robert Newson
augusti 2013 skrev Robert Newson: If you use _purge then, yes, the information is purged, which is one of the many reasons you should not use _purge. :) The replicator uses changes for the same purpose as you intent, where the 'external state' is also a couchdb database in another server. You

Re: Changes API - purged?

2013-08-23 Thread Robert Newson
The changes feed is just a listing of documents ordered by their current sequence numbers. Succinctly put. B. On 23 August 2013 16:15, Jens Alfke j...@couchbase.com wrote: On Aug 23, 2013, at 1:01 AM, Jens Rantil jens.ran...@gmail.com wrote: Just to be clear, does compaction influence the

Re: Changes API - purged?

2013-08-23 Thread Robert Newson
Nope. I don't think you should take each document has a seq no too seriously, the number changes and has no particular meaning beyond providing a means of synchronizing databases and indexes. B. On 23 August 2013 17:08, James Hayton theb...@purplebulldog.com wrote: So something interesting

Re: CouchDB crashing at random times

2013-08-23 Thread Robert Newson
no_db_file is alarming. what version of Apache CouchDB is this? B. On 23 August 2013 23:15, Chung, Yang yang.ch...@spirent.com wrote: Hey guys, I am really about to throw my hands up because I can't really figure out why CouchDB keeps during Rails rspec tests. I set the log level to debug

Re: Changes API - purged?

2013-08-22 Thread Robert Newson
If you use _purge then, yes, the information is purged, which is one of the many reasons you should not use _purge. :) The replicator uses changes for the same purpose as you intent, where the 'external state' is also a couchdb database in another server. You can rely on it to contain everything

Re: Erlang vs JavaScript

2013-08-15 Thread Robert Newson
A big +1 to Jason's clarification of erlang vs native. CouchDB could have shipped an erlang view server that worked in a separate process and had the stdio overhead, to combine the slowness of the protocol with the obtuseness of erlang. ;) Evaluating Javascript within the erlang VM process

Re: Mixed view server

2013-08-14 Thread Robert Newson
Nope, sorry. A design document has a single language setting at the top-level. This is because all views in the document are written to the same file and share various internal bits, so it has to be processed by the same view engine. B. On 14 August 2013 12:01, Andrey Kuprianov

Re: Mixed view server

2013-08-14 Thread Robert Newson
Ah, sorry, I missed the nuance. Certainly each design document can use a different view server. B. On 14 August 2013 14:48, Andrey Kuprianov andrey.koupria...@gmail.com wrote: Ah, so it's possible on a design document level. Thanks! Andrey On Wed, Aug 14, 2013 at 6:42 PM, Filippo

Re: Erlang vs JavaScript

2013-08-14 Thread Robert Newson
Erlang is faster and more feature rich. One thing you can do in an erlang view that you can't do in javascript is file:delete(AnyPathYourServerCanAccess), which is why we disable it by default. :) Building a view is inherently serial regardless of the language evaluating each update. B. On 14

Re: Looking for CouchDB Help and Willing to Pay

2013-08-11 Thread Robert Newson
Hi Thomas, While I'm sure someone would take you up on that offer please know that the CouchDB community offers free advice through this mailing list and our IRC channel. Please just ask your questions. B. On 11 August 2013 20:53, Thomas Morel catco...@gmail.com wrote: I need some help with

Re: Couchdb service script does not stop the service

2013-08-09 Thread Robert Newson
check the pidfile (might be empty). If so, just kill the beam.smp processes. There's a known issue with pidfile management on first startup on some OS's. B. On 9 August 2013 10:45, Andrey Kuprianov andrey.koupria...@gmail.com wrote: Hi guys, Im having trouble stopping couchdb service using

Re: What happens when I delete?

2013-08-03 Thread Robert Newson
In, https://wiki.apache.org/couchdb/HTTP_Document_API see the Accessing Previous Revisions section. Though note that previous revisions are not replicated and are deleted for real on compaction. B. On 3 August 2013 17:33, Yves S. Garret yoursurrogate...@gmail.com wrote: I'm looking at how I

Re: CouchDB: JSON Callback

2013-07-30 Thread Robert Newson
Enable JSONP (http://docs.couchdb.org/en/latest/config_reference.html#httpd-configuration-options) and then add ?callback=foo. couchdb will then return foo({rows... ); I failed to find a write-up of JSONP in our manual or even a mention on the wiki, sorry about that. B. On 30 July 2013 01:06,

Re: couchdb lucene, tricky query question

2013-07-30 Thread Robert Newson
?q=value:Antarctica AND (membername:pantagruel membername:hosein) will work as you expect (once you s/ /%20), the default boolean operator is or, so the above is the same as; ?q=value:Antarctica AND (membername:pantagruel OR membername:hosein) On 30 July 2013 14:24, bryan rasmussen

Re: CouchDB: Display 3 rows with the highest value

2013-07-30 Thread Robert Newson
I'll note, one time only, that you asked this same question in #couchdb IRC room but did not engage with the help you were receiving. Views are ordered by their key, their full key, and nothing but their key. So you can't perform the query you are after. Namely, sorting by value. B. On 30 July

Re: is it safe to delete the log file?

2013-07-30 Thread Robert Newson
couchdb won't close the file descriptor, so be sure to use 'copytruncate' option with logrotate. B. On 30 July 2013 22:08, Jim Klo jim@sri.com wrote: when you built/installed couchdb… there should be a logrotated config file that was generated somewhere that you either need to link or

Re: How to enter admin password?

2013-07-29 Thread Robert Newson
you can authenticate with http basic auth or cookie (obtained from _session). http://guide.couchdb.org/draft/security.html B. On 29 July 2013 18:49, Yves S. Garret yoursurrogate...@gmail.com wrote: I specified a password for my instance of couchdb for admin tasks. Now, when I try to create

Re: Two way replication question

2013-07-29 Thread Robert Newson
CouchDB will check that the current revision of every document is present on the target and will skip copying it if it is. In your case, the replication will not transfer any documents at all but will check every id/rev pair which will take some time. B. On 29 July 2013 19:37, James Marca

Re: How to enter admin password?

2013-07-29 Thread Robert Newson
Futon has options in the bottom-right corner to sign in. B. On 29 July 2013 19:45, Yves S. Garret yoursurrogate...@gmail.com wrote: But what about through the web interface? On Mon, Jul 29, 2013 at 1:55 PM, Robert Newson rnew...@apache.org wrote: you can authenticate with http basic auth

Re: Two way replication question

2013-07-29 Thread Robert Newson
correct. On 29 July 2013 20:14, James Marca jma...@translab.its.uci.edu wrote: On Mon, Jul 29, 2013 at 07:47:10PM +0100, Robert Newson wrote: CouchDB will check that the current revision of every document is present on the target and will skip copying it if it is. In your case

Re: CouchDB: Counting Total Occurrences of Unique Items

2013-07-28 Thread Robert Newson
add ?group=true On 28 July 2013 19:36, Hank Knight hknight...@gmail.com wrote: Aurélien, I do not like the resulting format. Using your code, I get this: fruit : 19 I want this: {gooseberry: 3, cranberry: 1, plumb: 1, grapefruit: 2, lime: 1, strawberry: 4, orange: 1, blueberry: 1,

Re: Automatic Unix Timestamp

2013-07-26 Thread Robert Newson
http://wiki.apache.org/couchdb/Document_Update_Handlers On 26 July 2013 18:45, Hank Knight hknight...@gmail.com wrote: When I post there I get an error: {error:not_found,reason:missing} My question is how to add that update handler so I can point to it. Can I add an update handler using

Re: Trouble adding update function

2013-07-26 Thread Robert Newson
Use couchapp or kanso or situp or anything to help you form a properly formed design document. Short version: You are posting a javascript function where a JSON document is needed; http://wiki.apache.org/couchdb/Document_Update_Handlers On 26 July 2013 19:32, Hank Knight hknight...@gmail.com

Re: Is it fine to replicate databases from couchdb v1.1.1 to v1.3.0 / v1.3.1?

2013-07-22 Thread Robert Newson
It's fine. B. On 22 July 2013 11:57, Rao, Zhiqing z...@qti.qualcomm.com wrote: Hi, We have some old databases that with couchDB v1.1.1 , and now we want to add another server with the new version of couchdb, probably v1.3.0 or v1.3.1. I have replicated some of the databases and the

Re: Errors in Couch 1.3.1 log

2013-07-20 Thread Robert Newson
eaddrinuse. You have something already bound to port 5984 (probably another couchdb instance). On 20 July 2013 17:12, Andrey Kuprianov andrey.koupria...@gmail.com wrote: Hi all, I keep on getting this exception in couchdb log. The lot of them actually. What do they mean? I have couchdb 1.3.1

Re: Errors in Couch 1.3.1 log

2013-07-20 Thread Robert Newson
, Jul 20, 2013 at 11:14 PM, Robert Newson rnew...@apache.org wrote: eaddrinuse. You have something already bound to port 5984 (probably another couchdb instance). On 20 July 2013 17:12, Andrey Kuprianov andrey.koupria...@gmail.com wrote: Hi all, I keep on getting this exception in couchdb

Re: using old sha1 hashing in v1.3.x

2013-07-19 Thread Robert Newson
No, but you can reduce the workfactor to 1 which is about the same thing. On 19 July 2013 22:43, Greg Philbrick greg.philbr...@byu.edu wrote: Is it possible to configure CouchDB 1.3.1 to use SHA1 instead of PBKDF2? The couch_httpd_auth section does not appear to allow this.

<    1   2   3   4   5   6   7   8   9   10   >