Insertion speed is slower because writeBehindEnbled is true
I am using the Ignite Cache adapter, setting the entry as true.
Scenario 1:
- When I write, I save the data to HBase.
- For this, I inserted 100,000 objects into Ignite and then into HBase, the time it took to do this was about 82 seconds.
Scenario 2:
- I made the write-behind property true.
- I inserted 100,000 objects into Ignite and then into HBase, the time it took to do this was about 124 seconds.
Below are the results.
Write-behind Objects Time in ms
true 1,00,000 81962
false 1,00,000 123517
As far as I know, if we use write cache it works as asynchronous mode But it gives unexpected result. I am something wrong.
+3
source to share
1 answer
What result do you expect here? The "Write-behind" mode simply schedules the store update later, which is much faster than updating immediately with every cache change.
To customize its behavior, you can check setWriteBehindBatchSize , setWriteBehindFlushFrequency , setWriteBehindFlushSize , setWriteBehindFlushThreadCount .
+3
source to share