On 19 April 2010 08:44, Patrick Barnes mrtr...@gmail.com wrote:
Partly - I was wondering also if there was something similar to the
functionality phpunit has for initialising database contents from XML files,
etc.
snip
Hmm right sorry, I don't know. I'd say look at Object Freezer
yes i know that i can create my own ids
but i am interesting in what way couch guy's solve this.
2010/4/19 David Coallier david.coall...@gmail.com:
i need short integer ids in url like host/audios/23342
how couch guy's catch this?
You'd have to create your own IDs when creating a new
Following will create a lot of rows but the key size would be small:
from_time = x milliseconds
till_time = y milliseconds
for(var i=from_time; i=till_time; i += 6){ //for each visitor, a row
for every minute he/she was inside.
emit(i, doc._id);
}
Then you can query with the time (in
On Mon, Apr 19, 2010 at 4:58 PM, Manokaran K manoka...@gmail.com wrote:
Following will create a lot of rows but the key size would be small:
from_time = x milliseconds
till_time = y milliseconds
for(var i=from_time; i=till_time; i += 6){ //for each visitor, a row
for every minute
SOLVED - pure incompetence (ouch).
in trying to fix this pb I re-ran port install couchdb. This then
wrote a fresh version of local.ini which corrected my original error.
I have a ) instead of a } in local.ini. Only excuse is in my vi font
these look the same. especially round 2am.
which
On 19 April 2010 11:19, faust faust...@gmail.com wrote:
yes i know that i can create my own ids
but i am interesting in what way couch guy's solve this.
Right... I'm not sure I exactly understand what you mean. Do you mean
how could one do that from within CouchDB using autogenerated IDs
Hi,
Use epochs. Since they are seconds since 1970 they will sorty nicely.
var startTime = startDate.getTime()/1000.0;
var endTime = endDate.getTime()/1000.0;
emit([startTime, endTime]);
best,
alan
On Mon, 19 Apr 2010, Manokaran K wrote:
On Mon, Apr 19, 2010 at 4:58 PM, Manokaran K
is it possible send couch like /_uuids?count=10
and its return me short ids?
2010/4/19 faust faust...@gmail.com:
I need autogenerated short ids.
i try use rand() is it fine?
2010/4/19 David Coallier david.coall...@gmail.com:
On 19 April 2010 11:19, faust faust...@gmail.com
no, UUIDs need to be as unique as possible. couchdb's _uuid API guarantees a
high entropy for the produced IDs. the problem with (short) numeric IDs is,
that they are more likely to produce collisions. if you do not use replication,
you can basically do this:
1) create a number on your client
You could also do this;
1) GET /db/my_counter_doc
1a) if 404, PUT /db/my_counter_doc -d '{counter:0}'
1b) if 200, PUT /db/my_counter_doc -d '{counter:counter+N,
_rev:rev from 1a}'
1c) repeat step 1 if 1b returned 409.
2) use numbers from counter to counter+N for doc ids.
This is a common
On Apr 17, 2010, at 11:09 AM, Eric Casteleijn wrote:
On 04/16/2010 04:46 AM, wolfgang haefelinger wrote:
Thanks Robert
for your answer. However, it is not exactly what I was looking for
(due to my inappropriate problem description).
Firstly, I do want to have the document instead of the
On Apr 17, 2010, at 2:02 PM, Noah Slater wrote:
On 17 Apr 2010, at 18:51, Zachary Zolton wrote:
Let me tell you something: Django may be built for the Web, but
CouchDB is built of the Web.
Two of my coworkers were turned off by that statement, noting that it
felt adversarial.
Hi Fredrik, thanks for the details. The CPU utilization does not sound normal
at all. I have a node replicating 30-75 updates/sec (unique documents, diurnal
fluctuations) for several months now and it almost never uses more than 50% of
one core of a virtualized e5410 box with 1.7G of RAM.
I
It seems like a hole in the API to me. POSTing keys to a _view is certainly
possible, I don't see why that should be disallowed for a _list.
Adam
On Apr 18, 2010, at 4:12 AM, Nils Breunese wrote:
I don't think so. A list function is a function that processes the results of
a view query, so
On Apr 18, 2010, at 1:37 AM, Jarrod Roberson wrote:
I have a reduce function that outputs keys with duplicate ids with
group_level=1, I would really like to say something like
group_level=id and have it do the grouping on id rather than my key?
Is this possible?
--
Jarrod Roberson
Hi
Cool. The more the merrier!
On 19 Apr 2010, at 14:43, Adam Kocoloski wrote:
On Apr 17, 2010, at 2:02 PM, Noah Slater wrote:
On 17 Apr 2010, at 18:51, Zachary Zolton wrote:
Let me tell you something: Django may be built for the Web, but
CouchDB is built of the Web.
Two of my
Hi,
https://issues.apache.org/jira/browse/COUCHDB-722
Thanks,
Fredrik
-Original Message-
From: Adam Kocoloski [mailto:kocol...@apache.org]
Sent: den 19 april 2010 16:05
To: user@couchdb.apache.org
Subject: Re: CouchDB and Hadoop_
Hi Fredrik, thanks for the details. The CPU
On Apr 19, 2010, at 10:43 AM, Eric Casteleijn wrote:
On 04/19/2010 10:22 AM, Adam Kocoloski wrote:
On Apr 19, 2010, at 10:10 AM, Eric Casteleijn wrote:
I still wonder in that case if there is something you can do to
shrink the stored views somewhat: gwibber had a number of views that
On Mon, Apr 19, 2010 at 4:13 PM, Noah Slater nsla...@me.com wrote:
Cool. The more the merrier!
Yeah, but I had a serious WTF moment while reading about it:
Written in erlang, REST API, map/reduce, json... Come on...
--
Mirsal
On 19 April 2010 15:51, Mirsal Ennaime mirsal.enna...@gmail.com wrote:
On Mon, Apr 19, 2010 at 4:13 PM, Noah Slater nsla...@me.com wrote:
Cool. The more the merrier!
Yeah, but I had a serious WTF moment while reading about it:
Written in erlang, REST API, map/reduce, json... Come on...
As
On 19 Apr 2010, at 15:51, Mirsal Ennaime wrote:
On Mon, Apr 19, 2010 at 4:13 PM, Noah Slater nsla...@me.com wrote:
Cool. The more the merrier!
Yeah, but I had a serious WTF moment while reading about it:
Written in erlang, REST API, map/reduce, json... Come on...
Huh?
This is looking quite nice. I'm not a grammar expert but I think you can lose
the two commas.
Cheers,
Bob
On Apr 19, 2010, at 11:58 AM, J Chris Anderson jch...@gmail.com wrote:
On Apr 17, 2010, at 9:30 AM, Noah Slater wrote:
CouchDB is a database built for the Web.
Or, like I already
On Mon, Apr 19, 2010 at 10:10 AM, Adam Kocoloski kocol...@apache.org wrote:
On Apr 18, 2010, at 1:37 AM, Jarrod Roberson wrote:
Hi Jarrod, I'd need a little more detail or an example before I could whether
what you want to do is possible. Best,
Adam
I am working on what I think is a
On Mon, Apr 19, 2010 at 8:20 PM, Paul Bonser mister...@gmail.com wrote:
On Wed, Apr 14, 2010 at 6:25 AM, James Fisher jameshfis...@gmail.com
wrote:
OK, I'm still at the messing-around-in-Inkscape stage, but this is how
things stand (ignore the schema diagram thing, which will obviously be
I've found that replication crashes pin the cpu and can even make couch
unresponsive because the message queues and internal state of the
replication processes is huge SASL logging serializes it all to the log
file.
I don't really have a good solution to this. Maybe there should be an option
for
CouchDB definitely needs a bit of spring cleaning in the logging department.
If you haven't noticed, most error messages are written *twice* in the logs,
once in a very nice format by SASL and once in a crude format by couch_log. I
believe this is because the couch_log event handler is
Nice! Definitely the full state should be kept if debug logging is on, but I
like this approach. I had thought of truncating the state in terminate but
hadn't put it together to check the log level and was worried about losing
debugging info.
At least this portion of the patch might be a great
Hi,
I was wondering if there is a way to return html content for 404 errors,
instead of the default json:
HTTP/1.1 404 Object Not Found
Server: CouchDB/0.11.0 (Erlang OTP/R13B)
Date: Tue, 20 Apr 2010 02:58:22 GMT
Content-Type: text/plain;charset=utf-8
Content-Length: 41
Cache-Control:
28 matches
Mail list logo