0% found this document useful (0 votes)
12 views

Object Relational Database

Object-relational databases (ORDs) combine relational database features with object-oriented principles, enabling complex data types and relationships. They support advanced data types and functionalities like inheritance and encapsulation, while maintaining SQL compatibility. However, ORDBs can introduce complexity, performance overhead, and higher costs compared to traditional relational databases.

Uploaded by

sahiljamwal2720
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views

Object Relational Database

Object-relational databases (ORDs) combine relational database features with object-oriented principles, enabling complex data types and relationships. They support advanced data types and functionalities like inheritance and encapsulation, while maintaining SQL compatibility. However, ORDBs can introduce complexity, performance overhead, and higher costs compared to traditional relational databases.

Uploaded by

sahiljamwal2720
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Object Relational Database

( Also difference between object oriented and object relational database )


Object-relational databases (ORDs or ORDBMS) combine the features of relational databases
with object-oriented database principles, allowing for more complex data types,
relationships, and functions.
It is basically the extension to relational database by including the features of object oriented
programming.
It allows the attributed to have more complex types , including non-atomic values such as
nested relations
It was created to handle new types of data such as audio , video and image files that
traditional relational database was not able to handle.

Object Relational Mapping (ORM) : It is a technique that lets you to query and manipulate
the data form the database using the object-oriented paradigm. (basically object oriented
database main classes hoti hai , objects hote hai aur relational model mein tables , tuples and
attributes , to dono alag alag hai isliye dono ko interact krwane ke liye hm ORM use krte hai )
For ORM , Object Relational Mapper is used which a software or a framework which enables
mapping of objects to relational tables and interaction between objects and tables. It is code
library that automates the transfer of data stored in relational database tables to objects that
are more commonly used in application code .
Key Concepts in Object-Relational Databases
1. Relational Model Foundation:
o ORDBMSs are built on the principles of relational databases, using tables to
store data with rows and columns, supporting SQL for queries.
o They maintain the ACID properties (Atomicity, Consistency, Isolation,
Durability), ensuring reliability and data integrity in transactions.
2. Object-Oriented Features:
o ORDBMSs extend the relational model by adding features typical of object-
oriented programming, such as inheritance, encapsulation, and
polymorphism, allowing for better modelling of complex data relationships.
o They enable storing more complex data types, such as multimedia files,
geographical data, and even custom data types defined by users.
3. Complex Data Types and Structures:

o User-Defined Data Types (UDTs): ORDBMSs support custom data types to


store complex data beyond the basic types (e.g., integers, strings). For
example, a “point” data type might represent x and y coordinates.

o Inheritance and Polymorphism: Just like in object-oriented programming,


ORDBMSs support inheritance, allowing a table to inherit attributes from a
parent table.

4. Encapsulation :
o ORDBMSs support defining methods (functions) within the database, which
can operate on complex data types. These methods can be encapsulated
within the data type, improving data handling.
Advantages
1. Support for Complex Data Types: ORDBMSs can store and manage complex data
types (like multimedia, geospatial data) natively, making them ideal for applications
needing to handle varied data.
2. Enhanced Querying Capabilities: SQL extensions allow for more complex queries,
including recursive and hierarchical queries, which are challenging in standard
RDBMSs.
3. Scalability: ORDBMSs maintain the scalability of relational databases while
supporting the advanced functionality of object-oriented databases, making them
suitable for large-scale applications.
4. Flexibility with SQL Compatibility: Extending SQL with object-oriented features
allows easier migration from traditional relational databases.

Disadvantages

1. Increased Complexity: The additional features and data types can complicate
database design and increase management overhead.
2. Performance Overhead: Object-oriented features like inheritance and encapsulation
can reduce performance compared to simpler relational models.
3. Limited Vendor Support: Fewer ORDBMS options are available compared to
traditional RDBMS, which may limit choice and flexibility.
4. Complexity in Query Optimization: Complex data structures and extended SQL can
make query optimization more challenging, potentially leading to slower queries.
5. Higher Cost: ORDBMS solutions are often more costly to implement and maintain,
especially when considering advanced features and specialized staff.

Example : Oracle database , Informix by IBM , SQLServer by microsoft

You might also like