2012-09-19 54 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

在我看來,因爲共享引擎不檢查返回語句,他們會運行得更快,並可能允許幾個並行操作。這需要權衡,只要它不能保證成功。

該增變器似乎更可靠,但它需要更多的時間(與一個小文件的大小,差異可以忽略不計)。

當我有更多時間時我會擴大這個