dragonfly icon indicating copy to clipboard operation
dragonfly copied to clipboard

Creating an index in non zero DB

Open BagritsevichStepan opened this issue 10 months ago • 4 comments

When attempting to create an index in a database other than DB 0 using the FT.CREATE command, we are throwing an error.

This matches Redis behavior, but it would be useful if DragonflyDB supported indexes in multiple databases.

  • [ ] First, determine whether the current architecture can support FT.CREATE in any database. If possible, define whether indexes should be global across all databases or isolated within each database
  • [ ] Implement it

BagritsevichStepan avatar Mar 03 '25 08:03 BagritsevichStepan

why do you think it's useful? Please note that most Search users are coming from Redis workloads and they mostly use cluster mode, so they do not use multiple databases.

romange avatar Mar 03 '25 08:03 romange

@romange I don’t believe this is very useful, which is why I marked the issue as minor. However, since we received a request about it on Discord, I decided to create an issue for the user. This way, we can document our thoughts and feedback regarding the request here.

BagritsevichStepan avatar Mar 03 '25 09:03 BagritsevichStepan

Can you paste here the link to the discord message then?

romange avatar Mar 03 '25 10:03 romange

https://discord.com/channels/981533931486724126/1345295520561631263/1345309959524454451

BagritsevichStepan avatar Mar 03 '25 11:03 BagritsevichStepan