Repo.insert_all
can not insert into multiple tables. Since changesets can do, e.g. cast_assoc
to create/update/delete multiple associations, this conflicts with the way bulk inserts work.
Can you describe your data model, so it will be easier to talk about possible approaches to achieve what you want?