简体   繁体   English

何时使用Securefile LOB重复数据删除和压缩?

[英]When to use Securefile LOB deduplication and compression?

I have a table with BLOB column and SDO_GEOMETRY column (Spatial data). 我有一个带有BLOB列和SDO_GEOMETRY列的表(空间数据)。 The BLOBs are stored as securefiles (Oracle 11g) I may be having quite a few repetitive columns of BLOB data. BLOB以安全文件(Oracle 11g)的形式存储。我可能有很多重复的BLOB数据列。 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? 我想知道压缩与重复数据删除之间有什么区别(压缩也将通过不存储重复数据来节省空间?)什么时候使用它们更好?

I don't think I can explain the difference better than this Oracle Technology Network artice , which among explaining what compression and deduplication are for, says: 我认为我无法比Oracle技术网的文章更好地解释这种差异,该文章解释了压缩和重复数据删除的目的是:

Compression is not the same as deduplication. 压缩与重复数据删除不同。 Compression happens inside a LOB column, inside a row—each LOB column is compressed independently. 压缩在行内的LOB列内进行-每个LOB列均独立压缩。 In deduplication, all the rows are examined and duplicate values in the columns are removed and replaced with pointers. 在重复数据删除中,将检查所有行,并删除列中的重复值,并用指针替换。 If you have two very different rows, deduplication will not reduce the size; 如果您有两排非常不同的行,则重复数据删除将不会减小大小; but compression may optimize the space inside the LOB value. 但是压缩可以优化LOB值内的空间。 You can compress as well as deduplicate the table. 您可以压缩和重复删除表。

So if you have the same BLOB in multiple rows deduplication will save space. 因此,如果您在多行中具有相同的BLOB,则重复数据删除将节省空间。 Compression is more likely to be useful for individual CLOB values, but whether it's useful for your BLOBs depends on what is in them - if they are already in a compressed format (eg JPEG, as the article mentions) then compressing the BLOB won't save any space, and Oracle won't waste much time trying. 压缩更有可能对单个CLOB值有用,但是压缩是否对您的BLOB有用取决于它们中的内容-如果它们已经是压缩格式(如JPEG,如本文所述),则压缩BLOB不会节省任何空间,Oracle不会浪费很多时间进行尝试。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM