I have a table with BLOB column and SDO_GEOMETRY column (Spatial data). The BLOBs are stored as securefiles (Oracle 11g) I may be having quite a few repetitive columns of BLOB data. I am contemplating about adding compression or deduplication or both to save storage. I am wondering what is the difference between compression vs deduplication (compress is also going to save space by not storing duplicate data ?) When is it better to use them?
问问题
1098 次
1 回答
1
我认为我无法比Oracle 技术网文章更好地解释差异,其中解释了压缩和重复数据删除的用途,其中说:
压缩与重复数据删除不同。压缩发生在 LOB 列内、行内——每个 LOB 列都是独立压缩的。在重复数据删除中,检查所有行并删除列中的重复值并用指针替换。如果您有两个非常不同的行,重复数据删除不会减小大小;但压缩可能会优化 LOB 值内的空间。您可以对表进行压缩和重复数据删除。
因此,如果您在多行中有相同的 BLOB,则重复数据删除将节省空间。压缩更有可能对单个 CLOB 值有用,但它是否对您的 BLOB 有用取决于它们中的内容 - 如果它们已经是压缩格式(例如,JPEG,如文章所述),那么压缩 BLOB 不会节省任何空间,Oracle 不会浪费太多时间尝试。
于 2014-11-10T17:57:24.023 回答