so i was trying to parallelize the migration by batching 1k resources at a time. the same subject can have a relation with multiple resources, so there might be calls that update the same subject for a different resource happening in parallel - from what I can see, this is causing the transaction locks/retries