Re: Persistence
- From: "Alvin Ryder" <alvin321@xxxxxxxxxxx>
- Date: 13 Jul 2006 00:39:59 -0700
frebe73@xxxxxxxxx wrote:
In the OO world, people often claim that they use a SQL database "for
persistence". Mostly I think that the person making that claim actually
uses other features - like transactions, integrity, queries, etc - and
just use the word persistence because it's a buzzword. But sometimes
there are people that claims that only the persistence features of a
SQL database should be used or that a SQL database does not provide any
other features but persistence.
What are the opinitions at comp.object?
1. A SQL database provides many other features but persistence and they
should be used. The use of the word persistence is just used in a
routine manner and is not a correct description of what we use a SQL
database for.
I use "persistence" to signify saving and loading of otherwise memory
bound objects to permanent storage thereby allowing them to live longer
than the OO program. I have also encountered the phrase "object IO" to
mean the same thing but not at this NG.
It is object storage from an OOP perspective. There is also
serialization, which isn't just another buzzword for the sake of it, it
refers to a different kind of object IO.
2. A SQL database provide many other features but persistence, but the
persistence feature is the only thing that should be used.
The relational model (RM) and RDBMS have strengths and features of
their own, which should not be overlooked.
3. A SQL database does only provide persistence features.
I think the opposite, I think the RM has next to no support for object
persistence.
The relational model represents data in one and only one way, as a set
of tuples in relations where each tuple contains a set of attributes.
There is no direct support of object storage and subsequent
instantiation of objects from disk storage. That's why some people have
trouble mapping from OOP to the RM. I suppose if they understood both
technologies better they'd have less trouble because there are
relatively easy ways to do it.
4. Something else.
Fredrik Bertilsson
http://frebe.php0h.com
Cheers.
.
- Follow-Ups:
- Re: Persistence
- From: frebe73
- Re: Persistence
- References:
- Persistence
- From: frebe73
- Persistence
- Prev by Date: Re: Biz Modeling - let's try again
- Next by Date: Re: Persistence
- Previous by thread: Persistence
- Next by thread: Re: Persistence
- Index(es):
Relevant Pages
|