Rails 4.2 ActiveRecord::SchemaMigration is called 4 times on a refresh / restart -


After the

the application is running using 4.2beta2 using nginx / passenger passenger mode in Dev mode (Rail 3.2) ), Rbenv / mri 2.1.3 against a mysql 5.5 server

and I see this in logs.

  ActiveRecord :: SchemaMigration load (0.9ms) schema_migrations` selections` * to `schema_migrations` ActiveRecord :: SchemaMigration load (0.6ms) schema_migrations` selection`. * `Schema_migrations` from ActiveRecord :: SchemaMigration load (2.7ms) schema_migrations` selection`. * Select `schema_migrations` ActiveRecord :: SchemaMigration Load (0.7ms) from` schema_migrations`. * To `schema_migrations`   

Anyone have any idea why this can be said 4 times? Not minding the server is a terrible hit on you, just wondering if I'm doing something wrong.

OK Looking for a solution for someone else, Rail model nameName.exists to mine Have a combination of looking into? Works, how our configatron gem works and fixing configatron initializer

bottom line ModelName.exists? There was no cache and my code was called 4 times Fixed must be said only once.

Comments

Popular posts from this blog

java - ImportError: No module named py4j.java_gateway -

python - Receiving "KeyError" after decoding json result from url -

.net - Creating a new Queue Manager and Queue in Websphere MQ (using C#) -