Many functions in the smart-large-object interface take a connection descriptor as a parameter. However, many of the functions also accept a NULL-valued pointer as a connection descriptor. Use of a NULL-valued connection descriptor has the following performance impact:
To improve performance, you can pass a NULL-valued pointer as a connection descriptor to any of the following functions of the smart-large-object interface:
The following code fragment passes a valid connection descriptor to the mi_lo_alter( ) function:
conn = mi_open(NULL, NULL, NULL); if ( mi_lo_alter(conn, LO_ptr, LO_spec) == MI_ERROR ) /* Code execution does not reach here when a database server * exception occurs. */ return MI_ERROR; mi_close(conn);
When you specify a NULL-valued pointer as a connection descriptor, you can omit the calls to mi_open( ) and mi_close( ), as the following code fragment shows:
if ( mi_lo_alter(NULL, LO_ptr, LO_spec) == MI_ERROR ) /* Code execution does not reach here when a database server * exception occurs. */ return MI_ERROR;Home | [ Top of Page | Previous Page | Next Page | Contents | Index ]