• Roman Rizzi's avatar
    PERF: Do fewer queries when converting posts. (#8358) · a3df0650
    Roman Rizzi authored
    - 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.
    a3df0650
Name
Last commit
Last update
.tx Loading commit data...
app Loading commit data...
bin Loading commit data...
config Loading commit data...
db Loading commit data...
docs Loading commit data...
images Loading commit data...
lib Loading commit data...
log Loading commit data...
packaging/debian Loading commit data...
plugins Loading commit data...
public Loading commit data...
script Loading commit data...
spec Loading commit data...
test Loading commit data...
vendor Loading commit data...
.codeclimate.yml Loading commit data...
.editorconfig Loading commit data...
.env.sample Loading commit data...
.eslintignore Loading commit data...
.eslintrc Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.pkgr.yml Loading commit data...
.prettierignore Loading commit data...
.rspec Loading commit data...
.rspec_parallel Loading commit data...
.rubocop.yml Loading commit data...
.ruby-gemset.sample Loading commit data...
.ruby-version.sample Loading commit data...
.travis.yml Loading commit data...
Brewfile Loading commit data...
CONTRIBUTING.md Loading commit data...
COPYRIGHT.txt Loading commit data...
Dangerfile Loading commit data...
Gemfile Loading commit data...
Gemfile.lock Loading commit data...
LICENSE.txt Loading commit data...
README.md Loading commit data...
Rakefile Loading commit data...
adminjs Loading commit data...
config.ru Loading commit data...
d Loading commit data...
discourse.sublime-project Loading commit data...
jsapp Loading commit data...
lefthook.yml Loading commit data...
package.json Loading commit data...
yarn.lock Loading commit data...