-
-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Labels
enhancementNew feature or requestNew feature or requests: acceptedwas accepted or confirmedwas accepted or confirmed
Milestone
Description
This is extremely slow and it is a pity this is a default in a new Gobuffalo app (until performances increase...).
Can I understand why this is the default?
If I comment default lines in app.go
Buffalo is much faster!
// app.Use(popmw.Transaction(models.DB))
Beego and others doesn't have transaction manager like this by default.
Is this also like Rails ActiveRecord behaviour?
I'm using just this code for some perf tests using in a new project just one resolver:
var player models.Player
if err := models.DB.Last(&player); err != nil {
return &player, fmt.Errorf("no selected player")
}
return &player, nil
ijtu007
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requests: acceptedwas accepted or confirmedwas accepted or confirmed