Skip to content
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

how to select db? #101

Closed
demo007x opened this issue Dec 10, 2021 · 24 comments
Closed

how to select db? #101

demo007x opened this issue Dec 10, 2021 · 24 comments
Assignees
Labels
feature New feature or request question Further information is requested

Comments

@demo007x
Copy link

  1. how to select db? I can't find any ways to change other DB ?
  2. I can't find close linked button.
    image
@ViktorStarostenko
Copy link
Contributor

Hi @anziguoer , do you want to return to the list of databases added to RI or select another logical database (change the database index) for this one?

@demo007x
Copy link
Author

Hi @anziguoer , do you want to return to the list of databases added to RI or select another logical database (change the database index) for this one?

I mean is how to select other database in version 2?

image

@ViktorStarostenko
Copy link
Contributor

I mean is how to select other database in version 2?

Currently, this database index for Browser can be specified only at the step of adding a database to RedsInsight v2 ("Database Index" field).
You can add another database with the same endpoint, but a different database index to work in Browser (more preferred way). But please notice that in this case, the default database index to work in CLI and Workbench is still 0.
Or, as a workaround, you can use the "Select" command in CLI - it will change the database index in CLI, but will not affect Browser (less preferred way).

Hope this helps.

@K-Jo K-Jo added the question Further information is requested label Dec 11, 2021
@demo007x
Copy link
Author

I mean is how to select other database in version 2?

Currently, this database index for Browser can be specified only at the step of adding a database to RedsInsight v2 ("Database Index" field). You can add another database with the same endpoint, but a different database index to work in Browser (more preferred way). But please notice that in this case, the default database index to work in CLI and Workbench is still 0. Or, as a workaround, you can use the "Select" command in CLI - it will change the database index in CLI, but will not affect Browser (less preferred way).

Hope this helps.

Ok, thank you. What version is planned to add select Database functionality? thank you, I very like the RedisInsight.

@ViktorStarostenko
Copy link
Contributor

Hello @anziguoer, I believe that currently, the main flow is to add another database with the same endpoint, but with a different database index to work with, and just open another database if you need to work with another database index.

Could you please provide any use cases when this flow will not satisfy your purposes?

@nsnyder
Copy link

nsnyder commented Jan 26, 2022

Came across this while trying to figure out how to change databases earlier today. IMO, it would be helpful to provide one or two flows.

  1. Allow selecting different databases from a single endpoint (potentially with assignable names) OR
  2. Allow copying an existing endpoint instead of adding a new one (so you don't have to re-enter the same information just to change the database index)

It's particularly confusing if you have an existing endpoint and find that you need to use a different database. You likely won't remember that the only place to set that is during initial setup. You might go to edit your connection to change it, and find the setting isn't there (as I did) only to be confused and go searching (and ending up here). Or you may suspect (as I did) that changing it from the CLI window will change where the UI searches.

One way or another, I think a bit of guidance for someone trying to figure out how to change their database in the UI would go a long way.

@ViktorStarostenko
Copy link
Contributor

@nsnyder , thanks for the details, we will look into options to make the interaction with different database indices clearer.

@ViktorStarostenko ViktorStarostenko self-assigned this Jan 28, 2022
@ViktorStarostenko ViktorStarostenko added the feature New feature or request label Jan 28, 2022
@KangZhengF
Copy link

I love the RedisInsight very much! You are good guys to develop this tool for us. But I still you can add the select database feature in your next version. Thx!

@saddit
Copy link

saddit commented Jul 26, 2022

Does any plan to add this feature? 👍

@ViktarStarastsenka
Copy link
Collaborator

@KangZhengF , @838239178 , currently the only one way to change the logical database is to add another database with the same host and port. I understand that this is not the most convenient way, but will it work if you could quickly clone the database to not re-enter database credentials manually, change the logical database and then add the database with another logical database selected?
In this case you will need just to open another database.

@rocna
Copy link

rocna commented Aug 13, 2022

Wow, that seems to be a work in progress. But selecting a database is much easier than adding one. Redis is very fast and most scenarios are shared by multiple programs to take full advantage of Redis performance. 👍

@guillermosaez
Copy link

Hi @ViktarStarastsenka , is it planned to add the "change db" functionality?

@ViktarStarastsenka
Copy link
Collaborator

@guillermosaez , not in the upcoming releases.
will the workaround with adding a new database (also using the "Clone database" feature to avoid manually adding the parameters) work for you?

@guillermosaez
Copy link

@guillermosaez , not in the upcoming releases. will the workaround with adding a new database (also using the "Clone database" feature to avoid manually adding the parameters) work for you?

I would end up having 16 different connections per environment. If I have DEV + UAT + PROD, that's 48 databases.

@javaDer
Copy link

javaDer commented Nov 7, 2022

We need this feature too much

@erik-re
Copy link

erik-re commented Dec 6, 2022

As coming from different redis clients, it'd be very useful to have a list of databases (maybe even containing the number of sets in each db) in one connection, as other users have stated in this thread.

+1

@ViktarStarastsenka
Copy link
Collaborator

hi, added support for switching database indexes (control next to the database alias) in RedisInsight 2.18 (released today)

Screenshot

@guillermosaez
Copy link

Hello @ViktarStarastsenka, that control doesn't show for me:
image

@ViktarStarastsenka
Copy link
Collaborator

@guillermosaez , can you please run the INFO KEYSPACE and share the results?

@guillermosaez
Copy link

@ViktarStarastsenka
image

@ViktarStarastsenka
Copy link
Collaborator

@guillermosaez , can you please additionally run the "CONFIG GET DATABASES"?

@guillermosaez
Copy link

@ViktarStarastsenka
image

@ViktarStarastsenka
Copy link
Collaborator

@guillermosaez , currently, you do not have permission to run the CONFIG command, which is used to define if there are any database indexes.
We will enhance the logic in the next releases

@guillermosaez
Copy link

@guillermosaez , currently, you do not have permission to run the CONFIG command, which is used to define if there are any database indexes. We will enhance the logic in the next releases

@ViktarStarastsenka thank you for clarification. As I can read here, it seems the CONFIG command is disabled for "Azure cache for Redis", which is what I am using.
Is there any workaround?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests