Re: Database INNOVATION

Поиск
Список
Период
Сортировка
От Darren Duncan
Тема Re: Database INNOVATION
Дата
Msg-id 4CBE7A44.505@darrenduncan.net
обсуждение исходный текст
Ответ на Re: Database INNOVATION  (Craig Ringer <craig@postnewspapers.com.au>)
Ответы Re: Database INNOVATION  (Craig Ringer <craig@postnewspapers.com.au>)
Список pgsql-general
Craig Ringer wrote:
> Now, personally, if we're talking "database innovation" what I'd like to
> see is a built-in way to get query results straight from the database as
> graphs of tuples and their relationships. Tabular result sets are poorly
> suited to some kinds of workloads, including a few increasingly common
> ones like document-oriented storage and use via ORMs. In particular, the
> way ORMs tend to do multiple LEFT OUTER JOINs and deduplicate the
> results or do multiple queries and post-process to form a graph is
> wasteful and slow. If Pg had a way to output an object graph (or at
> least tree) natively as, say, JSON, that'd be a marvellous option for
> some kinds of workloads, and might help the NoSQL folks from whining
> quite so much as well ;-)

Never mind JSON.  You can fix the outer joins problem and other issues simply by
supporting relation-valued attributes, or in other words, row field values that
are rowsets.  And recursively.  Parent records in outer rowset, child records
inside.  And this is all perfectly normal for the relational model, and SQL's
differing from this is part of how SQL is crippled and not really the relational
model.  I demonstrate how it might be better done with my Muldis D language. --
Darren Duncan

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

Предыдущее
От: "Brent Wood"
Дата:
Сообщение: Re: Database INNOVATION
Следующее
От: Craig Ringer
Дата:
Сообщение: Re: Database INNOVATION