Re: INHERITS doesn't offer enough functionality

Поиск
Список
Период
Сортировка
От Chris
Тема Re: INHERITS doesn't offer enough functionality
Дата
Msg-id 39EFF5CD.149CC7C8@bitmead.com
обсуждение исходный текст
Ответ на Re: INHERITS doesn't offer enough functionality  ("Oliver Elphick" <olly@lfix.co.uk>)
Список pgsql-hackers
>  The point is: this is classic, but noone does it 
> like this if your really have a larger hierarchy of 
> classes. You'll not get any good performance, when 
> solving an association in your oo
> program, because the framework has to query against 
> each table: 6 tables - 6 queries !!! :-(((((
> 
>  With the PostgreSQL approach one can send ONE query 
> against the tables and one would get one result ... 
> which will be much faster (I hope so ... that has to 
> be prooved ..).=

You'll still have to do 6 queries in postgres because it does not return
fields in sub-classes. Imagine the root of the hierarchy is abstract
with no fields. You query this class and you get 100 tuples with no
columns! This is the aspect I'm hoping to fix but I'm waiting for Tom to
re-do the query data structures before I do changes that are thrown
away.

>  Actually one should think about: why do I really want to
> have inheritance in the oo-rdbms ? Actually I could put
> all columns (of all classes in this hierarchy into one table
> and that's it).

Ouch. That way lies madness.


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

Предыдущее
От: "Kevin O'Gorman"
Дата:
Сообщение: Solved: Re: Unable to access CVS server
Следующее
От: Zeugswetter Andreas SB
Дата:
Сообщение: AW: AW: Backup, restore & pg_dump