Skip to content

Add client parameter to Batch.read in find_all operation #148

@labac-p

Description

@labac-p

Describe the feature

Add support for passing the configured DynamoDB client to Batch.read operations when using the find_all method. This change ensures that the same client configuration used for individual operations is also used for batch operations.

The implementation updates the find_all method to pass the model's dynamodb_client to Batch.read, maintaining configuration consistency throughout the codebase.

Use Case

When working with multiple DynamoDB endpoints or regions, users configure model classes with specific clients. Previously, while individual operations respected these configurations, batch operations did not receive the client setting.

This enhancement ensures that applications working with custom client configurations (different regions, endpoints, credentials, etc.) will have consistent behavior across all operations, eliminating potential connection errors when batch operations defaulted to different configuration than individual operations.

Proposed Solution

No response

Other Information

No response

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change

aws-sdk-ruby-record version used

2.13.3

Environment details (OS name and version, etc.)

Linux

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature-requestA feature should be added or improved.needs-triageThis issue or PR still needs to be triaged.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions