-
I have a hash key with 128 field; each field size arround 140 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hi @ahapeter, 1ms sounds impressive but it could become slower when your table grows. The 50ms could be caused by auto pipelining's head-of-line blocking. To improve latency over throughput, you can try But to compete with the 1ms from postgres, I would suggest using client-side caching |
Beta Was this translation helpful? Give feedback.
When
DisableAutoPipelining=true
, the ring buffer size does not matter because it is only used by auto pipelining. ButBlockingPoolSize
matters since it now uses the connection pool to serve concurrent requests. If you keep constant 8 workers, then the defaultBlockingPoolSize
is fine.per connection cache size
only matters if you useclient.DoCache()
.auto pipeline, flush interval 100us
trades latencies for more throughput.Both the default read/write buffer sizes are 0.5MiB which is enough to hold your large HSET.