Roman Rizzi a3df065058
PERF: Do fewer queries when converting posts. (#8358)
- 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.
2019-11-18 11:04:21 -03:00
..
2019-10-21 12:08:20 +01:00
2019-10-21 12:08:20 +01:00
2019-10-21 12:08:20 +01:00
2019-10-30 12:59:59 +01:00
2019-10-21 12:08:20 +01:00
2019-05-13 15:24:24 +01:00
2019-10-21 12:08:20 +01:00
2019-10-17 16:58:22 +11:00
2019-05-29 14:26:24 +10:00
2019-10-21 12:08:20 +01:00
2019-10-17 16:58:22 +11:00
2019-10-21 12:08:20 +01:00
2019-10-21 12:08:20 +01:00
2019-10-17 16:58:22 +11:00
2019-04-08 17:03:26 +05:30