config.action_controller.session_store = :active_record_store
Session storage allows the use of active_record_store way to test a very simple request:
class QuickReController < ApplicationController
def index
render :text=>"OK!"
end
end After testing will:
# config.action_controller.session_store = :active_record_store
Comment out this sentence, and then test the method.
Same deployment, the same pressure,
Found using Session storage active_record_store way 60TPS not only the methods, there is no method of using Session storage has 260TPS! My server is 4 * thin, front to do load balancing with Apache.
Under the U.S. to ask, is there a better way to enable Session to update the table to read faster, or another storage Sessin faster, but the mechanisms and active_record_store similar in order to avoid big changes.







