On 24 March 2011 14:35, Panop S. <p...@vizrt.com> wrote:
> Hello,
>
>                 I installed CouchDB on windows
> (https://github.com/downloads/dch/couchdb/setup-couchdb-1.0.2_otp_R14B01_spi
> dermonkey_1.8.5.exe ).
>
>                 I have run CouchDB and later get the error message as
> described below.
>
>                 I don't know much about it. Is this going to be  okay ?
>
>                 From logging,  it is down or restart  because my couchDB
> service is still available ??
>
>                 Can anyone suggest how to deal with this kind of message ?
>
>
>
>
>
> Thanks a million,
>
>
>
>
>
>
>
>
>
> [Wed, 23 Mar 2011 05:43:16 GMT] [error] [<0.117.0>] ** Generic server
> <0.117.0> terminating
>
> ** Last message in was {'$gen_cast',
>
>                        {compact_done,
>
>                         {group,
>
>
> <<18,146,95,99,212,197,11,118,42,175,122,243,182,64,
>
>                            36,18>>,
>
>                          {db,<0.113.0>,<0.114.0>,<0.1160.0>,
>
>                           <<"1300858748531001">>,<0.111.0>,<0.115.0>,
>
>                           {db_header,5,78558,0,
>
>                            {1605807330,{548,0}},
>
>                            {1605810367,548},
>
>                            nil,0,nil,nil,1000},
>
>                           78558,
>
>                           {btree,<0.111.0>,
>
>                            {1606120570,{548,0}},
>
>                            #Fun<couch_db_updater.7.10053969>,
>
>                            #Fun<couch_db_updater.8.35220795>,
>
>                            #Fun<couch_btree.5.124754102>,
>
>                            #Fun<couch_db_updater.9.107593676>},
>
>                           {btree,<0.111.0>,
>
>                            {1606124712,548},
>
>                            #Fun<couch_db_updater.10.30996817>,
>
>                            #Fun<couch_db_updater.11.96515267>,
>
>                            #Fun<couch_btree.5.124754102>,
>
>                            #Fun<couch_db_updater.12.117826253>},
>
>
> {btree,<0.111.0>,nil,#Fun<couch_btree.0.83553141>,
>
>                            #Fun<couch_btree.1.30790806>,
>
>                            #Fun<couch_btree.2.124754102>,nil},
>
>                           78567,<<"adapt_collection">>,
>
>
> "../var/lib/couchdb/adapt_collection.couch",[],[],
>
>                           nil,
>
>                           {user_ctx,null,[],undefined},
>
>                           #Ref<0.0.0.217230>,1000,
>
>                           [before_header,after_header,on_file_open],
>
>                           false},
>
>                          <0.1156.0>,<<"_design/feed">>,<<"javascript">>,[],
>
>                          [{view,0,
>
>                            [<<"category">>],
>
>                            <<"function (doc) {\r\n\r\n    if
> (doc.category)\r\n        for (var i = 0; i < doc.category.length; i++)
> {\r\n            var category = doc.category[i]\r\n
> emit(category[\"term\"], doc)\r\n        }\r\n}">>,
>
>                            {btree,<0.1156.0>,

Hi Panop

It looks like you are emitting the whole doc in your view. This bloats
out the view, and couch already supports pulling in the document from
the DB instead of the view if required:

http://muse.couchone.com/testy/_design/categories/_view/categories
http://muse.couchone.com/testy/_design/categories/_view/categories?include_docs=true

I don't know enough about the internals here but likely this is the root cause.

A+
Dave

Reply via email to