{"action":"created","issue":{"url":"https://api.github.com/repos/antirez/redis/issues/2856","labels_url":"https://api.github.com/repos/antirez/redis/issues/2856/labels{/name}","comments_url":"https://api.github.com/repos/antirez/redis/issues/2856/comments","events_url":"https://api.github.com/repos/antirez/redis/issues/2856/events","html_url":"https://github.com/antirez/redis/issues/2856","id":115420953,"number":2856,"title":"save operation based on db","user":{"login":"hiteric","id":10850720,"avatar_url":"https://avatars.githubusercontent.com/u/10850720?v=3","gravatar_id":"","url":"https://api.github.com/users/hiteric","html_url":"https://github.com/hiteric","followers_url":"https://api.github.com/users/hiteric/followers","following_url":"https://api.github.com/users/hiteric/following{/other_user}","gists_url":"https://api.github.com/users/hiteric/gists{/gist_id}","starred_url":"https://api.github.com/users/hiteric/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hiteric/subscriptions","organizations_url":"https://api.github.com/users/hiteric/orgs","repos_url":"https://api.github.com/users/hiteric/repos","events_url":"https://api.github.com/users/hiteric/events{/privacy}","received_events_url":"https://api.github.com/users/hiteric/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-11-06T02:27:24Z","updated_at":"2015-11-06T08:11:45Z","closed_at":"2015-11-06T08:11:45Z","body":"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.\r\n\r\nFor 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."},"comment":{"url":"https://api.github.com/repos/antirez/redis/issues/comments/154340983","html_url":"https://github.com/antirez/redis/issues/2856#issuecomment-154340983","issue_url":"https://api.github.com/repos/antirez/redis/issues/2856","id":154340983,"user":{"login":"antirez","id":65632,"avatar_url":"https://avatars.githubusercontent.com/u/65632?v=3","gravatar_id":"","url":"https://api.github.com/users/antirez","html_url":"https://github.com/antirez","followers_url":"https://api.github.com/users/antirez/followers","following_url":"https://api.github.com/users/antirez/following{/other_user}","gists_url":"https://api.github.com/users/antirez/gists{/gist_id}","starred_url":"https://api.github.com/users/antirez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/antirez/subscriptions","organizations_url":"https://api.github.com/users/antirez/orgs","repos_url":"https://api.github.com/users/antirez/repos","events_url":"https://api.github.com/users/antirez/events{/privacy}","received_events_url":"https://api.github.com/users/antirez/received_events","type":"User","site_admin":false},"created_at":"2015-11-06T08:11:45Z","updated_at":"2015-11-06T08:11:45Z","body":"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."}}