I want to list the only the last week data inside the azure container. The python code I'm using first lists whole data and then filters it according to given the if condition.
list1 = [a.name for a in container_client.list_blobs(name_starts_with='folder1/') if a.last_modified.date() in last_week]
The time taken by this command increases as the size of folder1 increases, So is their any way to get this list in an more efficient manner ?