I would like to optimize the Rails 3.2.13 application that currently uses postgis via gem.
The problem is that when I make a query in a table, even if it has only regular fields (without geography / geometry / this kind of material), this query is preceded by another query in the postgis table "geometry_columns".
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 table / user model.
Does anyone know how I can avoid unnecessary queries?
Thanks to everyone.
Gozup source share