New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
save operation based on db #2856
Comments
The following code is part of rdb.c int rdbSave2(int id, char *filename) { int rdbSaveRio2(int id, rio *rdb, int *error) {
werr: |
redis version is 3.0.3 The following is the result |
Hello, we had no plan for such a feature since Redis DBs are a namespacing facility within the same application with the same durability requirements. If you want to split data with different logical requirements it's suggested to run multiple Redis servers. This way you use multiple cores, and can configure each instance on purpose. Thanks. Closing. |
Current implementation, each save command will save all of the data of all of dbs, but in many cases, we only want to save data in one db or some of dbs but not all. I wrote an implementation, specify each db and specify rdb file when save. This is not what the new features, but I think, this will be more flexible and convenient during save.
For example, several modules(each module is a process may or not be) shared the same redis, each module with only one db, but each module just want to save their own db, or only not all of the modules need save. If their are too many dbs, and we just hope save one of these dbs, according current implementation of the code, every time when save,we must all traverse through all dbs,the efficiency is not high. So in order to meet the various needs, we can add a command to implementate this.
The text was updated successfully, but these errors were encountered: