Home | Previous Page | Next Page   Working With Informix Types > Smart Large Object Data Types >

Smart Large Objects in the Database Server

In the Informix database server, a smart large object has two parts:

Suppose you store the picture of an employee as a smart large object. Figure 3 shows how the LO handle contains information about the location of the actual employee picture in the sbspace1_100 sbspace.

Figure 3. Smart Large Object in the Database Server
begin figure description - This figure is described in the surrounding text. - end figure description

In Figure 3, the sbspace holds the actual employee image that the LO handle identifies. For more information about the structure of an sbspace, and the onspaces database utility that creates and drops sbspaces, see the IBM Informix: Dynamic Server Administrator's Guide.

Important:
Smart large objects can only be stored in sbspaces. You must create an sbspace before you attempt to insert smart large objects into the database.

Because a smart large object is potentially very large, the database server stores only its LO handle in a database table; it can then use this handle to find the actual data of the smart large object in the sbspace. This arrangement minimizes the table size.

Applications obtain the LO handle from the database and use it to locate the smart-large-object data and to open the smart large object for read and write operations.

Home | [ Top of Page | Previous Page | Next Page | Contents | Index ]