createMany
In Python the async client runs rows concurrently (
concurrency= there); the sync client sends them in order.
All or nothing: a transaction
When several writes must succeed together (move stock and create the order, or neither), do them in a flow with the Transaction block. Itsoperations is a list; either every write lands or none does:
The block outputs the results in order. An
update of a record that doesn’t exist fails the whole transaction with not_found, and nothing is written. Events for the records it created and updated are emitted only after the transaction has committed; deletes made in a transaction don’t emit events. Call the flow from your app with pawabase.flows.run(...), or make it a route.
The flow runs with its own authority, so check who’s asking (a Require sign-in or Check policy block) before the transaction.
Update or delete many
Query, then act on each:When to use import instead
Progress
For a progress bar, chunk it yourself:Write records
Single writes.
Import and export
For files and large loads.