database - Random "SELECT 1" query in all requests on rails -


i'm profiling rails 3.2 app miniprofiler, , shows me a

select 1 

query @ beginning of each page load or ajax call. takes 0.4ms, still seemingly unnecessary database query.

anyone know why query happening or how rid of it?

enter image description here

select 1 ping - cheapest query test whether session alive , kicking. various clients use purpose. may useless in case ...


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -