Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

bsbodden
Copy link
Collaborator

Remove MODULE LIST calls during connection initialization and index creation. Operations now fail naturally when Redis modules are missing, providing clear error messages at the point of failure.

Changes:

  • Remove validate_modules() function and DEFAULT_REQUIRED_MODULES constant
  • Remove required_modules parameter from all connection methods
  • Remove proactive validation from SearchIndex and AsyncSearchIndex
  • Remove validation from SemanticRouter.from_existing()
  • Fix SemanticCache to use lazy client initialization
  • Add comprehensive TDD tests verifying no MODULE LIST calls
  • Remove skip_if_module_version_error test helper
  • Remove unused RedisModuleVersionError exception

This change improves performance by eliminating unnecessary network roundtrips and reduces latency during connection initialization, especially beneficial for Redis Cluster deployments.

@bsbodden bsbodden requested a review from rbs333 September 24, 2025 02:48
@bsbodden bsbodden self-assigned this Sep 24, 2025
@bsbodden bsbodden force-pushed the bsb/issue-370 branch 2 times, most recently from 86fe501 to d99111b Compare September 24, 2025 16:48
@bsbodden bsbodden removed the request for review from rbs333 September 24, 2025 16:55
@bsbodden bsbodden force-pushed the bsb/issue-370 branch 6 times, most recently from 8168c33 to 1320062 Compare September 25, 2025 06:28
Remove MODULE LIST calls during connection initialization and index
creation. Operations now fail naturally when Redis modules are missing,
providing clear error messages at the point of failure.

Changes:
- Remove validate_modules() function and DEFAULT_REQUIRED_MODULES constant
- Remove required_modules parameter from all connection methods
- Remove proactive validation from SearchIndex and AsyncSearchIndex
- Remove validation from SemanticRouter.from_existing()
- Fix SemanticCache to use lazy client initialization
- Remove skip_if_module_version_error test helper
- Remove unused RedisModuleVersionError exception
- Fix mocking strategy to patch instance methods instead of class methods
Copy link
Collaborator

@rbs333 rbs333 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good and runs on my machine

@bsbodden bsbodden merged commit a56f9a1 into main Sep 25, 2025
38 checks passed
@bsbodden bsbodden deleted the bsb/issue-370 branch September 25, 2025 21:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants