StackExchange.Redis icon indicating copy to clipboard operation
StackExchange.Redis copied to clipboard

SWAPDB?

Open checkhavoc opened this issue 9 years ago • 6 comments

Is there a method that supports the ability to execute a "SWAPDB {db1} {db2}"?

checkhavoc avatar Jan 12 '17 19:01 checkhavoc

+1

Did you ever find a way to do this with StackExchange.Redis?

MattHoneycutt avatar Mar 24 '17 18:03 MattHoneycutt

This is indeed missing, added it to the commands list for the next pass.

NickCraver avatar Sep 02 '17 00:09 NickCraver

Implemented in 2.0, thanks

mgravell avatar Jul 06 '18 09:07 mgravell

I have been trying to find documentation as to why SWAPDB is an admin-only function. Is it due to a performance concern or just that it is a dangerously overarching manipulation of the data (similar to renaming of a table in the relational-database terms)?

Just wondering as I would like to find a different way to do my business if there are any performance concerns.

Thanks a lot for all the good work!

igalnassi avatar Aug 05 '19 15:08 igalnassi

the latter; it isn't performance related

mgravell avatar Aug 05 '19 16:08 mgravell

Thanks for the fast response!

igalnassi avatar Aug 05 '19 18:08 igalnassi