Coder Social home page Coder Social logo

DBNUM Command about redis HOT 4 CLOSED

GoogleCodeExporter avatar GoogleCodeExporter commented on July 30, 2024
DBNUM Command

from redis.

Comments (4)

GoogleCodeExporter avatar GoogleCodeExporter commented on July 30, 2024
The database concept in Redis is more or less deprecated.
Usage of databases is discouraged. I doubt any new command
related to databases will be added at this stage, especially
if INFO can be used instead.

Regards,
Didier.

Original comment by [email protected] on 13 Sep 2011 at 7:48

from redis.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 30, 2024
I don't have an opinion on adding this feature, but I believe a recent thread 
on the mailing list indicated that databases are not going to be deprecated for 
the single-server case. Have things changed recently?

Original comment by [email protected] on 13 Sep 2011 at 8:14

from redis.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 30, 2024
It would be nice to know if the databases are going to be deprecated. I like 
the idea of DB because I can run better statistics on my data because I can 
separate different types of data I am storing. I do think the database number 
in config is odd and didn't understand it at first. Maybe you need that, I 
don't know.

Original comment by [email protected] on 13 Sep 2011 at 9:37

from redis.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 30, 2024
Dudes, databases are not going to be deprecated even if I in the past stated 
that they would be.
The reason is, it is now clear that there are too many apps depending on this 
feature, and I'm now sure that multi DB is not the only feature it is going to 
be NOT supported by Redis Cluster.

So the single node exposes the full API, and Redis Cluster will expose a subset 
of the API, that will not include operations against multiple keys, multiple 
DBs, and so forth. From this point of view multiple DBs are not worth 
deprecating.

About the feature requested here, I feel like now that INFO can be queried into 
different sections, and is thus much faster (only on unstable for now), it is 
not worth exporting this new command.

After all a simpler way to get this effect is to pipeline the following:

MULTI
SELECT 0
DBSIZE
SELECT 1
DBSIZE
SELECT 2
DBSIZE
....
EXEC

Too easy to accomplish client side, and too peculiar.

Salvatore

Original comment by [email protected] on 14 Sep 2011 at 3:35

  • Changed state: WontFix

from redis.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.