SlideShare a Scribd company logo
1 of 17
OBJECT RELATIONAL AND
EXTENDED RELATIONAL
DATABASES
SUBMITTED BY
ANITTA ANTONY
2ND MSC COMPUTER SEIENCE
SEMINAR
 Contents
Database design for an ORDBMS
Nested relations and collections
 Storage and access methods
Query processing and optimization,
ORDBMS
 Object-Relational Database (ORD)
 That's composed of both a relational database (RDBMS) and an object-oriented database
(OODBMS).
 ORD supports the basic components of any object-oriented database model in its
schemas and the query language used, such as objects, classes ana class inheritance
 An object-relational database may also be known as an object relational database
management systems (ORDBMS).
 the middleman between relational and object-oriented databases because it contains
aspects and characteristics from both models
Extended Relational Databases
 ERDBMSs have characteristics of both an RDBMS and an ODBMS (thus, the loose application of the
ORDBMS label).
ORDBMS Design
 ORDBMS is a Object Oriented Relational Database Management System based on the Relational as
well as Object Oriented database model.
 It is same as RDBMS but it has some extra confusing extensions because of the Object Oriented
concepts
 ORDBMS allows to store the video as an user-defined abstract data type (ADT) object and write
methods that capture any special manipulation that an user wish to perform.
 The ORDBMS allows users to store and retrieve objects of type jpeg-image which stores a compressed
image representing a single frame of film, just like an object of any other type, such as integer.
 PostgreSQL is an example of ORDBMS.
 An ORDBMS supports a much better solution.
 First, we can store the video as an ADT object and write methods that capture any special
manipulation we wish to perform.
 Second, because we are allowed to store structured types such as lists, we can store the
location sequence for a probe in a single tuple, along with the video information.
 This layout eliminates the need for joins in queries that involve both the sequence and video
information.
 An ORDBMS design for our example consists of a single relation called Probes_AllInfo:
Probes_AllInfo(pid: integer, locseq: location_seq, camera: string, video: mpeg_stream)
 This definition involves two new types, location_seq and mpeg_stream. The mpeg_stream is
an ADT, with a method display() that takes a start time and an end time and displays the portion
video recorded during that interval.
Nested Relations
 In relational databases, all relations are at least in First-Normal Form (1NF) which requires all attributes
to have atomic domains. That is, elements of the domains are considered to be indivisible units.
 In the nested relational model – as an extension of the relational model – domains may be either atomic
or relation valued. That is, an attribute value of a tuple can be a relation.
Example: Representation of a document relation in Non-1NF:
Title author-list date keyword-list
DB Theory {Smith, Jones} 1 April 79 {algebra, logic}
Programming {Jones, Frick} 17 June 85 {Pascal, C}
Collection Types ARRAY
 ordered 1D array with maximum number of elements without duplicates.
 LIST: ordered collection that allows duplicates.
 SET: unordered collection without duplicates.
 MULTISET: unordered collection that allows duplicates.
Storage and access methods
Since object relational databases store new types of data, ORDBMS implementers need to
storage and indexing issues. In particular, the system must efficiently store ADT objects and
and provide efficient indexed access to both.
 Storing Large ADT and Structured Type Objects
 Large ADT objects and structured objects complicate the layout of data on disk. User
quite large.
 Storage of large ADTs :-> As large ADTs need special storage, it is possible to store them
on the disk from the tuples that contain them. For e.g. BLOBs (Binary Large Object like
multimedia object.)
Query processing
ADTs and structured types call for new functionality in processing queries in
number of assumptions that affect the efficiency of queries.
 In this section we look at
 two functionality issues (user defined aggregates and security)
 And two efficiency issues (method caching and pointer swizzling).
User defined aggregates and security
 User-Defined Aggregation Functions
• Most ORDBMSs allow users to register new aggregation functions with the system.
• To register an aggregation function, a user must implement 3 methods
initiaIize : initializes the internal state for the aggregation
iterate : updates that state for every tuple seen.
terminate : computes the aggregation result based on the final state and then
example,
consider an aggregation function to compute the second-highest value in a field.
* the initialize call : allocate storage for the top two values
* the iterate call : compare the current tuple's value with the top two and update
necessary
*the terminate call: delete the storage for the top two values returning a copy of the
value.
 Method security
ADTs give users the power to add code to the DBMS; this power can be abused. • A
buggy or malicious ADT method can bring down the database server or even corrupt the database.
have mechanisms to prevent buggy or malicious user code from causing problems.
Method caching and pointer swizzling
 Method caching
During query processing, it may make sense to cache the results of methods, in case they are
with the same argument.
• An alternative is to maintain a cache of method inputs and matching outputs as a table in the
find the value of a method on particular inputs, we essentially join the input tuples with the cache
approaches can also be combined.
 Pointer swizzling
In some applications, objects are retrieved into memory and accessed frequently through
dereferencing must be implemented very efficiently. Some systems maintain a table of oids of
(currently) in memory. when an object O is brought into memory, they check each oid
oids of in-memory objects by in-memory pointers to those objects. This technique, called
makes references to in-memory objects very fast. The downside is that when an object is
references to it must somehow be invalidated and replaced with its oid.
1.Query Optimization
Challenge: New indexes and query processing techniques increase the options for query optimization. But, the
challenge is that the optimizer must know to handle and use the query processing functionality properly.
Solution:While constructing a query plan, an optimizer must be familiar to the newly added index structures.
For a given index structure, the optimizer must know:
1. WHERE-clause conditions matched by that index.
2. Cost of fetching a tuple for that index.
 Advantages of ORDBMSs
 Reuse and Sharing
 Increased Productivity
 Support powerful query language : For example: SQL 3, SQL/CLI etc.
 Support object views
 Reduce application development time
 Disadvantages of ORDBMSs
 Complexity: ORDBMS design is more complicated because we have to consider not only the underlying
design consideration of application semanties and dependencies in the relational data model but also the
object oriented nature.
ORDBMS Design and Implementation

More Related Content

What's hot

The Social Semantic Web
The Social Semantic WebThe Social Semantic Web
The Social Semantic WebJohn Breslin
 
Distributed Query Processing
Distributed Query ProcessingDistributed Query Processing
Distributed Query ProcessingMythili Kannan
 
Distributed Database System
Distributed Database SystemDistributed Database System
Distributed Database SystemSulemang
 
Database System Concepts and Architecture
Database System Concepts and ArchitectureDatabase System Concepts and Architecture
Database System Concepts and Architecturesontumax
 
Database , 12 Reliability
Database , 12 ReliabilityDatabase , 12 Reliability
Database , 12 ReliabilityAli Usman
 
introduction to NOSQL Database
introduction to NOSQL Databaseintroduction to NOSQL Database
introduction to NOSQL Databasenehabsairam
 
Nested Queries Lecture
Nested Queries LectureNested Queries Lecture
Nested Queries LectureFelipe Costa
 
Introduction: Databases and Database Users
Introduction: Databases and Database UsersIntroduction: Databases and Database Users
Introduction: Databases and Database Userssontumax
 
Concurrency Control in Distributed Database.
Concurrency Control in Distributed Database.Concurrency Control in Distributed Database.
Concurrency Control in Distributed Database.Meghaj Mallick
 
Distributed dbms architectures
Distributed dbms architecturesDistributed dbms architectures
Distributed dbms architecturesPooja Dixit
 
NOSQL- Presentation on NoSQL
NOSQL- Presentation on NoSQLNOSQL- Presentation on NoSQL
NOSQL- Presentation on NoSQLRamakant Soni
 
Relational Data Model Introduction
Relational Data Model IntroductionRelational Data Model Introduction
Relational Data Model IntroductionNishant Munjal
 
NOSQL and MongoDB Database
NOSQL and MongoDB DatabaseNOSQL and MongoDB Database
NOSQL and MongoDB DatabaseTariqul islam
 
Query decomposition in data base
Query decomposition in data baseQuery decomposition in data base
Query decomposition in data baseSalman Memon
 
Dbms schema & instance
Dbms schema & instanceDbms schema & instance
Dbms schema & instancePapan Sarkar
 

What's hot (20)

PPL, OQL & oodbms
PPL, OQL & oodbmsPPL, OQL & oodbms
PPL, OQL & oodbms
 
The Social Semantic Web
The Social Semantic WebThe Social Semantic Web
The Social Semantic Web
 
Distributed Query Processing
Distributed Query ProcessingDistributed Query Processing
Distributed Query Processing
 
DBTG MODEL
DBTG MODELDBTG MODEL
DBTG MODEL
 
Deductive databases
Deductive databasesDeductive databases
Deductive databases
 
Distributed Database System
Distributed Database SystemDistributed Database System
Distributed Database System
 
Data clustring
Data clustring Data clustring
Data clustring
 
Database System Concepts and Architecture
Database System Concepts and ArchitectureDatabase System Concepts and Architecture
Database System Concepts and Architecture
 
Database , 12 Reliability
Database , 12 ReliabilityDatabase , 12 Reliability
Database , 12 Reliability
 
introduction to NOSQL Database
introduction to NOSQL Databaseintroduction to NOSQL Database
introduction to NOSQL Database
 
Nested Queries Lecture
Nested Queries LectureNested Queries Lecture
Nested Queries Lecture
 
Introduction: Databases and Database Users
Introduction: Databases and Database UsersIntroduction: Databases and Database Users
Introduction: Databases and Database Users
 
Concurrency Control in Distributed Database.
Concurrency Control in Distributed Database.Concurrency Control in Distributed Database.
Concurrency Control in Distributed Database.
 
Distributed dbms architectures
Distributed dbms architecturesDistributed dbms architectures
Distributed dbms architectures
 
NOSQL- Presentation on NoSQL
NOSQL- Presentation on NoSQLNOSQL- Presentation on NoSQL
NOSQL- Presentation on NoSQL
 
Relational Data Model Introduction
Relational Data Model IntroductionRelational Data Model Introduction
Relational Data Model Introduction
 
NOSQL and MongoDB Database
NOSQL and MongoDB DatabaseNOSQL and MongoDB Database
NOSQL and MongoDB Database
 
Unit-3_BDA.ppt
Unit-3_BDA.pptUnit-3_BDA.ppt
Unit-3_BDA.ppt
 
Query decomposition in data base
Query decomposition in data baseQuery decomposition in data base
Query decomposition in data base
 
Dbms schema & instance
Dbms schema & instanceDbms schema & instance
Dbms schema & instance
 

Similar to ORDBMS Design and Implementation

ADBMS Object and Object Relational Databases
ADBMS  Object  and Object Relational Databases ADBMS  Object  and Object Relational Databases
ADBMS Object and Object Relational Databases Jayanthi Kannan MK
 
Column store databases approaches and optimization techniques
Column store databases  approaches and optimization techniquesColumn store databases  approaches and optimization techniques
Column store databases approaches and optimization techniquesIJDKP
 
STAT Requirement Analysis
STAT Requirement AnalysisSTAT Requirement Analysis
STAT Requirement Analysisstat
 
Normalisation in Database management System (DBMS)
Normalisation in Database management System (DBMS)Normalisation in Database management System (DBMS)
Normalisation in Database management System (DBMS)Prof Ansari
 
Adv DB - Full Handout.pdf
Adv DB - Full Handout.pdfAdv DB - Full Handout.pdf
Adv DB - Full Handout.pdf3BRBoruMedia
 
2017 IEEE Projects 2017 For Cse ( Trichy, Chennai )
2017 IEEE Projects 2017 For Cse ( Trichy, Chennai )2017 IEEE Projects 2017 For Cse ( Trichy, Chennai )
2017 IEEE Projects 2017 For Cse ( Trichy, Chennai )SBGC
 
Query optimization to improve performance of the code execution
Query optimization to improve performance of the code executionQuery optimization to improve performance of the code execution
Query optimization to improve performance of the code executionAlexander Decker
 
11.query optimization to improve performance of the code execution
11.query optimization to improve performance of the code execution11.query optimization to improve performance of the code execution
11.query optimization to improve performance of the code executionAlexander Decker
 
Object oriented modeling
Object oriented modelingObject oriented modeling
Object oriented modelingPooja Dixit
 
Object Oriented Concepts and Principles
Object Oriented Concepts and PrinciplesObject Oriented Concepts and Principles
Object Oriented Concepts and Principlesdeonpmeyer
 
Object-Oriented Database Model For Effective Mining Of Advanced Engineering M...
Object-Oriented Database Model For Effective Mining Of Advanced Engineering M...Object-Oriented Database Model For Effective Mining Of Advanced Engineering M...
Object-Oriented Database Model For Effective Mining Of Advanced Engineering M...cscpconf
 
QUERY OPTIMIZATION IN OODBMS: IDENTIFYING SUBQUERY FOR COMPLEX QUERY MANAGEMENT
QUERY OPTIMIZATION IN OODBMS: IDENTIFYING SUBQUERY FOR COMPLEX QUERY MANAGEMENTQUERY OPTIMIZATION IN OODBMS: IDENTIFYING SUBQUERY FOR COMPLEX QUERY MANAGEMENT
QUERY OPTIMIZATION IN OODBMS: IDENTIFYING SUBQUERY FOR COMPLEX QUERY MANAGEMENTcsandit
 
Overview of oracle database
Overview of oracle databaseOverview of oracle database
Overview of oracle databaseSamar Prasad
 
Overview of oracle database
Overview of oracle databaseOverview of oracle database
Overview of oracle databaseSamar Prasad
 

Similar to ORDBMS Design and Implementation (20)

ADBMS Object and Object Relational Databases
ADBMS  Object  and Object Relational Databases ADBMS  Object  and Object Relational Databases
ADBMS Object and Object Relational Databases
 
Column store databases approaches and optimization techniques
Column store databases  approaches and optimization techniquesColumn store databases  approaches and optimization techniques
Column store databases approaches and optimization techniques
 
Nosql databases
Nosql databasesNosql databases
Nosql databases
 
7 data management design
7 data management design7 data management design
7 data management design
 
STAT Requirement Analysis
STAT Requirement AnalysisSTAT Requirement Analysis
STAT Requirement Analysis
 
Mongo db
Mongo dbMongo db
Mongo db
 
Normalisation in Database management System (DBMS)
Normalisation in Database management System (DBMS)Normalisation in Database management System (DBMS)
Normalisation in Database management System (DBMS)
 
Adv DB - Full Handout.pdf
Adv DB - Full Handout.pdfAdv DB - Full Handout.pdf
Adv DB - Full Handout.pdf
 
2017 IEEE Projects 2017 For Cse ( Trichy, Chennai )
2017 IEEE Projects 2017 For Cse ( Trichy, Chennai )2017 IEEE Projects 2017 For Cse ( Trichy, Chennai )
2017 IEEE Projects 2017 For Cse ( Trichy, Chennai )
 
Oracle archi ppt
Oracle archi pptOracle archi ppt
Oracle archi ppt
 
Query optimization to improve performance of the code execution
Query optimization to improve performance of the code executionQuery optimization to improve performance of the code execution
Query optimization to improve performance of the code execution
 
11.query optimization to improve performance of the code execution
11.query optimization to improve performance of the code execution11.query optimization to improve performance of the code execution
11.query optimization to improve performance of the code execution
 
Object oriented modeling
Object oriented modelingObject oriented modeling
Object oriented modeling
 
MongoDB
MongoDBMongoDB
MongoDB
 
Object Oriented Concepts and Principles
Object Oriented Concepts and PrinciplesObject Oriented Concepts and Principles
Object Oriented Concepts and Principles
 
Object-Oriented Database Model For Effective Mining Of Advanced Engineering M...
Object-Oriented Database Model For Effective Mining Of Advanced Engineering M...Object-Oriented Database Model For Effective Mining Of Advanced Engineering M...
Object-Oriented Database Model For Effective Mining Of Advanced Engineering M...
 
Introduction to odbms
Introduction to odbmsIntroduction to odbms
Introduction to odbms
 
QUERY OPTIMIZATION IN OODBMS: IDENTIFYING SUBQUERY FOR COMPLEX QUERY MANAGEMENT
QUERY OPTIMIZATION IN OODBMS: IDENTIFYING SUBQUERY FOR COMPLEX QUERY MANAGEMENTQUERY OPTIMIZATION IN OODBMS: IDENTIFYING SUBQUERY FOR COMPLEX QUERY MANAGEMENT
QUERY OPTIMIZATION IN OODBMS: IDENTIFYING SUBQUERY FOR COMPLEX QUERY MANAGEMENT
 
Overview of oracle database
Overview of oracle databaseOverview of oracle database
Overview of oracle database
 
Overview of oracle database
Overview of oracle databaseOverview of oracle database
Overview of oracle database
 

Recently uploaded

History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxHistory Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxsocialsciencegdgrohi
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaVirag Sontakke
 
Blooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxBlooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxUnboundStockton
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsKarinaGenton
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxRaymartEstabillo3
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 
ENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptx
ENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptxENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptx
ENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptxAnaBeatriceAblay2
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Celine George
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting DataJhengPantaleon
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfakmcokerachita
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 

Recently uploaded (20)

History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxHistory Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of India
 
Blooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxBlooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docx
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its Characteristics
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 
ENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptx
ENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptxENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptx
ENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptx
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdf
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 

ORDBMS Design and Implementation

  • 1. OBJECT RELATIONAL AND EXTENDED RELATIONAL DATABASES SUBMITTED BY ANITTA ANTONY 2ND MSC COMPUTER SEIENCE SEMINAR
  • 2.  Contents Database design for an ORDBMS Nested relations and collections  Storage and access methods Query processing and optimization,
  • 3.
  • 5.  Object-Relational Database (ORD)  That's composed of both a relational database (RDBMS) and an object-oriented database (OODBMS).  ORD supports the basic components of any object-oriented database model in its schemas and the query language used, such as objects, classes ana class inheritance  An object-relational database may also be known as an object relational database management systems (ORDBMS).  the middleman between relational and object-oriented databases because it contains aspects and characteristics from both models Extended Relational Databases  ERDBMSs have characteristics of both an RDBMS and an ODBMS (thus, the loose application of the ORDBMS label).
  • 6. ORDBMS Design  ORDBMS is a Object Oriented Relational Database Management System based on the Relational as well as Object Oriented database model.  It is same as RDBMS but it has some extra confusing extensions because of the Object Oriented concepts  ORDBMS allows to store the video as an user-defined abstract data type (ADT) object and write methods that capture any special manipulation that an user wish to perform.  The ORDBMS allows users to store and retrieve objects of type jpeg-image which stores a compressed image representing a single frame of film, just like an object of any other type, such as integer.  PostgreSQL is an example of ORDBMS.
  • 7.  An ORDBMS supports a much better solution.  First, we can store the video as an ADT object and write methods that capture any special manipulation we wish to perform.  Second, because we are allowed to store structured types such as lists, we can store the location sequence for a probe in a single tuple, along with the video information.  This layout eliminates the need for joins in queries that involve both the sequence and video information.  An ORDBMS design for our example consists of a single relation called Probes_AllInfo: Probes_AllInfo(pid: integer, locseq: location_seq, camera: string, video: mpeg_stream)  This definition involves two new types, location_seq and mpeg_stream. The mpeg_stream is an ADT, with a method display() that takes a start time and an end time and displays the portion video recorded during that interval.
  • 8. Nested Relations  In relational databases, all relations are at least in First-Normal Form (1NF) which requires all attributes to have atomic domains. That is, elements of the domains are considered to be indivisible units.  In the nested relational model – as an extension of the relational model – domains may be either atomic or relation valued. That is, an attribute value of a tuple can be a relation. Example: Representation of a document relation in Non-1NF: Title author-list date keyword-list DB Theory {Smith, Jones} 1 April 79 {algebra, logic} Programming {Jones, Frick} 17 June 85 {Pascal, C}
  • 9. Collection Types ARRAY  ordered 1D array with maximum number of elements without duplicates.  LIST: ordered collection that allows duplicates.  SET: unordered collection without duplicates.  MULTISET: unordered collection that allows duplicates.
  • 10. Storage and access methods Since object relational databases store new types of data, ORDBMS implementers need to storage and indexing issues. In particular, the system must efficiently store ADT objects and and provide efficient indexed access to both.  Storing Large ADT and Structured Type Objects  Large ADT objects and structured objects complicate the layout of data on disk. User quite large.  Storage of large ADTs :-> As large ADTs need special storage, it is possible to store them on the disk from the tuples that contain them. For e.g. BLOBs (Binary Large Object like multimedia object.)
  • 11. Query processing ADTs and structured types call for new functionality in processing queries in number of assumptions that affect the efficiency of queries.  In this section we look at  two functionality issues (user defined aggregates and security)  And two efficiency issues (method caching and pointer swizzling).
  • 12. User defined aggregates and security  User-Defined Aggregation Functions • Most ORDBMSs allow users to register new aggregation functions with the system. • To register an aggregation function, a user must implement 3 methods initiaIize : initializes the internal state for the aggregation iterate : updates that state for every tuple seen. terminate : computes the aggregation result based on the final state and then example, consider an aggregation function to compute the second-highest value in a field. * the initialize call : allocate storage for the top two values * the iterate call : compare the current tuple's value with the top two and update necessary *the terminate call: delete the storage for the top two values returning a copy of the value.
  • 13.  Method security ADTs give users the power to add code to the DBMS; this power can be abused. • A buggy or malicious ADT method can bring down the database server or even corrupt the database. have mechanisms to prevent buggy or malicious user code from causing problems. Method caching and pointer swizzling  Method caching During query processing, it may make sense to cache the results of methods, in case they are with the same argument. • An alternative is to maintain a cache of method inputs and matching outputs as a table in the find the value of a method on particular inputs, we essentially join the input tuples with the cache approaches can also be combined.
  • 14.  Pointer swizzling In some applications, objects are retrieved into memory and accessed frequently through dereferencing must be implemented very efficiently. Some systems maintain a table of oids of (currently) in memory. when an object O is brought into memory, they check each oid oids of in-memory objects by in-memory pointers to those objects. This technique, called makes references to in-memory objects very fast. The downside is that when an object is references to it must somehow be invalidated and replaced with its oid.
  • 15. 1.Query Optimization Challenge: New indexes and query processing techniques increase the options for query optimization. But, the challenge is that the optimizer must know to handle and use the query processing functionality properly. Solution:While constructing a query plan, an optimizer must be familiar to the newly added index structures. For a given index structure, the optimizer must know: 1. WHERE-clause conditions matched by that index. 2. Cost of fetching a tuple for that index.
  • 16.  Advantages of ORDBMSs  Reuse and Sharing  Increased Productivity  Support powerful query language : For example: SQL 3, SQL/CLI etc.  Support object views  Reduce application development time  Disadvantages of ORDBMSs  Complexity: ORDBMS design is more complicated because we have to consider not only the underlying design consideration of application semanties and dependencies in the relational data model but also the object oriented nature.