Maroshii
Maroshii

Reputation: 4017

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?

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.

Upvotes: 2

Views: 344

Answers (1)

Didier Spezia
Didier Spezia

Reputation: 73216

It would perform exactly the same. Please note it does not offer better granularity though (no possibility to save only one database for instance).

Upvotes: 3

Related Questions