mirror of
https://github.com/ent/ent.git
synced 2026-04-29 06:00:55 +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: (2000 Inserts) 8.41s 4206748 ns/op 4595 B/op 115 allocs/op To: (2000 Inserts) 4.66s 2330222 ns/op 4107 B/op 104 allocs/op