Open sor4chi opened 1 year ago
(pprof) list retrievePlayer
Total: 32.11s
ROUTINE ======================== github.com/isucon/isucon12-qualify/webapp/go.retrievePlayer in /home/isucon/webapp/go/isuports.go
10ms 2.93s (flat, cum) 9.12% of Total
. . 377:}
. . 378:
. . 379:// 参加者を取得する
. . 380:func retrievePlayer(ctx context.Context, tenantDB dbOrTx, id string) (*PlayerRow, error) {
. . 381: var p PlayerRow
. 2.92s 382: if err := tenantDB.GetContext(ctx, &p, "SELECT * FROM player WHERE id = ?", id); err != nil {
. . 383: return nil, fmt.Errorf("error Select player: id=%s, %w", id, err)
. . 384: }
10ms 10ms 385: return &p, nil
. . 386:}