.append()
command inside of the for
loop.with
syntax below significantly improves performance because it only pushes updates to long-term storage after the code block inside the with
statement has been executed, or when the local cache is full.