Skip to content

Commit a397796

Browse files
committed
Don't join repository when loading action table data
1 parent 6fa962f commit a397796

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

models/activities/action.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -455,8 +455,7 @@ func GetFeeds(ctx context.Context, opts GetFeedsOptions) (ActionList, int64, err
455455

456456
if opts.Page < 10 { // TODO: why it's 10 but other values? It's an experience value.
457457
sess := db.GetEngine(ctx).Where(cond).
458-
Select("`action`.*"). // this line will avoid select other joined table's columns
459-
Join("INNER", "repository", "`repository`.id = `action`.repo_id")
458+
Select("`action`.*") // this line will avoid select other joined table's columns
460459

461460
opts.SetDefaultValues()
462461
sess = db.SetSessionPagination(sess, &opts)

0 commit comments

Comments
 (0)