Skip to content

Commit

Permalink
grammar correction splited -> split (#717)
Browse files Browse the repository at this point in the history
  • Loading branch information
dgrinbergs authored Oct 30, 2023
1 parent 2388c2d commit 3bce73e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pages/docs/create.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ db.Omit("Name", "Age", "CreatedAt").Create(&user)

## <span id="batch_insert">Batch Insert</span>

To efficiently insert large number of records, pass a slice to the `Create` method. GORM will generate a single SQL statement to insert all the data and backfill primary key values, hook methods will be invoked too. It will begin a **transaction** when records can be splited into multiple batches.
To efficiently insert large number of records, pass a slice to the `Create` method. GORM will generate a single SQL statement to insert all the data and backfill primary key values, hook methods will be invoked too. It will begin a **transaction** when records can be split into multiple batches.

```go
var users = []User{{Name: "jinzhu1"}, {Name: "jinzhu2"}, {Name: "jinzhu3"}}
Expand Down

0 comments on commit 3bce73e

Please sign in to comment.