mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-11-03 07:20:07 -05:00 
			
		
		
		
	This reverts commit fa8c3beb26. #28546 
Because it seems performance become worse.
			
			
This commit is contained in:
		@@ -446,12 +446,9 @@ func GetFeeds(ctx context.Context, opts GetFeedsOptions) (ActionList, int64, err
 | 
			
		||||
		return nil, 0, err
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	sess := db.GetEngine(ctx).Where(cond)
 | 
			
		||||
	if setting.Database.Type.IsMySQL() {
 | 
			
		||||
		sess = sess.IndexHint("USE", "JOIN", "IDX_action_c_u_d")
 | 
			
		||||
	}
 | 
			
		||||
	sess = sess.Select("`action`.*"). // this line will avoid select other joined table's columns
 | 
			
		||||
						Join("INNER", "repository", "`repository`.id = `action`.repo_id")
 | 
			
		||||
	sess := db.GetEngine(ctx).Where(cond).
 | 
			
		||||
		Select("`action`.*"). // this line will avoid select other joined table's columns
 | 
			
		||||
		Join("INNER", "repository", "`repository`.id = `action`.repo_id")
 | 
			
		||||
 | 
			
		||||
	opts.SetDefaultValues()
 | 
			
		||||
	sess = db.SetSessionPagination(sess, &opts)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user