Can someone please explain why every time that I call an action in my
controller, every model that is stored in the session needs to be
interpreted by a database query? If I have four models stored in the
session, I end up with five long “SELECT a.attname,
format_type(a.atttypid, a.atttypmod), d.adsrc, a.attnotnull FROM
pg_attribute a LEFT JOIN pg_attrdef d…” queries when ANY action is
called. I’ve tried adding the models in my ApplicationController, but
to no avail.
It is extremely annoying to sort through the console messages with these
repeating queries. Is this supposed to be happening??? Why do normal
ActiveRecord objects not need this query when they are used??
It started when I moved to PostgreSQL.
Thanks for any insight,