PERF: Active Record #pluck is twice faster

PERF: SqlBuilder bypasses AR converters and uses PG directly
This commit is contained in:
Sam
2015-05-13 16:45:59 +10:00
parent e81f122a3f
commit 51d82fc25d
4 changed files with 143 additions and 34 deletions

View File

@ -2,9 +2,6 @@ require 'spec_helper'
require_dependency 'post_destroyer'
describe PostAction do
it { is_expected.to belong_to :user }
it { is_expected.to belong_to :post }
it { is_expected.to belong_to :post_action_type }
it { is_expected.to rate_limit }
let(:moderator) { Fabricate(:moderator) }
@ -458,6 +455,7 @@ describe PostAction do
end
expect(topic.reload.closed).to eq(true)
end
end