• Resolved mistercode

    (@mistercode)


    Hello everyone. I don’t have a technical problem, but I’d like to understand the best practices for setting up databases and keys.

    As I understand it, I have 15 databases, and each database can manage different caches using keys.

    I’m using Redis in my local development environment with several different websites, and I’m wondering how to achieve the best performance.

    Should I assign each website its own database (0-15), or is it sufficient to use one database with different keys for each website?

    If I get better performance when each site has its own database, I’d like to know if and how I can increase the number of databases. Fifteen wouldn’t be enough for me.

    Thank you so much for taking the time to read and maybe answer my question.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Till Krüss

    (@tillkruess)

    it’s much better to use separate databases for each site so data is isolated and quickly flushable.

    you can increase the number from 15 to 1000 without any performance penalty in your redis.conf file.

    Thread Starter mistercode

    (@mistercode)

    Thank you @tillkruess for taking the time to answer my question. Since you are the expert, I will follow your recommendation and increase the number of databases 😊.

Viewing 2 replies - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.