From a37b4d0617270cbb21c03f4d2f81f1d0538c3827 Mon Sep 17 00:00:00 2001 From: ringe Date: Thu, 3 May 2012 17:22:39 +0200 Subject: [PATCH] add specific tip, since I'm so slow --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index ec3516aed..63ede9b4f 100644 --- a/README.md +++ b/README.md @@ -201,7 +201,7 @@ Another configuration is the showplan option. Some might find the XML format mor ActiveRecord::ConnectionAdapters::SQLServerAdapter.showplan_option = 'SHOWPLAN_XML' ``` -**NOTE:** The method we utilize to make SHOWPLANs work is very brittle to complex SQL. There is no getting around this as we have to deconstruct an already prepared statement for the sp_executesql method. If you find that explain breaks your app, simple disable it. Do not open a github issue unless you have a patch. To disable explain, just set the threshold to nil. Please [consult the Rails guides](http://guides.rubyonrails.org/active_record_querying.html#running-explain) for more info. +**NOTE:** The method we utilize to make SHOWPLANs work is very brittle to complex SQL. There is no getting around this as we have to deconstruct an already prepared statement for the sp_executesql method. If you find that explain breaks your app, simple disable it. Do not open a github issue unless you have a patch. To disable explain, just set the threshold to nil. Please [consult the Rails guides](http://guides.rubyonrails.org/active_record_querying.html#running-explain) for more info. Change this setting in your ```config/environments/development.rb```: ```ruby config.active_record.auto_explain_threshold_in_seconds = nil