New function: batch save of objects would make for more efficient processing
|Reported by:||Lllama||Owned by:||Adrian Holovaty|
|Has patch:||no||Needs documentation:||yes|
|Needs tests:||no||Patch needs improvement:||no|
Currently new records are saved one at the time using save(). In most cases this is sufficient though a batch save method would allow for more efficient database access when appropriate.
An example: An app allows the upload of a file which is parsed into many records. Currently each record would have to be looped over and save()d. A function which took the list of records and did One Big Insert would make the operation more efficient.
Change History (5)
comment:4 Changed 7 years ago by
|Status:||reopened → closed|