Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

What are some tips to optimize performance when working with LOBs in OCI?

0
Posted

What are some tips to optimize performance when working with LOBs in OCI?

0

• Use an array bind to perform INSERTs. • Use an array fetch to retrieve all LOB locators. • Open multiple connections to the same database, and parallelize the INSERTS, FETCHES, OCILobWrites(), and OCILobReads() on these connections. • Turn logging off when loading or unloading 300 to 400 GB of LOB data. • Use the maximum Oracle block size and chunk size (32 k) if the individual LOBs are large. • Use a different tablespace for TIFF BLOB DATA, TIFF BLOB INDEX, SGML CLOB DATA, and SGML CLOB INDEX. • Since LOBs are big, you can obtain the best performance by reading and writing large chunks of a LOB value at a time. • Use LOB buffering if you need to read/write small pieces of LOB data on the client. • Use OCILobWrite() and OCILobRead() with a callback so data is streamed to or from the LOB. Ensure that 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. • Use a checkout/checkin model for LOBs. LOBs

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.