I'm getting this error consistently with my Rails site on Heroku using ClearDB mySQL.
Mysql2::Error: User '123123' has exceeded the 'max_questions' resource
(current value: 18000)
Looking at the logs, the exceptions are returning for normal ActiveRecord finds. One of the exceptions is complaining about a scope in a model concern.
ActiveRecord::StatementInvalid: Mysql2::Error: User '123123'
has exceeded the 'max_questions' resource (current value: 36000): SET
@@SESSION.sql_mode = CONCAT(CONCAT(@@sql_mode, ',STRICT_ALL_TABLES'),
',NO_AUTO_VALUE_ON_ZERO'), @@SESSION.sql_auto_is_null = 0,
@@SESSION.wait_timeout = 2147483
I'm on the Punch plan. The site isn't getting much traffic at all. Around 100 visits a day. Is there something I'm not configuring correctly within Rails or Heroku to avoid this error?
Update: Moved to next plan higher and still getting these exceptions.