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:
parent
e7bea8f004
commit
ee702e36e5
5 changed files with 65 additions and 10 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue