Skip to content

更新しないモデル(create or destroyのみ)向け最適化 #88

Open

Description

@tompng

sync_keysつけてsubscribeする意味がないし、そういうレコードは大体取得するデータの枝葉にあたるもので数も多いはず(いいねとかそういう奴)
sync_keysつけなくていいよと明示する方法があるといいはず
(sync_keysフィールドを空配列返すように上書きしてしまえばとりあえず大丈夫だけど)

class いいね<ApplicationRecord
  sync_parent :comment, inverse_of :ぃぃねs
  sync_has_data :id, :userId, :createdAt
  sync_そういうのいらん! # を表すいい名前
end

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions