【发布时间】:2018-01-15 12:01:14
【问题描述】:
我通过将 write-through 设置为 true 来使用 Ignite 的 Cache 适配器。
场景 1:
- 在写入时,我将数据持久化到 HBase。
- 为此,我在 Ignite 和 HBase 中插入了 100000 个对象,所需时间约为 82 秒。
场景 2:
- 我将 write-behind 属性设置为 true。
- 我在 Ignite 和 HBase 中插入了 100000 个对象,所需时间约为 124 秒。
以下是结果。
Write-behind Objects Time in ms
true 1,00,000 81962
false 1,00,000 123517
据我所知,如果我们使用后写缓存,它会作为异步模式工作 但它给出了意想不到的结果。我是不是在哪里出错了。
【问题讨论】: