Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Call executemany with a generator instead of a list.
asyncpg's Connection.executemany([..]) can take a generator, so calling it with a list introduces an unnecessary memory inefficiency, which scales with the size of the records being inserted.
- Loading branch information