Search Postgresql Archives

Re: performance considerations of jsonb vs separate rows

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> On 19 June 2017 at 21:29, Rob Nikander <rob.nikander@xxxxxxxxx> wrote:
>
> I'm wondering about the tradeoffs, specifically: is it possible to update one piece of a jsonb value without having to rewrite the entire field? There are cases where that data field was getting pretty big (500kb). Would you expect any obvious performance differences between these two options?

Unfortunately no, an entire jsonb field has to be written back even if you've touched only one key.
From my own benchmarks it looks like you'll scarcely notice this (e.g. in comparison with MongoDB) only if you work
with small enough documents (about 2kb), and everything above this limit more or less seriously hit the performance.
You can take a look at this presentation [1] from Oleg Bartunov, it contains results of some benchmarks (from slide 44).

[1]: http://www.sai.msu.su/~megera/postgres/talks/jsonb-pgconf.us-2017.pdf

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]

  Powered by Linux