Re: Database information from validate_doc_update

2013-11-09 Thread first-l...@yandex.ru
work correctly in future releases. -- ,,,^..^,,, On Sat, Nov 9, 2013 at 1:02 PM, first-l...@yandex.ru wrote: It is very good! But, i create validation function and see error: Error: EXIT {{badmatch,[]}, [{couch_query_servers,new_process,3, [{file,"couch_query_servers.erl&q

Re: Storage limitations?

2013-11-09 Thread first-l...@yandex.ru
Base size in no limit. But file system may be limit by file size. Doc size limit is 4Gb. (one or two or more field: total - 4Gb) I have two storage questions. How big can any one field in one doc be? Also, is there any limit on the size of a CouchDB? Meaning, if I have 1TB of free disk space, wil

Re: Database information from validate_doc_update

2013-11-09 Thread first-l...@yandex.ru
implementation? 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 wrote: And

Re: Database information from validate_doc_update

2013-11-09 Thread first-l...@yandex.ru
ments can do anything to your servers that the user you run couchdb as can (read files, open network connections, delete files, etc). B. On 9 November 2013 09:02, first-l...@yandex.ru wrote: It is very good! But, i create validation function and see error: Error: EXIT {{bad

Re: Database information from validate_doc_update

2013-11-09 Thread first-l...@yandex.ru
quot;>>, <<"quota limit reached">>}]}) end, 1 end. -- ,,,^..^,,, On Sat, Nov 9, 2013 at 7:56 AM, first-l...@yandex.ru wrote: Hello. Can I get information about the database as a function of validate_doc_update? For example, to find out the size of the data

Database information from validate_doc_update

2013-11-08 Thread first-l...@yandex.ru
Hello. Can I get information about the database as a function of validate_doc_update? For example, to find out the size of the database or the number of documents. Example: function(newDoc, oldDoc, userCtx) { if ( thisDb.disk_size > 1000 ) throw({forbidden : 'you have exceeded the limit'});