Leaving the data in the relational database

Most commonly, data that's already stored in the database is allowed to remain in the relational database and it is accessed as it is needed. This allows relational data and object data to exist together in the same system without converting the relational data.

The class hierarchy you create for the existing data allows you to access the non-object data in an object manner. In this example, the views used to create the classes at the various levels would be used at run-time to imitate the object structure. For instance, the Employee View would imitate querying the object structure at the Employee Class level. See Employee View (new window) and Employee View equivalent from the class hierarchy (new window).

The upside of this approach is that you can leave all your existing data in place and yet have an object schema of the data that can be used by object applications. This is one of the excellent uses of object-relational mapping products (new window)

The downside of this approach is that you generally will not get higher performance from your data in the object application. You may if you can take advantage of caching the data in the client application, thereby minimizing access to the relational database. See caching (new window).

It is the access to the relational database that is not faster. In fact it may be slower because of the additional layer of software to convert relational tuples to object instances. Also, accessing classes using underlying relational views that use joins could still be quite slow, depending how slow the joining operations are in the Relational DBMS. In the example of the Workstudy Class, it requires the use of joins. See WorkStudy View (new window).

If the application cannot take advantage of caching the results of these joins, there is a potential performance problem. Finally, traversals of references between objects (new window) still will use index searches and, in some cases, intersection entities and joins, when the relational data accessed by the objects first comes from the Relational DBMS.

Next: Converting the data and storing it in an object database. Also see the menu choices at the right below.

 

Web Services and Service-Oriented Architectures
Online articles>
Consulting
Mentoring
Speaking
Suggested programs
Stencils for the Savvy Manager's Guide
Links
Mail list
Privacy policy
Sitemap
Contact
Web Services articles
XML standards and vocabularies
Application server articles
Database concepts and standards
Object database articles
Relational database articles
Object-relational mapping articles>
XML database articles
XML middleware articles
Article Sponsorship
Reprint policy
Object-relational mapping (OR mapping) definition
When object-relational mapping should be used
Mapping layer
Writing your own mapping layer
Using existing relational schema>
Article suggestions
Type codes
Using type codes to construct classes
Multi-type views
Checking the class hierarchy
Adding method code
Using the data>
Leaving the data in the relational database>
Converting the data and storing it in an object database
Leaving the data in a relational database and using an object database

Related recent articles from Google News


Which EII Solution Is Right for You?
Web Services Journal, NJ - May 8, 2008
This model serves as the schema of the virtual database. The types of logical models include relational, object, and XML. Depending on the approach, ...

Errors while Exporting Access database to Word Merge Format
American Chronicle, CA - May 9, 2008
MS Access is relational database application. To use it in documents without retyping, Word merge is used. But sometimes, when you export a table from MS ...

RETINOBASE: a web database, data mining and analysis platform for ...
7thSpace Interactive (press release), NY - May 5, 2008
In this context we have built RETINOBASE, a dedicated microarray database for retina.DescriptionRETINOBASE is a microarray relational database, analysis and ...

LinuxDevices.com

Embedded Linux SQL database adds Java, C# bindings
LinuxDevices.com - May 7, 2008
ITTIA has released a new version of its lightweight SQL R-DBMS (relational database management system) for embedded systems and mobile devices. ...

Hospital Reg/ADT Application Senior Developer.
Seattle Times, United States - May 5, 2008
?Minimum two years experience in application development using relational database technologies in a UNIX or LINUX-based client server environment. ...

More related news: relational database schema - Google News

Related books at Amazon.com


Database Design for Mere Mortals(R): A Hands-On Guide to Relational Database Design (2nd Edition) (For Mere Mortals)
by Michael J. Hernandez
Average Customer Review: 4 stars based on 123 reviews.
Customer Review: This is an excellent book for the average person who wants to know more about database design. The author has an excellent way of explaining the not so obvious and bringing it down to layman's terms. Great learning tool.

Database in Depth: Relational Theory for Practitioners
by C.J. Date
Average Customer Review: 4 stars based on 19 reviews.
Customer Review: When I was early in my Computer Science degree I took a course in which we discussed database fundamentals. In that class we learned about things like tuples, relations, predicates, predicate logic and deductive proofs. All of these were involved with the relational model, but it wasn't until later when I discovered the writings of ...

Information Modeling and Relational Databases, Second Edition (Morgan Kaufman Series in Data Management Systems)
by Terry Halpin, Tony Morgan
Average Customer Review: 5 stars based on 2 reviews.
Customer Review: Everyone needs this book. Read more to find out why: If you intend to create genuinely useful business applications without first creating an accurate conceptual data model and deriving the database schema from the model, then I hope your projects have very large budgets and flexible deadlines, because you'll need both. Accurate conc...

Inside Relational Databases with Examples in Access
by Mark Whitehorn, Bill Marklyn
Average Customer Review: 4.5 stars based on 35 reviews.
Customer Review: The authors of this book don't avoid the more difficult concepts in understanding relational databases but they do a great job of explaining things in simple English. This is a good book for anyone who finds themselves having to work with relational databases but haven't understood why they're built the way they are. I've never read...

Logic and Databases: The Roots of Relational Theory
by C. J. Date
Publisher: Trafford Publishing
Publication Date: June 2007

More related books: Search Amazon.com for relational database

 

Copyright © 2000-2008 Barry & Associates, Inc. All Rights Reserved.
You can use this material for your work or classes. Click here for our reprint policy.
www.service-architecture.com

 

 Information on becoming a sponsor

 

 

Google

 

Barry & Associates, Inc.