Change follow recommendation materialized view to be faster in most cases (#26545)
Co-authored-by: Renaud Chaput <renchap@gmail.com>
This commit is contained in:
		@@ -2,7 +2,7 @@
 | 
			
		||||
 | 
			
		||||
# == Schema Information
 | 
			
		||||
#
 | 
			
		||||
# Table name: follow_recommendations
 | 
			
		||||
# Table name: global_follow_recommendations
 | 
			
		||||
#
 | 
			
		||||
#  account_id :bigint(8)        primary key
 | 
			
		||||
#  rank       :decimal(, )
 | 
			
		||||
@@ -11,6 +11,7 @@
 | 
			
		||||
 | 
			
		||||
class FollowRecommendation < ApplicationRecord
 | 
			
		||||
  self.primary_key = :account_id
 | 
			
		||||
  self.table_name = :global_follow_recommendations
 | 
			
		||||
 | 
			
		||||
  belongs_to :account_summary, foreign_key: :account_id, inverse_of: false
 | 
			
		||||
  belongs_to :account
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user