If you're writing DB-driven apps in Golang -- and you should avoid to the maximum extent possible -- take a look at https://github.com/jinzhu/gorm .
@kennwhite instance := // initialize it; err := db.Find(&instance).Related(&other_objects, "SomeForeignKey").Error; <-- Spot the bug.
-
-
@patio11 no clue. Missing index on other_objects? -
@kennwhite If you don't use db.Model(&instance) it will do no query at all. (I think -- don't have old bugged code in front of me.) - 1 more reply
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.