Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

All the sessions are not displayed in the history #290

Merged
merged 1 commit into from
Jan 9, 2024

Conversation

azaylamba
Copy link
Contributor

Issue #289: For the users who have long conversation histories and a lot of items in sessions table, all the records were not displayed on the UI.

Description of changes: DynamoDB query operation was not returning all the records because the total size of records was more than 1MB and in such cases, DynamoDB query operation does not handle pagination automatically.

As a fix, added code to handle the pagination based on the 'LastEvaluatedKey' returned by DynamoDB.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

… in sessions table, all the records were not displayed on the UI.

DynamoDB query operation was not returning all the records because the total size of records was more than 1MB and in such cases, DynamoDB query operation does not handle pagination automatically.

As a fix, added code to handle the pagination based on the 'LastEvaluatedKey' returned by DynamoDB.
@azaylamba
Copy link
Contributor Author

@massi-ang could you please have a look?

@bigadsoleiman bigadsoleiman merged commit a31d7c9 into aws-samples:main Jan 9, 2024
@azaylamba azaylamba deleted the user-sessions branch February 4, 2024 16:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants