2012-09-19 55 views
0

Mutator与Shared Mutator有什么不同?Hypertable的Mutator与Shared Mutator(Java)

在Mutator的规格中,有一个“flush_interval”(自动刷新间隔,以毫秒为单位; 0表示禁用它)参数。

在规格为共享的赋值函数,它指出:

WARNING: Shared mutators sacrifice write durability guarantee because they buffer and flush mutations on a periodic time interval and the set_ methods return without knowing if the mutations succeeded or failed. 

Reference

那么,什么是如果两者都具有刷新间隔区别?

此外,都是线程安全的(在Java中)?

另外,在性能方面效率更高?

回答

0

在我看来,因为共享引擎不检查返回语句,他们会运行得更快,并可能允许几个并行操作。这需要权衡,只要它不能保证成功。

该增变器似乎更可靠,但它需要更多的时间(与一个小文件的大小,差异可以忽略不计)。

当我有更多时间时我会扩大这个