Re: Mapping objects into rdb

From: Robert Klemme <klemme_at_unity.de>
Date: 1999/02/19
Message-ID: <36CBE5E6.52D52ABB_at_unity.de>#1/1


Johan Nilsson schrieb:
>
> Hi,
>
> I'm designing a system where the objects' data need to be persistently
> stored in a rdb (Oracle8). For compatibility reasons with existing
> systems,
> I cannot use an odb. I'm doing the development in C++ and likely
> COM/DCOM.
> [...]
> If you have any experience in designing and implementing a similar
> system,
> please share it with me.

Well, I have been working at a project where they had done something similar. They did it by storing the objects in blobs. Other approaches try to store objects in tables so you can see every attribute. The second solution has the advantage and disadvantage that you can modify objects without their control. The first solution is slightly better for templates.

The main problem is the often called "impedance mismatch" between OO concepts and relational concepts. This brings you always into trouble: Either your mapping is quite generic and slow or it is optimized, fast and thus difficult to amend. However there are products on the market. Unfortunately I have no pointers for you.

In any case: It's an awful topic because OO and relational db's simply do not fit. And maybe the effort is better spend on convincing people to use an object oriented database. For masses of data I recommend a page server which is more efficient in this case.

Bye

        robert

-- 
Robert Klemme
Internet Consultant/Berater
-------------------------------------------------------------
UNITY AG ~ Riemekestra_e 160 ~ D-33106 Paderborn
http://www.unity.de ~ E-Mail: mailto:klemme_at_unity.de
Telefon: 0 52 51 / 6 90 90-207 ~ Fax: 0 52 51 / 6 90 90-199
-------------------------------------------------------------


      [ Send an empty e-mail to c++-help_at_netlab.cs.rpi.edu for info ]
      [ about comp.lang.c++.moderated. First time posters: do this! ]
Received on Fri Feb 19 1999 - 00:00:00 CET

Original text of this message