Re: Postgres NoSQL emulation - Mailing list pgsql-performance

From Pierre C
Subject Re: Postgres NoSQL emulation
Date
Msg-id op.vvbdiwdceorkce@apollo13
Whole thread Raw
In response to Re: Postgres NoSQL emulation  (Merlin Moncure <mmoncure@gmail.com>)
List pgsql-performance
> why even  have multiple rows? just jam it all it there! :-D

LOL

But seriously, when using an ORM to stuff an object hierarchy into a
database, you usually get problems with class inheritance, and all
solutions suck more or less (ie, you get a zillion tables, with assorted
pile of JOINs, or stinky key/attributes schemes where all attributes end
up as TEXT, or a table with 200 columns, most of them being NULL for a
given line).

NoSQL guys say "hey just use NoSQL !".

In a (common) case where the classes have some fields in common and othen
searched, and that the DB needs to know about and access easily, those
become columns, with indexes. Then the other fields which only occur in
some derived class and are not very interesting to the DB get shoved into
a hstore. The big bonus being that you use only one table, and the "extra"
fields can still be accessed and indexed (but a little slower than a
normal column). However I believe hstore can only store TEXT values...

Could be interesting. Or not.

pgsql-performance by date:

Previous
From: "Prodan, Andrei"
Date:
Subject: 'Interesting' prepared statement slowdown on large table join
Next
From: Mason S
Date:
Subject: Re: partition query on multiple cores