mirror of
https://github.com/ent/ent.git
synced 2026-04-28 13:40:56 +03:00
For example, in PostgreSQL, every statement is executed within a transaction. Therefore, we can avoid creating transaction blocks manually (group of statements surrounded by BEGIN and COMMIT) for CreateNode operation with single SQL statement. Benchmark was improved from: (4000 BatchInserts) 17.16s 4289178 ns/op 412893 B/op 4913 allocs/op To: (4000 BatchInserts) 9.16s 2288807 ns/op 412142 B/op 4899 allocs/op