mat2cc / redis_tui

Redis terminal application
GNU General Public License v3.0
91 stars 3 forks source link

Batching types instead of using individual TYPE calls #3

Closed mat2cc closed 8 months ago

mat2cc commented 9 months ago

There was a performance issue that was most noticably happening when ssh tunneling (due to network latency). The reason for this was I was previously calling the redis TYPE command on each key retrieved in the scan. This has been changed into a redis pipeline that will retrieve all of the types on one request rather than making many individual requests.

I have also added an option --include-types. When set to false will not query types in bulk either (it will only query for the type once, when opening the details view). This might be benificial when connecting to production servers and to reduce latency in general.