Home | Previous Page | Next Page   Designing DataBlade Modules > Data Type Design >

Handling Large Objects

When you decide on the specific data type to represent a DataBlade module object—or its elements—keep in mind that the maximum row size for a database table is 32 KB. (Row size is the sum of the sizes of the columns in that row.)

Your Informix database server provides the LVARCHAR data type, which can hold up to 32,790 KB of text data. Larger objects and binary objects are called smart large objects, and your Informix database server provides facilities for high-performance access to smart large objects.

A smart large object is an object that is logically stored in a table column of type BLOB (binary large object, for binary data) or CLOB (character large object, for text data) but is physically stored in an sbspace.

An sbspace is a logical storage area that contains one or more chunks that store only BLOB and CLOB data. Sbspaces must be created before you can create any smart large objects; after sbspaces are created, they are managed by your Informix database server.

Tip:
If your DataBlade module makes use of smart large objects, you can test for the existence of a particular sbspace when your DataBlade module is being registered in a database using BladeManager. For information, see Appendix C. Testing for an Sbspace.

Smart large objects are "smart" because they provide the following features:

Within SQL, the only comparison operator you can use for data of types BLOB and CLOB is Equal() (=); however, you can perform additional operations using IBM Informix ESQL/C or the DataBlade API from your client application.

You can also use the IBM Informix Large Object Locator DataBlade module to handle large objects. This DataBlade module enables you to store large object data on the client computer. The IBM Informix Large Object Locator DataBlade module is included with your Informix database server. You must register the module's routines and data types in each database in which you plan to use the module.

When you design data types, ask yourself the following questions:

The following table lists large object topics and where you can find more information on them.

For information on... See...
Using smart large objects, including examples www.ibm.com/software/data/developer/informix
Overview of smart large objects IBM Informix: Guide to SQL Tutorial
Creating sbspaces IBM Informix: Dynamic Server Administrator's Guide
Testing for the existence of a particular sbspace during DataBlade module registration Appendix C. Testing for an Sbspace
BLOB and CLOB data types IBM Informix: Guide to SQL Reference
SQL smart large object functions IBM Informix: Guide to SQL Syntax
IBM Informix ESQL/C smart large object features IBM Informix: ESQL/C Programmer's Manual
IBM Informix DataBlade API smart large object features IBM Informix: DataBlade API Programmer's Guide
IBM Informix Large Object Locator DataBlade module IBM Informix: Large Object Locator DataBlade Module User's Guide

Most of these manuals are accessible through the InfoShelf.

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