Conversation
Co-authored-by: snehithv <7270678+snehithv@users.noreply.github.com>
Co-authored-by: snehithv <7270678+snehithv@users.noreply.github.com>
snehithv
reviewed
Nov 14, 2025
Copilot
AI
changed the title
[WIP] Support consistent read in Get/Query operations
Add ConsistentRead support for GetItem and Query operations
Nov 14, 2025
Co-authored-by: snehithv <7270678+snehithv@users.noreply.github.com>
Copilot
AI
changed the title
Add ConsistentRead support for GetItem and Query operations
Add ConsistentRead support for GetItem, Query, and BatchGetItems operations
Nov 14, 2025
snehithv
reviewed
Nov 14, 2025
Co-authored-by: snehithv <7270678+snehithv@users.noreply.github.com>
Contributor
|
@copilot fix the unit test as the current failing one always runs out of memory |
Co-authored-by: snehithv <7270678+snehithv@users.noreply.github.com>
Contributor
Author
Fixed the memory leak in Changed to reuse mock instances with a Commit: eab7090 |
snehithv
approved these changes
Nov 14, 2025
snehithv
approved these changes
Nov 14, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adds support for DynamoDB strongly consistent reads in
getItem,query,queryWithCursor, andbatchGetItemsoperations per AWS SDK specification.Implementation:
consistentReadas a separate optional parameter (not part of Filter object)getItem()accepts optionalconsistentReadparameter (3rd argument)batchGetItems()accepts optionalconsistentReadparameter (3rd argument)query()accepts optionalconsistentReadparameter (3rd argument, afterindexName)queryWithCursor()accepts optionalconsistentReadparameter (3rd argument, afterindexName)Usage:
Notes:
Test Performance Fix:
Fixed a memory leak in
queryWithCursor.spec.tsthat was causing out-of-memory errors in CI/CD:DynamoDBPaginateQueryMockImplclass was creating a new copy of 300 test items on every instantiationreset()method instead of creating new onesRelated Issues
Issue: #173
How Has This Been Tested
consistentRead: true,false, andundefinedfor all four functionsbatchGetItems(>100 items) to ensure consistent read is applied across all batchesTypes of changes
Checklist
Screenshots (if appropriate)
N/A
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.