Get the App
SLTechnology News&Howtos  ›  Database  › 

Performance comparison of hbase increment

Shulou Source: shulou.com Published: 2022-06-01 19:04:47 11月17日 Update

Hbase increment can be used as a counter and is thread-safe. If thread safety is not considered, will single-thread operation perform better than get & put? With this question in mind, I did the following tests.

Increment

Htable.batch (incrementList) batch submission without cache

Htable.get (getList) & Htable.put (putList)

Hbase increment cannot be submitted in batches because there is no cache on the client, resulting in poor performance. It takes about 2.5s for increment to accumulate the same 500pieces of data. It takes about 0.4s for batch get and then batch put, which is six times the performance of increment.

Tags: Performance threading security caching customers clients situations data methods ideals questions counters tests Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Redmi Docker MariaDB Linux MySQL