Insert Queries
Perform single or bulk inserts without creating any entities
If you create a new entity, you can save it by calling saveEntity
as described on the Basic Saving page. There might be times however, when you want to quickly save one or more new records without necessarily creating new entities for each record. You can achieve this using insert queries.
You can also insert multiple records in a single query, which will send a single SQL statement to the database (unlike the saveEntities
method, which has to loop through the entities and send a query to the database for each one):
Last updated