- Avoid using User#find and then fetching the user_stat association just to update a counter - We did this for every post in the topic. - Avoid having to query the topic_allowed_user table everytime we want add a new topic_allowed_user - Use pluck to fetch just what we need. |
||
|---|---|---|
| .. | ||
| assets | ||
| controllers | ||
| helpers | ||
| jobs | ||
| mailers | ||
| models | ||
| serializers | ||
| services | ||
| views | ||