Sign in

Why does redis hgetall take so much time???

Carlos edited in Wed, 25 Jan 2023

I store 120 keys in hash, and each key is about 400 characters of JSON string. Hgetall takes hundreds of milliseconds or even seconds. There are two questions: 1. Is this a lot? Is it not appropriate to use hgetall? What is the number threshold of hgetall? 2. When the front end requests the interface of the server, it has to wait for dozens of seconds (the interface of the server operates hgetall). Even if hgetall takes hundreds of milliseconds, the request can't take so much time? The interface has concurrency, but it doesn't take that long, does it?

Please help me! If the problem is not clearly described, comments can be made.

0 Replies