Skip to content

Commit e46b182

Browse files
committed
query the GSI
1 parent 6cf183a commit e46b182

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lambdas/id_sync/src/ieds_db_operations.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ def get_items_to_update(old_patient_pk: str) -> list:
152152
logger.info(f"Getting items to update for old patient PK: {old_patient_pk}")
153153
try:
154154
response = get_ieds_table().query(
155+
IndexName='PatientGSI', # query the GSI
155156
KeyConditionExpression=Key('PatientPK').eq(old_patient_pk),
156157
Limit=BATCH_SIZE
157158
)

0 commit comments

Comments
 (0)