hanxi opened a new pull request, #3294:
URL: https://github.com/apache/kvrocks/pull/3294

   Closes #3291
   
   Implements redis-select-compatible configuration option that enables Redis 
SELECT command support by mapping database indices to namespaces. When enabled, 
SELECT 0-15 commands are translated to namespace switches, allowing legacy 
Redis clients to work seamlessly with Kvrocks.
   
   Key Implementation:
   - redis-select-compatible: Enable/disable SELECT command support (default: 
no)
   - redis-select-db-prefix: Namespace prefix for database mapping (default: 
__db)
   - redis-select-db-count: Number of logical databases (default: 16, range: 
1-10000)
   - SELECT <dbid> internally calls SetNamespace({prefix}{dbid}) to switch 
context
   - Validates namespace conflicts on startup to prevent data corruption
   
   Changes:
   - Add three new readonly config options in kvrocks.conf
   - Implement SELECT command handler with namespace-based switching
   - Add startup validation to check namespace conflicts
   - Add comprehensive configuration documentation
   
   This provides native SELECT command support without external proxies, 
maintaining compatibility with Redis clients while leveraging Kvrocks' 
namespace architecture.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to