I'd like to optimize my Rails 3.2.13 application that's currently using postgis through activerecord-postgis-adapter gem.
The problem is that when I make a query in a table, even if there are only regular fields in it (no geography/geometry/this kind of stuff), this query is preceded by another query on postgis "geometry_columns" table.
Example:
(5.6ms) SELECT * FROM geometry_columns WHERE f_table_name='srlzd_infos'
SrlzdInfo Load (1.1ms) SELECT "srlzd_infos".* FROM "srlzd_infos" WHERE "srlzd_infos"."user_id" = 1009 LIMIT 1
But I use postgis only in my Users table/model.
Does anyone know how can I avoid those unnecessary queries?
Thank you all.