| Oracle8i Application Developer's Guide - Large Objects (LOBs) Release 2 (8.1.6) Part Number A76940-01 |
|
Modeling and Design, 12 of 12
You can use SQL*Loader to bulk load LOBs.
|
See:
|
Use the following guidelines to achieve maximum performance with LOBs:
LOBs are big, you can obtain the best performance by reading and writing large chunks of a LOB value at a time. This helps in several respects:
LOB from the client side and the client is at a different node than the server, large reads/writes reduce network overhead.
NOCACHE' option, each small read/write incurs an I/O. Reading/writing large quantities of data reduces the I/O.
LOB creates a new version of the LOB CHUNK. Therefore, writing small amounts at a time will incur the cost of a new version for each small write. If logging is on, the CHUNK is also stored in the redo log.
LOB data on the client, use LOB buffering -- see OCILobEnableBuffering(), OCILobDisableBuffering(), OCILobFlushBuffer(), OCILobWrite(), OCILobRead(). Basically, turn on LOB buffering before reading/writing small pieces of LOB data.
Chapter 5, "Advanced Topics", "LOB Buffering Subsystem" for more information on
See Also:
LOB buffering.
LOB. Ensure the length of the entire write is set in the 'amount' parameter on input. Whenever possible, read and write in multiples of the LOB chunk size.
LOBs are optimized for the following operations:
The following sequence, requires a new connection when using a threaded environment, adversely affects performance, and is inaccurate:
Note the following:
Hence the preferred procedure is as follows:
Alternatively, you can insert >4,000 byte of data directly for the LOB columns but not the LOB attributes.
|
|
![]() Copyright © 1996-2000, Oracle Corporation. All Rights Reserved. |
|