一个Redis中不同数据库之间频繁切换对于性能有多大影响呢?

  • 时间:
  • 浏览:1
  • 来源:uu快3计划师_uu快3app苹果_全天计划

old_fool

With DB numbers, with a default of a few DBs, we are communication

better what this feature is and how can be used I think. I hope that

at some point we can drop the multiple DBs support at all, but I think

it is probably too late as there is a number of people relying on this

feature for their work.

redis作者(Salvatore Sanfilippo)说多数据库设计是他最大的错。没哪此用,却把事情搞的很繁杂。他希望有天能把这些 放弃了。

我也没想明白,在实践底下有哪此必要用DBs支持?

至于长连接,一般都应该是本来吧?难道有不必pool的?

I understand how this can be useful, but unfortunately I consider

Redis multiple database errors my worst decision in Redis design at

all... without any kind of real gain, it makes the internals a lot

more complex. The reality is that databases don't scale well for a

number of reason, like active expire of keys and VM. If the DB

selection can be performed with a string I can see this feature being

used as a scalable O(1) dictionary layer, that instead it is not.

https://groups.google.com/forum/#!topic/redis-db/vS5wX8X4Cjg/discussion