Re: Problem with the default registration of the JSON adapter

From: Christophe Pettus <xof(at)thebuild(dot)com>
To: Federico Di Gregorio <fog(at)dndg(dot)it>
Cc: psycopg(at)postgresql(dot)org
Subject: Re: Problem with the default registration of the JSON adapter
Date: 2013-07-22 15:55:47
Message-ID: 4C709050-259C-4351-84BC-E5A43AD5B931@thebuild.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: psycopg


On Jul 22, 2013, at 8:20 AM, Federico Di Gregorio wrote:

> JSON is different because the representation you get is exactly the
> representation you may want to send to the the client (probably over
> HTTP) and the conversion text->json objects->text uses quite a bit of
> cpu/memory.

If you want the text version, you can ask for the text version; I don't think it's worth breaking an existing API over. We already have a precedent here in hstore.

--
-- Christophe Pettus
xof(at)thebuild(dot)com

In response to

Responses

Browse psycopg by date

  From Date Subject
Next Message Federico Di Gregorio 2013-07-22 16:06:09 Re: Problem with the default registration of the JSON adapter
Previous Message Federico Di Gregorio 2013-07-22 15:20:58 Re: Problem with the default registration of the JSON adapter