Re: relational tables and objects

From: Dm. Arapov <darapov_at_cox.net>
Date: Thu, 31 Oct 2002 19:02:36 GMT
Message-ID: <g7fw9.72577$vq2.2061284_at_news1.east.cox.net>


"Jan Hidders" <hidders_at_REMOVE.THIS.uia.ua.ac.be> wrote:

> Just for my understanding, your library doesn't provide persistency, does
> it?

The library neither provides persistency, nor prohibits it. It is parameterized with a class, which function is to provide implementation of tables.

For demo purposes we have table implementation based on sorted std::vector. However, we understand that this implementation has several limitations: it does not allow efficient inserts/deletes, and has no persistence support.

Our design goal was to allow users have their own implementations of tables and indexes. RTL makes possible to have different implementations for different tables. One can use B-trees for big tables, which require external storage, a std::map based implementation for

smaller, frequently updated tables, sorted std::vector implementation for heavy used,

in-memory tables.

>in almost all cases a more specific data structure will perform better.

Sure. It is an axiom, that in assembly language everything can be coded to perform better.

It simply takes too long to tailor specific data structure for each case.

"Jan Hidders" <hidders_at_REMOVE.THIS.uia.ua.ac.be> wrote in message news:3dc06a91$1_at_news.uia.ac.be...
> Arkadiy Vertleyb wrote:
> >Hi everybody,
> >
> >We are trying to determine if there is any interest in a C++ library
> >we recently wrote:
> >
> >The library implements an STL-compatible "relational table" container.
>
> Just for my understanding, your library doesn't provide persistency, does
> it? So since your data is going to be in main memory, why would you want
> to represent your data in the relational model? That is not what the
> relational model was designed for and in almost all cases a more specific
data
> structure will perform better.
>
> -- Jan Hidders
Received on Thu Oct 31 2002 - 20:02:36 CET

Original text of this message