I am in a situation where I would have to insert multiple records into a postgre db through an ajax call, based on a foreignkey.
Currently I am using db1.db2_set.create(...)
for each record, looping over a list of dictionaries.
Is this the best way to do it? It seems like I'm hitting the database for every insert.