简体   繁体   English

Redis多个数据库性能

[英]Redis multiple databases performance

If in a single Redis instance I have N databases with K dedicated connections for each one of the, would that perform worse than having N * K connections to a single database? 如果在单个Redis实例中,我有N个数据库,每个数据库都有K个专用连接,那会不会比对单个数据库有N * K个连接的性能差?

This would only be for the purpose of better organising keys (it's all ONE data set) and SELECT would be called only once upon connecting and then each connection would belong to a specific database. 这仅是为了更好地组织键(所有ONE数据集),并且SELECT仅在连接时被调用一次,然后每个连接将属于一个特定的数据库。

It would perform exactly the same. 它将执行完全相同的操作。 Please note it does not offer better granularity though (no possibility to save only one database for instance). 请注意,虽然它不能提供更好的粒度(例如,不可能仅保存一个数据库)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM