When calling save many times, it works but takes a few minuts.
num = 100000
for i in range(num):
lu = sm.UserType(type_id=1)
lu.save()
In my understanding save exec the SQL
.
So if I can put save
together, it takes a shorter time.
Is there any practice for this purpose?