English 中文(简体)
Redis s HMGET突击队的业绩问题
原标题:Performance Issues of Redis s HMGET Command

当我利用红利·赫梅特里娜指挥系统在生产环境中检索数据时,如果指挥中包含的钥匙数超过10 000件,而且请求量很大,则该指挥中心使用红星机的情况急剧上升。

我很想知道这一现象背后的具体原因,因为从散列表中检索数据应为奥(1)时间费用。

问题回答

if the number of keys included in the command exceeds 10,000

如果我能正确理解,你就是指红利运动的田地数。

从原表检索数据应为O(1)

是的,从原桌上获得单一领域的时间复杂性是O(1)。 然而,你正在恢复10 000个田地,时间复杂度应当比奥(1)大10 000倍。

HMGET是一种缓慢的指挥,当时你需要把许多领域赶走。 它阻止了Redis,并且你应当谨慎地使用它。





相关问题
What to look for in performance analyzer in VS 2008

What to look for in performance analyzer in VS 2008 I am using VS Team system and got the performance wizard and reports going. What benchmarks/process do I use? There is a lot of stuff in the ...

SQL Table Size And Query Performance

We have a number of items coming in from a web service; each item containing an unknown number of properties. We are storing them in a database with the following Schema. Items - ItemID - ...

How to speed up Visual Studio 2008? Add more resources?

I m using Visual Studio 2008 (with the latest service pack) I also have ReSharper 4.5 installed. ReSharper Code analysis/ scan is turned off. OS: Windows 7 Enterprise Edition It takes me a long time ...

Manually implementing high performance algorithms in .NET

As a learning experience I recently tried implementing Quicksort with 3 way partitioning in C#. Apart from needing to add an extra range check on the left/right variables before the recursive call, ...

How do I profile `paster serve` s startup time?

Python s paster serve app.ini is taking longer than I would like to be ready for the first request. I know how to profile requests with middleware, but how do I profile the initialization time? I ...

热门标签