Discuss the concept of object identifiers (OIDs) in an object DBMS and discuss four different approaches for the representation of OIDs.
What will be an ideal response?
OIDs are used both by application programs for referencing objects and for representing relations between objects. The choice of the type of representation of OIDs can also influence the performance of an ODBMS. OIDs can be represented in different ways (for a review of the different approaches proposed, see Khoshafian and Copeland (1986)).
An OID can be physical or logical. The former contains the actual address of the object, whereas
the latter is an index from which the address of the object is obtained. Different approaches have
been proposed for the representation of both physical and logical OIDs, thereby producing at least
four types of OID.
? Physical address
The OID is the physical address of the object. This representation, normally used by
programming languages, has the advantage of being very efficient, but it is rarely used in
an ODBMS since, if a given object is moved or deleted, all the objects containing its
OID must be modified.
? Structured address
The OID consists of two parts – the first contains the segment number and the page
number, thus making it possible to obtain quickly the address on the disk to be read,
whereas the second part contains a logical slot number, which is used to determine the
position of the object within the page. With this representation, the object can be
relocated within the page simply by changing the slot array, or it can be moved to
another page by inserting its forward address in the slot array.
? Surrogate
The OID is generated by using an algorithm which guarantees its uniqueness (for
example, the time and date, or a monotonically increasing counter). Surrogate OIDs are
then transformed into the object’s physical addresses, normally by using an index.
? Typed surrogates
A variant of the surrogate for representing OIDs involves having both a type identifier
(type ID) and a portion of the object identifier. A different counter generates the object
identifier portion for each type. Thus, the address space is segmented. Moreover, the
type identifier in the object’s OID allows us to determine the object type without
retrieving the object from the disk.
You might also like to view...
Given the function definition, which of the following are correct?
``` int func(int n, double d) { int j = n; double sum = 0; while( j >= 0) { sum += d; -j; } return sum; } With arguments 7and 2.0 ``` a) returns 7*2 b) returns 7+2 c) returns 7! d) There is a syntax error in the program so it won’t run. e) It compiles but computes none of these.
Blender is…
A. Open-source B. Commercial C. Freeware D. Shareware
Always put your functions within the document head.
Answer the following statement true (T) or false (F)
____________________ contain tiny chips and radio antennas; they can be attached to objects, such as products, price tags, shipping labels, ID cards, assets, and more.
Fill in the blank(s) with the appropriate word(s).