incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Stockton <chrisstockto...@gmail.com>
Subject Re: A simple comparative benchmark and look at include_docs performance.
Date Wed, 21 Apr 2010 23:29:29 GMT
Hello,

On Tue, Apr 20, 2010 at 7:36 PM, Adam Kocoloski <kocolosk@apache.org> wrote:
> Hmm, so that was a bit of a brain dump :/  I'd say try out the native code compilation
for mochijson2 if your Erlang build supports it (you should see a [hipe] in the erl banner).
 Cheers,

I have built couchdb .11 with +native +inline flags, although we got a
decent speed increase we unfortunately are seeing very unusual errors,
some json that is perfectly valid is being rejected. A example is
below:

  [Thu, 22 Apr 2010 05:56:02 GMT] [debug] [<0.1981.0>] 'PUT'
/db_1/67a6629e56327fb90a07aa79432f7d81 {1,1}
  Headers: [{'Accept',"*/*"},
            {'Authorization',"Basic bmV0d29yazpzYXZldGhlU1FM"},
            {'Content-Length',"198"},
            {'Content-Type',"application/json; charset=ascii"},
            {"Expect","100-continue"},
            {'Host',"g1dlsdbdb001.dev.glbt1.gdg:59845"},
            {'User-Agent',"PECL::HTTP/1.6.5 (PHP/5.3.0)"}]

  [Thu, 22 Apr 2010 05:56:02 GMT] [debug] [<0.1981.0>] OAuth Params: []

  [Thu, 22 Apr 2010 05:56:02 GMT] [error] [<0.1981.0>] attempted
upload of invalid JSON
{"_id":"67a6629e56327fb90a07aa79432f7d81","_rev":"10-0e5902b082406967be785682eebb69a4","data":{"C003651":"asfsafasfdasfd","C012193":"asdfasdfasdfsafdasdfsf"},"type":"model","model":"M4bccfd8c44043"}

  [Thu, 22 Apr 2010 05:56:02 GMT] [info] [<0.1981.0>] 172.19.68.122 -
- 'PUT' /db_1/67a6629e56327fb90a07aa79432f7d81 400

  [Thu, 22 Apr 2010 05:56:02 GMT] [debug] [<0.1981.0>] httpd 400 error response:
   {"error":"bad_request","reason":"invalid UTF-8 JSON"}

Any thoughts on this by chance?

Kind Regards,

-Chris

Mime
View raw message