Re: jsonb format is pessimal for toast compression

From: Peter Geoghegan <pg(at)heroku(dot)com>
To: Ants Aasma <ants(at)cybertec(dot)at>
Cc: Andrew Dunstan <andrew(at)dunslane(dot)net>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>, Larry White <ljw1001(at)gmail(dot)com>
Subject: Re: jsonb format is pessimal for toast compression
Date: 2014-08-08 20:29:01
Message-ID: CAM3SWZSYT6c13Zdrj4tDyoBR51M5ca9CJ8bf74T36=95j7GcKQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Fri, Aug 8, 2014 at 12:41 PM, Ants Aasma <ants(at)cybertec(dot)at> wrote:
> I don't think binary search is the main problem here. Objects are
> usually reasonably sized, while arrays are more likely to be huge. To
> make matters worse, jsonb -> int goes from O(1) to O(n).

I don't think it's true that arrays are more likely to be huge. That
regression would be bad, but jsonb -> int is not the most compelling
operator by far. The indexable operators (in particular, @>) don't
support subscripting arrays like that, and with good reason.

--
Peter Geoghegan

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Geoghegan 2014-08-08 23:10:06 Re: jsonb format is pessimal for toast compression
Previous Message Hannu Krosing 2014-08-08 19:50:39 Re: jsonb format is pessimal for toast compression