Currently, all uncommitted changes are sent sequentially to the server.
But some metadata change endpoints allow a multitude of changes be applied directly to a bunch of assets.
Check the pyfwapi code and optimize where possible.
|
async def commit(self, *, conn: APIConnection, await_done: bool = True): |
|
"""Commit changes ready to commit.""" |
|
for task in self.tasks.values(): |
|
if task.status != "uncommitted": |
|
continue |
|
await self.commit_uncommitted(task, conn=conn) |
Currently, all uncommitted changes are sent sequentially to the server.
But some metadata change endpoints allow a multitude of changes be applied directly to a bunch of assets.
Check the pyfwapi code and optimize where possible.
pyfwapi/pyfwapi/change/stateful.py
Lines 83 to 88 in 7ec52a9