Could someone explain in which cases I have to use create
or populate
methods on ResultSet in DBIx::Class? And what differences between each other if everyone is used to insert some data to database?
UPD
For example. I have to insert some data to table1. There are create and populate methods for it. So I have to use create
if there are any relationships otherwise I have to use populate
, aren't there?
Create inserts one row (and possibly associated rows in other tables). Populate inserts multiple rows.