Oracle Blobs and Optimizations

  • Blobs should be stored in a separate tablespace because:
    • Selects on the table would need to go over the blob data as well even though the blob is not selected in the clause.
    • Setting CACHE on the DDL for blobs is beneficial when the blob data is read a lot but does not help in inserts.
  • Truncate table with drop storage option is preferable than delete from table since it does not generate logs. Note that this is a DDL operation and does not lead to any logs being generated.
  • Partitioning is a way to maintain huge data sets with lots of advantages rather than just regular tables.