Rails 3.2 Explains the cause of strange document loading issues

This is a strange problem that I could not find on Google.

I occasionally encounter this exception in transactions that involve loading a document in AWS S3.

Mysql2::Error: Table 'app_name_development.begin' doesn't exist: EXPLAIN BEGIN

Disabling the explanation by commenting out this line in your environment configuration fixes the problem:

# config.active_record.auto_explain_threshold_in_seconds = 0.5

I am running MySQL.

+5
source share
2 answers

Your problem is that you are using an older version of the rails and it does not have corrections for non-CRUD-based explanations: https://github.com/rails/rails/pull/7657

The problem is the most activated.

+1
source

, , , :

config.active_record.auto_explain_threshold_in_seconds = nil

config/environment/development.rb.

0

All Articles