You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In this case we already have the two records and all of their information. So why does it do two SELECT statements to get them again before doing the INSERT into the follows table? We're doing one query to see if the follow already exists, two more queries to get the follower and followable, and then the insert. Four queries on every follow seems excessive.
The text was updated successfully, but these errors were encountered:
user.follow(user2)
In this case we already have the two records and all of their information. So why does it do two SELECT statements to get them again before doing the INSERT into the follows table? We're doing one query to see if the follow already exists, two more queries to get the follower and followable, and then the insert. Four queries on every follow seems excessive.
The text was updated successfully, but these errors were encountered: