Re: Problem with the default registration of the JSON adapter

Поиск
Список
Период
Сортировка
От Christophe Pettus
Тема Re: Problem with the default registration of the JSON adapter
Дата
Msg-id 4C709050-259C-4351-84BC-E5A43AD5B931@thebuild.com
обсуждение исходный текст
Ответ на Re: Problem with the default registration of the JSON adapter  (Federico Di Gregorio <fog@dndg.it>)
Ответы Re: Problem with the default registration of the JSON adapter
Список 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@thebuild.com



В списке psycopg по дате отправления:

Предыдущее
От: Federico Di Gregorio
Дата:
Сообщение: Re: Problem with the default registration of the JSON adapter
Следующее
От: Federico Di Gregorio
Дата:
Сообщение: Re: Problem with the default registration of the JSON adapter