{"action":"created","issue":{"url":"https://api.github.com/repos/refinery/refinerycms/issues/2950","labels_url":"https://api.github.com/repos/refinery/refinerycms/issues/2950/labels{/name}","comments_url":"https://api.github.com/repos/refinery/refinerycms/issues/2950/comments","events_url":"https://api.github.com/repos/refinery/refinerycms/issues/2950/events","html_url":"https://github.com/refinery/refinerycms/issues/2950","id":68549123,"number":2950,"title":"Too many queries in Refinery::Admin::PagesController#index","user":{"login":"bricesanchez","id":1678530,"avatar_url":"https://avatars.githubusercontent.com/u/1678530?v=3","gravatar_id":"","url":"https://api.github.com/users/bricesanchez","html_url":"https://github.com/bricesanchez","followers_url":"https://api.github.com/users/bricesanchez/followers","following_url":"https://api.github.com/users/bricesanchez/following{/other_user}","gists_url":"https://api.github.com/users/bricesanchez/gists{/gist_id}","starred_url":"https://api.github.com/users/bricesanchez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bricesanchez/subscriptions","organizations_url":"https://api.github.com/users/bricesanchez/orgs","repos_url":"https://api.github.com/users/bricesanchez/repos","events_url":"https://api.github.com/users/bricesanchez/events{/privacy}","received_events_url":"https://api.github.com/users/bricesanchez/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/refinery/refinerycms/labels/Needs%20verification","name":"Needs verification","color":"d7e102"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-04-15T02:06:51Z","updated_at":"2015-06-02T09:25:39Z","closed_at":null,"body":"We've a new refinery 3.0 project, we have 20~ pages and it's very slow on dev, there is a lot of queries :\r\n\r\nIs there any solutions to reduce the number of queries ?\r\n\r\n```bash\r\nStarted GET \"/admin/pages\" for ::1 at 2015-04-14 11:05:59 -0400\r\nProcessing by Refinery::Admin::PagesController#index as HTML\r\n  Parameters: {\"locale\"=>:fr}\r\n  Spree::User Load (0.6ms)  SELECT  \"spree_users\".* FROM \"spree_users\" WHERE \"spree_users\".\"deleted_at\" IS NULL AND \"spree_users\".\"id\" = $1  ORDER BY \"spree_users\".\"id\" ASC LIMIT 1  [[\"id\", 1]]\r\n   (0.6ms)  SELECT COUNT(*) FROM \"spree_roles\" INNER JOIN \"spree_roles_users\" ON \"spree_roles\".\"id\" = \"spree_roles_users\".\"role_id\" WHERE \"spree_roles_users\".\"user_id\" = $1 AND \"spree_roles\".\"name\" = $2  [[\"user_id\", 1], [\"name\", \"admin\"]]\r\n  Rendered .gems/gems/refinerycms-acts-as-indexed-2.0.1/app/views/refinery/acts_as_indexed/admin/_search_header.html.erb (0.3ms)\r\n  Rendered .gems/bundler/gems/refinerycms-4e89461f799e/core/app/views/refinery/admin/_search_header.html.erb (356.6ms)\r\n   (0.6ms)  SELECT COUNT(*) FROM \"refinery_pages\"\r\n  Refinery::Page Load (0.6ms)  SELECT \"refinery_pages\".* FROM \"refinery_pages\" WHERE \"refinery_pages\".\"parent_id\" IS NULL  ORDER BY lft ASC, \"refinery_pages\".\"lft\"\r\n  Refinery::Page::Translation Load (0.7ms)  SELECT \"refinery_page_translations\".* FROM \"refinery_page_translations\" WHERE \"refinery_page_translations\".\"refinery_page_id\" IN (1, 14, 19, 20, 3, 4, 11, 10, 12, 5, 13, 8)\r\n  Refinery::Page Load (0.6ms)  SELECT \"refinery_pages\".* FROM \"refinery_pages\" WHERE \"refinery_pages\".\"parent_id\" IN (1, 14, 19, 20, 3, 4, 11, 10, 12, 5, 13, 8)  ORDER BY \"lft\"\r\n  Refinery::Page Load (0.2ms)  SELECT \"refinery_pages\".* FROM \"refinery_pages\" WHERE \"refinery_pages\".\"parent_id\" = $1  ORDER BY \"lft\"  [[\"parent_id\", 2]]\r\n  Refinery::Page::Translation Load (0.2ms)  SELECT \"refinery_page_translations\".* FROM \"refinery_page_translations\" WHERE \"refinery_page_translations\".\"refinery_page_id\" = $1  [[\"refinery_page_id\", 2]]\r\n  Refinery::Page Load (0.6ms)  SELECT \"refinery_pages\".* FROM \"refinery_pages\" WHERE (\"refinery_pages\".\"lft\" <= 2) AND (\"refinery_pages\".\"rgt\" >= 3)  ORDER BY \"refinery_pages\".\"lft\"\r\n  Refinery::Page::Translation Load (0.4ms)  SELECT \"refinery_page_translations\".* FROM \"refinery_page_translations\" WHERE \"refinery_page_translations\".\"refinery_page_id\" IN (1, 2)\r\n  CACHE (0.0ms)  SELECT \"refinery_pages\".* FROM \"refinery_pages\" WHERE (\"refinery_pages\".\"lft\" <= 2) AND (\"refinery_pages\".\"rgt\" >= 3)  ORDER BY \"refinery_pages\".\"lft\"\r\n  CACHE (0.0ms)  SELECT \"refinery_page_translations\".* FROM \"refinery_page_translations\" WHERE \"refinery_page_translations\".\"refinery_page_id\" IN (1, 2)\r\n  CACHE (0.0ms)  SELECT \"refinery_pages\".* FROM \"refinery_pages\" WHERE (\"refinery_pages\".\"lft\" <= 2) AND (\"refinery_pages\".\"rgt\" >= 3)  ORDER BY \"refinery_pages\".\"lft\"\r\n  CACHE (0.0ms)  SELECT \"refinery_page_translations\".* FROM \"refinery_page_translations\" WHERE \"refinery_page_translations\".\"refinery_page_id\" IN (1, 2)\r\n  CACHE (0.0ms)  SELECT \"refinery_pages\".* FROM \"refinery_pages\" WHERE (\"refinery_pages\".\"lft\" <= 2) AND (\"refinery_pages\".\"rgt\" >= 3)  ORDER BY \"refinery_pages\".\"lft\"\r\n  CACHE (0.1ms)  SELECT \"refinery_page_translations\".* FROM \"refinery_page_translations\" WHERE \"refinery_page_translations\".\"refinery_page_id\" IN (1, 2)\r\n  CACHE (0.0ms)  SELECT \"refinery_pages\".* FROM \"refinery_pages\" WHERE (\"refinery_pages\".\"lft\" <= 2) AND (\"refinery_pages\".\"rgt\" >= 3)  ORDER BY \"refinery_pages\".\"lft\"\r\n  CACHE (0.0ms)  SELECT \"refinery_page_translations\".* FROM \"refinery_page_translations\" WHERE \"refinery_page_translations\".\"refinery_page_id\" IN (1, 2)\r\n  Rendered .gems/bundler/gems/refinerycms-4e89461f799e/pages/app/views/refinery/admin/pages/_page.html.erb (0.0ms)\r\n  Rendered .gems/bundler/gems/refinerycms-4e89461f799e/pages/app/views/refinery/admin/pages/_page.html.erb (553.1ms)\r\n  Refinery::Page Load (0.3ms)  SELECT \"refinery_pages\".* FROM \"refinery_pages\" WHERE \"refinery_pages\".\"parent_id\" = $1  ORDER BY \"lft\"  [[\"parent_id\", 15]]\r\n  Refinery::Page::Translation Load (0.2ms)  SELECT \"refinery_page_translations\".* FROM \"refinery_page_translations\" WHERE \"refinery_page_translations\".\"refinery_page_id\" = $1  [[\"refinery_page_id\", 15]]\r\n  Refinery::Page Load (0.5ms)  SELECT \"refinery_pages\".* FROM \"refinery_pages\" WHERE (\"refinery_pages\".\"lft\" <= 6) AND (\"refinery_pages\".\"rgt\" >= 7)  ORDER BY \"refinery_pages\".\"lft\"\r\n  Refinery::Page::Translation Load (0.4ms)  SELECT \"refinery_page_translations\".* FROM \"refinery_page_translations\" WHERE \"refinery_page_translations\".\"refinery_page_id\" IN (14, 15)\r\n  CACHE (0.0ms)  SELECT \"refinery_pages\".* FROM \"refinery_pages\" WHERE (\"refinery_pages\".\"lft\" <= 6) AND (\"refinery_pages\".\"rgt\" >= 7)  ORDER BY \"refinery_pages\".\"lft\"\r\n  CACHE (0.0ms)  SELECT \"refinery_page_translations\".* FROM \"refinery_page_translations\" WHERE \"refinery_page_translations\".\"refinery_page_id\" IN (14, 15)\r\n  CACHE (0.0ms)  SELECT \"refinery_pages\".* FROM \"refinery_pages\" WHERE (\"refinery_pages\".\"lft\" <= 6) AND (\"refinery_pages\".\"rgt\" >= 7)  ORDER BY \"refinery_pages\".\"lft\"\r\n  CACHE (0.0ms)  SELECT \"refinery_page_translations\".* FROM \"refinery_page_translations\" WHERE \"refinery_page_translations\".\"refinery_page_id\" IN (14, 15)\r\n  CACHE (0.0ms)  SELECT \"refinery_pages\".* FROM \"refinery_pages\" WHERE (\"refinery_pages\".\"lft\" <= 6) AND (\"refinery_pages\".\"rgt\" >= 7)  ORDER BY \"refinery_pages\".\"lft\"\r\n  CACHE (0.0ms)  SELECT \"refinery_page_translations\".* FROM \"refinery_page_translations\" WHERE \"refinery_page_translations\".\"refinery_page_id\" IN (14, 15)\r\n  CACHE (0.0ms)  SELECT \"refinery_pages\".* FROM \"refinery_pages\" WHERE (\"refinery_pages\".\"lft\" <= 6) AND (\"refinery_pages\".\"rgt\" >= 7)  ORDER BY \"refinery_pages\".\"lft\"\r\n  CACHE (0.0ms)  SELECT \"refinery_page_translations\".* FROM \"refinery_page_translations\" WHERE \"refinery_page_translations\".\"refinery_page_id\" IN (14, 15)\r\n  CACHE (0.0ms)  SELECT \"refinery_pages\".* FROM \"refinery_pages\" WHERE (\"refinery_pages\".\"lft\" <= 6) AND (\"refinery_pages\".\"rgt\" >= 7)  ORDER BY \"refinery_pages\".\"lft\"\r\n  CACHE (0.0ms)  SELECT \"refinery_page_translations\".* FROM \"refinery_page_translations\" WHERE \"refinery_page_translations\".\"refinery_page_id\" IN (14, 15)\r\n  Rendered .gems/bundler/gems/refinerycms-4e89461f799e/pages/app/views/refinery/admin/pages/_page.html.erb (0.0ms)\r\n  Refinery::Page Load (0.5ms)  SELECT \"refinery_pages\".* FROM \"refinery_pages\" WHERE \"refinery_pages\".\"parent_id\" = $1  ORDER BY \"lft\"  [[\"parent_id\", 16]]\r\n  Refinery::Page::Translation Load (0.3ms)  SELECT \"refinery_page_translations\".* FROM \"refinery_page_translations\" WHERE \"refinery_page_translations\".\"refinery_page_id\" = $1  [[\"refinery_page_id\", 16]]\r\n  Refinery::Page Load (0.7ms)  SELECT \"refinery_pages\".* FROM \"refinery_pages\" WHERE (\"refinery_pages\".\"lft\" <= 8) AND (\"refinery_pages\".\"rgt\" >= 9)  ORDER BY \"refinery_pages\".\"lft\"\r\n  Refinery::Page::Translation Load (0.4ms)  SELECT \"refinery_page_translations\".* FROM \"refinery_page_translations\" WHERE \"refinery_page_translations\".\"refinery_page_id\" IN (14, 16)\r\n  CACHE (0.0ms)  SELECT \"refinery_pages\".* FROM \"refinery_pages\" WHERE (\"refinery_pages\".\"lft\" <= 8) AND (\"refinery_pages\".\"rgt\" >= 9)  ORDER BY \"refinery_pages\".\"lft\"\r\n  CACHE (0.0ms)  SELECT \"refinery_page_translations\".* FROM \"refinery_page_translations\" WHERE \"refinery_page_translations\".\"refinery_page_id\" IN (14, 16)\r\n  CACHE (0.0ms)  SELECT \"refinery_pages\".* FROM \"refinery_pages\" WHERE (\"refinery_pages\".\"lft\" <= 8) AND (\"refinery_pages\".\"rgt\" >= 9)  ORDER BY \"refinery_pages\".\"lft\"\r\n  CACHE (0.0ms)  SELECT \"refinery_page_translations\".* FROM \"refinery_page_translations\" WHERE \"refinery_page_translations\".\"refinery_page_id\" IN (14, 16)\r\n  CACHE (0.0ms)  SELECT \"refinery_pages\".* FROM \"refinery_pages\" WHERE (\"refinery_pages\".\"lft\" <= 8) AND (\"refinery_pages\".\"rgt\" >= 9)  ORDER BY \"refinery_pages\".\"lft\"\r\n  CACHE (0.1ms)  SELECT \"refinery_page_translations\".* FROM \"refinery_page_translations\" WHERE \"refinery_page_translations\".\"refinery_page_id\" IN (14, 16)\r\n  CACHE (0.0ms)  SELECT \"refinery_pages\".* FROM \"refinery_pages\" WHERE (\"refinery_pages\".\"lft\" <= 8) AND (\"refinery_pages\".\"rgt\" >= 9)  ORDER BY \"refinery_pages\".\"lft\"\r\n  CACHE (0.0ms)  SELECT \"refinery_page_translations\".* FROM \"refinery_page_translations\" WHERE \"refinery_page_translations\".\"refinery_page_id\" IN (14, 16)\r\n  CACHE (0.0ms)  SELECT \"refinery_pages\".* FROM \"refinery_pages\" WHERE (\"refinery_pages\".\"lft\" <= 8) AND (\"refinery_pages\".\"rgt\" >= 9)  ORDER BY \"refinery_pages\".\"lft\"\r\n  CACHE (0.0ms)  SELECT \"refinery_page_translations\".* FROM \"refinery_page_translations\" WHERE \"refinery_page_translations\".\"refinery_page_id\" IN (14, 16)\r\n  Rendered .gems/bundler/gems/refinerycms-4e89461f799e/pages/app/views/refinery/admin/pages/_page.html.erb (0.0ms)\r\n  Refinery::Page Load (0.2ms)  SELECT \"refinery_pages\".* FROM \"refinery_pages\" WHERE \"refinery_pages\".\"parent_id\" = $1  ORDER BY \"lft\"  [[\"parent_id\", 17]]\r\n  Refinery::Page::Translation Load (0.2ms)  SELECT \"refinery_page_translations\".* FROM \"refinery_page_translations\" WHERE \"refinery_page_translations\".\"refinery_page_id\" = $1  [[\"refinery_page_id\", 17]]\r\n  Refinery::Page Load (0.6ms)  SELECT \"refinery_pages\".* FROM \"refinery_pages\" WHERE (\"refinery_pages\".\"lft\" <= 10) AND (\"refinery_pages\".\"rgt\" >= 11)  ORDER BY \"refinery_pages\".\"lft\"\r\n  Refinery::Page::Translation Load (0.5ms)  SELECT \"refinery_page_translations\".* FROM \"refinery_page_translations\" WHERE \"refinery_page_translations\".\"refinery_page_id\" IN (14, 17)\r\n  CACHE (0.0ms)  SELECT \"refinery_pages\".* FROM \"refinery_pages\" WHERE (\"refinery_pages\".\"lft\" <= 10) AND (\"refinery_pages\".\"rgt\" >= 11)  ORDER BY \"refinery_pages\".\"lft\"\r\n  CACHE (0.0ms)  SELECT \"refinery_page_translations\".* FROM \"refinery_page_translations\" WHERE \"refinery_page_translations\".\"refinery_page_id\" IN (14, 17)\r\n  CACHE (0.0ms)  SELECT \"refinery_pages\".* FROM \"refinery_pages\" WHERE (\"refinery_pages\".\"lft\" <= 10) AND (\"refinery_pages\".\"rgt\" >= 11)  ORDER BY \"refinery_pages\".\"lft\"\r\n  CACHE (0.0ms)  SELECT \"refinery_page_translations\".* FROM \"refinery_page_translations\" WHERE \"refinery_page_translations\".\"refinery_page_id\" IN (14, 17)\r\n  CACHE (0.0ms)  SELECT \"refinery_pages\".* FROM \"refinery_pages\" WHERE (\"refinery_pages\".\"lft\" <= 10) AND (\"refinery_pages\".\"rgt\" >= 11)  ORDER BY \"refinery_pages\".\"lft\"\r\n  CACHE (0.0ms)  SELECT \"refinery_page_translations\".* FROM \"refinery_page_translations\" WHERE \"refinery_page_translations\".\"refinery_page_id\" IN (14, 17)\r\n  CACHE (0.0ms)  SELECT \"refinery_pages\".* FROM \"refinery_pages\" WHERE (\"refinery_pages\".\"lft\" <= 10) AND (\"refinery_pages\".\"rgt\" >= 11)  ORDER BY \"refinery_pages\".\"lft\"\r\n  CACHE (0.0ms)  SELECT \"refinery_page_translations\".* FROM \"refinery_page_translations\" WHERE \"refinery_page_translations\".\"refinery_page_id\" IN (14, 17)\r\n  CACHE (0.0ms)  SELECT \"refinery_pages\".* FROM \"refinery_pages\" WHERE (\"refinery_pages\".\"lft\" <= 10) AND (\"refinery_pages\".\"rgt\" >= 11)  ORDER BY \"refinery_pages\".\"lft\"\r\n  CACHE (0.0ms)  SELECT \"refinery_page_translations\".* FROM \"refinery_page_translations\" WHERE \"refinery_page_translations\".\"refinery_page_id\" IN (14, 17)\r\n  Rendered .gems/bundler/gems/refinerycms-4e89461f799e/pages/app/views/refinery/admin/pages/_page.html.erb (0.0ms)\r\n  Refinery::Page Load (0.6ms)  SELECT \"refinery_pages\".* FROM \"refinery_pages\" WHERE \"refinery_pages\".\"parent_id\" = $1  ORDER BY \"lft\"  [[\"parent_id\", 18]]\r\n  Refinery::Page::Translation Load (0.3ms)  SELECT \"refinery_page_translations\".* FROM \"refinery_page_translations\" WHERE \"refinery_page_translations\".\"refinery_page_id\" = $1  [[\"refinery_page_id\", 18]]\r\n  Refinery::Page Load (1.2ms)  SELECT \"refinery_pages\".* FROM \"refinery_pages\" WHERE (\"refinery_pages\".\"lft\" <= 12) AND (\"refinery_pages\".\"rgt\" >= 13)  ORDER BY \"refinery_pages\".\"lft\"\r\n  Refinery::Page::Translation Load (0.4ms)  SELECT \"refinery_page_translations\".* FROM \"refinery_page_translations\" WHERE \"refinery_page_translations\".\"refinery_page_id\" IN (14, 18)\r\n  CACHE (0.0ms)  SELECT \"refinery_pages\".* FROM \"refinery_pages\" WHERE (\"refinery_pages\".\"lft\" <= 12) AND (\"refinery_pages\".\"rgt\" >= 13)  ORDER BY \"refinery_pages\".\"lft\"\r\n  CACHE (0.1ms)  SELECT \"refinery_page_translations\".* FROM \"refinery_page_translations\" WHERE \"refinery_page_translations\".\"refinery_page_id\" IN (14, 18)\r\n  CACHE (0.0ms)  SELECT \"refinery_pages\".* FROM \"refinery_pages\" WHERE (\"refinery_pages\".\"lft\" <= 12) AND (\"refinery_pages\".\"rgt\" >= 13)  ORDER BY \"refinery_pages\".\"lft\"\r\n  CACHE (0.0ms)  SELECT \"refinery_page_translations\".* FROM \"refinery_page_translations\" WHERE \"refinery_page_translations\".\"refinery_page_id\" IN (14, 18)\r\n  CACHE (0.0ms)  SELECT \"refinery_pages\".* FROM \"refinery_pages\" WHERE (\"refinery_pages\".\"lft\" <= 12) AND (\"refinery_pages\".\"rgt\" >= 13)  ORDER BY \"refinery_pages\".\"lft\"\r\n  CACHE (0.0ms)  SELECT \"refinery_page_translations\".* FROM \"refinery_page_translations\" WHERE \"refinery_page_translations\".\"refinery_page_id\" IN (14, 18)\r\n  CACHE (0.0ms)  SELECT \"refinery_pages\".* FROM \"refinery_pages\" WHERE (\"refinery_pages\".\"lft\" <= 12) AND (\"refinery_pages\".\"rgt\" >= 13)  ORDER BY \"refinery_pages\".\"lft\"\r\n  CACHE (0.0ms)  SELECT \"refinery_page_translations\".* FROM \"refinery_page_translations\" WHERE \"refinery_page_translations\".\"refinery_page_id\" IN (14, 18)\r\n  CACHE (0.0ms)  SELECT \"refinery_pages\".* FROM \"refinery_pages\" WHERE (\"refinery_pages\".\"lft\" <= 12) AND (\"refinery_pages\".\"rgt\" >= 13)  ORDER BY \"refinery_pages\".\"lft\"\r\n  CACHE (0.0ms)  SELECT \"refinery_page_translations\".* FROM \"refinery_page_translations\" WHERE \"refinery_page_translations\".\"refinery_page_id\" IN (14, 18)\r\n  Rendered .gems/bundler/gems/refinerycms-4e89461f799e/pages/app/views/refinery/admin/pages/_page.html.erb (0.0ms)\r\n  Rendered .gems/bundler/gems/refinerycms-4e89461f799e/pages/app/views/refinery/admin/pages/_page.html.erb (2473.8ms)\r\n  Rendered .gems/bundler/gems/refinerycms-4e89461f799e/pages/app/views/refinery/admin/pages/_page.html.erb (0.0ms)\r\n  Refinery::Page Load (0.2ms)  SELECT \"refinery_pages\".* FROM \"refinery_pages\" WHERE \"refinery_pages\".\"parent_id\" = $1  ORDER BY \"lft\"  [[\"parent_id\", 24]]\r\n  Refinery::Page::Translation Load (0.2ms)  SELECT \"refinery_page_translations\".* FROM \"refinery_page_translations\" WHERE \"refinery_page_translations\".\"refinery_page_id\" = $1  [[\"refinery_page_id\", 24]]\r\n  Refinery::Page Load (0.5ms)  SELECT \"refinery_pages\".* FROM \"refinery_pages\" WHERE (\"refinery_pages\".\"lft\" <= 18) AND (\"refinery_pages\".\"rgt\" >= 19)  ORDER BY \"refinery_pages\".\"lft\"\r\n  Refinery::Page::Translation Load (0.4ms)  SELECT \"refinery_page_translations\".* FROM \"refinery_page_translations\" WHERE \"refinery_page_translations\".\"refinery_page_id\" IN (20, 24)\r\n  CACHE (0.0ms)  SELECT \"refinery_pages\".* FROM \"refinery_pages\" WHERE (\"refinery_pages\".\"lft\" <= 18) AND (\"refinery_pages\".\"rgt\" >= 19)  ORDER BY \"refinery_pages\".\"lft\"\r\n  CACHE (0.0ms)  SELECT \"refinery_page_translations\".* FROM \"refinery_page_translations\" WHERE \"refinery_page_translations\".\"refinery_page_id\" IN (20, 24)\r\n  CACHE (0.1ms)  SELECT \"refinery_pages\".* FROM \"refinery_pages\" WHERE (\"refinery_pages\".\"lft\" <= 18) AND (\"refinery_pages\".\"rgt\" >= 19)  ORDER BY \"refinery_pages\".\"lft\"\r\n  CACHE (0.0ms)  SELECT \"refinery_page_translations\".* FROM \"refinery_page_translations\" WHERE \"refinery_page_translations\".\"refinery_page_id\" IN (20, 24)\r\n  CACHE (0.0ms)  SELECT \"refinery_pages\".* FROM \"refinery_pages\" WHERE (\"refinery_pages\".\"lft\" <= 18) AND (\"refinery_pages\".\"rgt\" >= 19)  ORDER BY \"refinery_pages\".\"lft\"\r\n  CACHE (0.1ms)  SELECT \"refinery_page_translations\".* FROM \"refinery_page_translations\" WHERE \"refinery_page_translations\".\"refinery_page_id\" IN (20, 24)\r\n  CACHE (0.0ms)  SELECT \"refinery_pages\".* FROM \"refinery_pages\" WHERE (\"refinery_pages\".\"lft\" <= 18) AND (\"refinery_pages\".\"rgt\" >= 19)  ORDER BY \"refinery_pages\".\"lft\"\r\n  CACHE (0.0ms)  SELECT \"refinery_page_translations\".* FROM \"refinery_page_translations\" WHERE \"refinery_page_translations\".\"refinery_page_id\" IN (20, 24)\r\n  CACHE (0.0ms)  SELECT \"refinery_pages\".* FROM \"refinery_pages\" WHERE (\"refinery_pages\".\"lft\" <= 18) AND (\"refinery_pages\".\"rgt\" >= 19)  ORDER BY \"refinery_pages\".\"lft\"\r\n  CACHE (0.0ms)  SELECT \"refinery_page_translations\".* FROM \"refinery_page_translations\" WHERE \"refinery_page_translations\".\"refinery_page_id\" IN (20, 24)\r\n  Rendered .gems/bundler/gems/refinerycms-4e89461f799e/pages/app/views/refinery/admin/pages/_page.html.erb (0.0ms)\r\n  Refinery::Page Load (0.3ms)  SELECT \"refinery_pages\".* FROM \"refinery_pages\" WHERE \"refinery_pages\".\"parent_id\" = $1  ORDER BY \"lft\"  [[\"parent_id\", 21]]\r\n  Refinery::Page::Translation Load (0.3ms)  SELECT \"refinery_page_translations\".* FROM \"refinery_page_translations\" WHERE \"refinery_page_translations\".\"refinery_page_id\" = $1  [[\"refinery_page_id\", 21]]\r\n  Refinery::Page Load (0.7ms)  SELECT \"refinery_pages\".* FROM \"refinery_pages\" WHERE (\"refinery_pages\".\"lft\" <= 20) AND (\"refinery_pages\".\"rgt\" >= 21)  ORDER BY \"refinery_pages\".\"lft\"\r\n  Refinery::Page::Translation Load (0.7ms)  SELECT \"refinery_page_translations\".* FROM \"refinery_page_translations\" WHERE \"refinery_page_translations\".\"refinery_page_id\" IN (20, 21)\r\n  CACHE (0.0ms)  SELECT \"refinery_pages\".* FROM \"refinery_pages\" WHERE (\"refinery_pages\".\"lft\" <= 20) AND (\"refinery_pages\".\"rgt\" >= 21)  ORDER BY \"refinery_pages\".\"lft\"\r\n  CACHE (0.0ms)  SELECT \"refinery_page_translations\".* FROM \"refinery_page_translations\" WHERE \"refinery_page_translations\".\"refinery_page_id\" IN (20, 21)\r\n  CACHE (0.0ms)  SELECT \"refinery_pages\".* FROM \"refinery_pages\" WHERE (\"refinery_pages\".\"lft\" <= 20) AND (\"refinery_pages\".\"rgt\" >= 21)  ORDER BY \"refinery_pages\".\"lft\"\r\n  CACHE (0.0ms)  SELECT \"refinery_page_translations\".* FROM \"refinery_page_translations\" WHERE \"refinery_page_translations\".\"refinery_page_id\" IN (20, 21)\r\n  CACHE (0.1ms)  SELECT \"refinery_pages\".* FROM \"refinery_pages\" WHERE (\"refinery_pages\".\"lft\" <= 20) AND (\"refinery_pages\".\"rgt\" >= 21)  ORDER BY \"refinery_pages\".\"lft\"\r\n  CACHE (0.0ms)  SELECT \"refinery_page_translations\".* FROM \"refinery_page_translations\" WHERE \"refinery_page_translations\".\"refinery_page_id\" IN (20, 21)\r\n  CACHE (0.0ms)  SELECT \"refinery_pages\".* FROM \"refinery_pages\" WHERE (\"refinery_pages\".\"lft\" <= 20) AND (\"refinery_pages\".\"rgt\" >= 21)  ORDER BY \"refinery_pages\".\"lft\"\r\n  CACHE (0.0ms)  SELECT \"refinery_page_translations\".* FROM \"refinery_page_translations\" WHERE \"refinery_page_translations\".\"refinery_page_id\" IN (20, 21)\r\n  CACHE (0.0ms)  SELECT \"refinery_pages\".* FROM \"refinery_pages\" WHERE (\"refinery_pages\".\"lft\" <= 20) AND (\"refinery_pages\".\"rgt\" >= 21)  ORDER BY \"refinery_pages\".\"lft\"\r\n  CACHE (0.0ms)  SELECT \"refinery_page_translations\".* FROM \"refinery_page_translations\" WHERE \"refinery_page_translations\".\"refinery_page_id\" IN (20, 21)\r\n  Rendered .gems/bundler/gems/refinerycms-4e89461f799e/pages/app/views/refinery/admin/pages/_page.html.erb (0.0ms)\r\n  Refinery::Page Load (0.3ms)  SELECT \"refinery_pages\".* FROM \"refinery_pages\" WHERE \"refinery_pages\".\"parent_id\" = $1  ORDER BY \"lft\"  [[\"parent_id\", 22]]\r\n  Refinery::Page::Translation Load (0.2ms)  SELECT \"refinery_page_translations\".* FROM \"refinery_page_translations\" WHERE \"refinery_page_translations\".\"refinery_page_id\" = $1  [[\"refinery_page_id\", 22]]\r\n  Refinery::Page Load (0.9ms)  SELECT \"refinery_pages\".* FROM \"refinery_pages\" WHERE (\"refinery_pages\".\"lft\" <= 22) AND (\"refinery_pages\".\"rgt\" >= 23)  ORDER BY \"refinery_pages\".\"lft\"\r\n  Refinery::Page::Translation Load (0.4ms)  SELECT \"refinery_page_translations\".* FROM \"refinery_page_translations\" WHERE \"refinery_page_translations\".\"refinery_page_id\" IN (20, 22)\r\n  CACHE (0.0ms)  SELECT \"refinery_pages\".* FROM \"refinery_pages\" WHERE (\"refinery_pages\".\"lft\" <= 22) AND (\"refinery_pages\".\"rgt\" >= 23)  ORDER BY \"refinery_pages\".\"lft\"\r\n  CACHE (0.0ms)  SELECT \"refinery_page_translations\".* FROM \"refinery_page_translations\" WHERE \"refinery_page_translations\".\"refinery_page_id\" IN (20, 22)\r\n  CACHE (0.0ms)  SELECT \"refinery_pages\".* FROM \"refinery_pages\" WHERE (\"refinery_pages\".\"lft\" <= 22) AND (\"refinery_pages\".\"rgt\" >= 23)  ORDER BY \"refinery_pages\".\"lft\"\r\n  CACHE (0.0ms)  SELECT \"refinery_page_translations\".* FROM \"refinery_page_translations\" WHERE \"refinery_page_translations\".\"refinery_page_id\" IN (20, 22)\r\n  CACHE (0.1ms)  SELECT \"refinery_pages\".* FROM \"refinery_pages\" WHERE (\"refinery_pages\".\"lft\" <= 22) AND (\"refinery_pages\".\"rgt\" >= 23)  ORDER BY \"refinery_pages\".\"lft\"\r\n  CACHE (0.0ms)  SELECT \"refinery_page_translations\".* FROM \"refinery_page_translations\" WHERE \"refinery_page_translations\".\"refinery_page_id\" IN (20, 22)\r\n  CACHE (0.0ms)  SELECT \"refinery_pages\".* FROM \"refinery_pages\" WHERE (\"refinery_pages\".\"lft\" <= 22) AND (\"refinery_pages\".\"rgt\" >= 23)  ORDER BY \"refinery_pages\".\"lft\"\r\n  CACHE (0.0ms)  SELECT \"refinery_page_translations\".* FROM \"refinery_page_translations\" WHERE \"refinery_page_translations\".\"refinery_page_id\" IN (20, 22)\r\n  CACHE (0.0ms)  SELECT \"refinery_pages\".* FROM \"refinery_pages\" WHERE (\"refinery_pages\".\"lft\" <= 22) AND (\"refinery_pages\".\"rgt\" >= 23)  ORDER BY \"refinery_pages\".\"lft\"\r\n  CACHE (0.0ms)  SELECT \"refinery_page_translations\".* FROM \"refinery_page_translations\" WHERE \"refinery_page_translations\".\"refinery_page_id\" IN (20, 22)\r\n  Rendered .gems/bundler/gems/refinerycms-4e89461f799e/pages/app/views/refinery/admin/pages/_page.html.erb (0.0ms)\r\n  Refinery::Page Load (0.3ms)  SELECT \"refinery_pages\".* FROM \"refinery_pages\" WHERE \"refinery_pages\".\"parent_id\" = $1  ORDER BY \"lft\"  [[\"parent_id\", 23]]\r\n  Refinery::Page::Translation Load (0.2ms)  SELECT \"refinery_page_translations\".* FROM \"refinery_page_translations\" WHERE \"refinery_page_translations\".\"refinery_page_id\" = $1  [[\"refinery_page_id\", 23]]\r\n  Refinery::Page Load (0.6ms)  SELECT \"refinery_pages\".* FROM \"refinery_pages\" WHERE (\"refinery_pages\".\"lft\" <= 24) AND (\"refinery_pages\".\"rgt\" >= 25)  ORDER BY \"refinery_pages\".\"lft\"\r\n  Refinery::Page::Translation Load (0.4ms)  SELECT \"refinery_page_translations\".* FROM \"refinery_page_translations\" WHERE \"refinery_page_translations\".\"refinery_page_id\" IN (20, 23)\r\n  CACHE (0.0ms)  SELECT \"refinery_pages\".* FROM \"refinery_pages\" WHERE (\"refinery_pages\".\"lft\" <= 24) AND (\"refinery_pages\".\"rgt\" >= 25)  ORDER BY \"refinery_pages\".\"lft\"\r\n  CACHE (0.0ms)  SELECT \"refinery_page_translations\".* FROM \"refinery_page_translations\" WHERE \"refinery_page_translations\".\"refinery_page_id\" IN (20, 23)\r\n  CACHE (0.0ms)  SELECT \"refinery_pages\".* FROM \"refinery_pages\" WHERE (\"refinery_pages\".\"lft\" <= 24) AND (\"refinery_pages\".\"rgt\" >= 25)  ORDER BY \"refinery_pages\".\"lft\"\r\n  CACHE (0.0ms)  SELECT \"refinery_page_translations\".* FROM \"refinery_page_translations\" WHERE \"refinery_page_translations\".\"refinery_page_id\" IN (20, 23)\r\n  CACHE (0.0ms)  SELECT \"refinery_pages\".* FROM \"refinery_pages\" WHERE (\"refinery_pages\".\"lft\" <= 24) AND (\"refinery_pages\".\"rgt\" >= 25)  ORDER BY \"refinery_pages\".\"lft\"\r\n  CACHE (0.0ms)  SELECT \"refinery_page_translations\".* FROM \"refinery_page_translations\" WHERE \"refinery_page_translations\".\"refinery_page_id\" IN (20, 23)\r\n  CACHE (0.0ms)  SELECT \"refinery_pages\".* FROM \"refinery_pages\" WHERE (\"refinery_pages\".\"lft\" <= 24) AND (\"refinery_pages\".\"rgt\" >= 25)  ORDER BY \"refinery_pages\".\"lft\"\r\n  CACHE (0.0ms)  SELECT \"refinery_page_translations\".* FROM \"refinery_page_translations\" WHERE \"refinery_page_translations\".\"refinery_page_id\" IN (20, 23)\r\n  CACHE (0.0ms)  SELECT \"refinery_pages\".* FROM \"refinery_pages\" WHERE (\"refinery_pages\".\"lft\" <= 24) AND (\"refinery_pages\".\"rgt\" >= 25)  ORDER BY \"refinery_pages\".\"lft\"\r\n  CACHE (0.0ms)  SELECT \"refinery_page_translations\".* FROM \"refinery_page_translations\" WHERE \"refinery_page_translations\".\"refinery_page_id\" IN (20, 23)\r\n  Rendered .gems/bundler/gems/refinerycms-4e89461f799e/pages/app/views/refinery/admin/pages/_page.html.erb (0.0ms)\r\n  Rendered .gems/bundler/gems/refinerycms-4e89461f799e/pages/app/views/refinery/admin/pages/_page.html.erb (2120.3ms)\r\n  Rendered .gems/bundler/gems/refinerycms-4e89461f799e/pages/app/views/refinery/admin/pages/_page.html.erb (0.0ms)\r\n  Rendered .gems/bundler/gems/refinerycms-4e89461f799e/pages/app/views/refinery/admin/pages/_page.html.erb (0.1ms)\r\n  Refinery::Page Load (0.3ms)  SELECT \"refinery_pages\".* FROM \"refinery_pages\" WHERE \"refinery_pages\".\"parent_id\" = $1  ORDER BY \"lft\"  [[\"parent_id\", 25]]\r\n  Refinery::Page::Translation Load (0.3ms)  SELECT \"refinery_page_translations\".* FROM \"refinery_page_translations\" WHERE \"refinery_page_translations\".\"refinery_page_id\" = $1  [[\"refinery_page_id\", 25]]\r\n  Refinery::Page Load (0.6ms)  SELECT \"refinery_pages\".* FROM \"refinery_pages\" WHERE (\"refinery_pages\".\"lft\" <= 32) AND (\"refinery_pages\".\"rgt\" >= 33)  ORDER BY \"refinery_pages\".\"lft\"\r\n  Refinery::Page::Translation Load (0.4ms)  SELECT \"refinery_page_translations\".* FROM \"refinery_page_translations\" WHERE \"refinery_page_translations\".\"refinery_page_id\" IN (11, 25)\r\n  CACHE (0.0ms)  SELECT \"refinery_pages\".* FROM \"refinery_pages\" WHERE (\"refinery_pages\".\"lft\" <= 32) AND (\"refinery_pages\".\"rgt\" >= 33)  ORDER BY \"refinery_pages\".\"lft\"\r\n  CACHE (0.0ms)  SELECT \"refinery_page_translations\".* FROM \"refinery_page_translations\" WHERE \"refinery_page_translations\".\"refinery_page_id\" IN (11, 25)\r\n  CACHE (0.0ms)  SELECT \"refinery_pages\".* FROM \"refinery_pages\" WHERE (\"refinery_pages\".\"lft\" <= 32) AND (\"refinery_pages\".\"rgt\" >= 33)  ORDER BY \"refinery_pages\".\"lft\"\r\n  CACHE (0.0ms)  SELECT \"refinery_page_translations\".* FROM \"refinery_page_translations\" WHERE \"refinery_page_translations\".\"refinery_page_id\" IN (11, 25)\r\n  CACHE (0.0ms)  SELECT \"refinery_pages\".* FROM \"refinery_pages\" WHERE (\"refinery_pages\".\"lft\" <= 32) AND (\"refinery_pages\".\"rgt\" >= 33)  ORDER BY \"refinery_pages\".\"lft\"\r\n  CACHE (0.0ms)  SELECT \"refinery_page_translations\".* FROM \"refinery_page_translations\" WHERE \"refinery_page_translations\".\"refinery_page_id\" IN (11, 25)\r\n  CACHE (0.0ms)  SELECT \"refinery_pages\".* FROM \"refinery_pages\" WHERE (\"refinery_pages\".\"lft\" <= 32) AND (\"refinery_pages\".\"rgt\" >= 33)  ORDER BY \"refinery_pages\".\"lft\"\r\n  CACHE (0.0ms)  SELECT \"refinery_page_translations\".* FROM \"refinery_page_translations\" WHERE \"refinery_page_translations\".\"refinery_page_id\" IN (11, 25)\r\n  CACHE (0.0ms)  SELECT \"refinery_pages\".* FROM \"refinery_pages\" WHERE (\"refinery_pages\".\"lft\" <= 32) AND (\"refinery_pages\".\"rgt\" >= 33)  ORDER BY \"refinery_pages\".\"lft\"\r\n  CACHE (0.0ms)  SELECT \"refinery_page_translations\".* FROM \"refinery_page_translations\" WHERE \"refinery_page_translations\".\"refinery_page_id\" IN (11, 25)\r\n  Rendered .gems/bundler/gems/refinerycms-4e89461f799e/pages/app/views/refinery/admin/pages/_page.html.erb (0.0ms)\r\n  Refinery::Page Load (0.3ms)  SELECT \"refinery_pages\".* FROM \"refinery_pages\" WHERE \"refinery_pages\".\"parent_id\" = $1  ORDER BY \"lft\"  [[\"parent_id\", 26]]\r\n  Refinery::Page::Translation Load (0.2ms)  SELECT \"refinery_page_translations\".* FROM \"refinery_page_translations\" WHERE \"refinery_page_translations\".\"refinery_page_id\" = $1  [[\"refinery_page_id\", 26]]\r\n  Refinery::Page Load (0.6ms)  SELECT \"refinery_pages\".* FROM \"refinery_pages\" WHERE (\"refinery_pages\".\"lft\" <= 34) AND (\"refinery_pages\".\"rgt\" >= 35)  ORDER BY \"refinery_pages\".\"lft\"\r\n  Refinery::Page::Translation Load (0.4ms)  SELECT \"refinery_page_translations\".* FROM \"refinery_page_translations\" WHERE \"refinery_page_translations\".\"refinery_page_id\" IN (11, 26)\r\n  CACHE (0.0ms)  SELECT \"refinery_pages\".* FROM \"refinery_pages\" WHERE (\"refinery_pages\".\"lft\" <= 34) AND (\"refinery_pages\".\"rgt\" >= 35)  ORDER BY \"refinery_pages\".\"lft\"\r\n  CACHE (0.0ms)  SELECT \"refinery_page_translations\".* FROM \"refinery_page_translations\" WHERE \"refinery_page_translations\".\"refinery_page_id\" IN (11, 26)\r\n  CACHE (0.0ms)  SELECT \"refinery_pages\".* FROM \"refinery_pages\" WHERE (\"refinery_pages\".\"lft\" <= 34) AND (\"refinery_pages\".\"rgt\" >= 35)  ORDER BY \"refinery_pages\".\"lft\"\r\n  CACHE (0.0ms)  SELECT \"refinery_page_translations\".* FROM \"refinery_page_translations\" WHERE \"refinery_page_translations\".\"refinery_page_id\" IN (11, 26)\r\n  CACHE (0.0ms)  SELECT \"refinery_pages\".* FROM \"refinery_pages\" WHERE (\"refinery_pages\".\"lft\" <= 34) AND (\"refinery_pages\".\"rgt\" >= 35)  ORDER BY \"refinery_pages\".\"lft\"\r\n  CACHE (0.0ms)  SELECT \"refinery_page_translations\".* FROM \"refinery_page_translations\" WHERE \"refinery_page_translations\".\"refinery_page_id\" IN (11, 26)\r\n  CACHE (0.0ms)  SELECT \"refinery_pages\".* FROM \"refinery_pages\" WHERE (\"refinery_pages\".\"lft\" <= 34) AND (\"refinery_pages\".\"rgt\" >= 35)  ORDER BY \"refinery_pages\".\"lft\"\r\n  CACHE (0.0ms)  SELECT \"refinery_page_translations\".* FROM \"refinery_page_translations\" WHERE \"refinery_page_translations\".\"refinery_page_id\" IN (11, 26)\r\n  CACHE (0.1ms)  SELECT \"refinery_pages\".* FROM \"refinery_pages\" WHERE (\"refinery_pages\".\"lft\" <= 34) AND (\"refinery_pages\".\"rgt\" >= 35)  ORDER BY \"refinery_pages\".\"lft\"\r\n  CACHE (0.0ms)  SELECT \"refinery_page_translations\".* FROM \"refinery_page_translations\" WHERE \"refinery_page_translations\".\"refinery_page_id\" IN (11, 26)\r\n  Rendered .gems/bundler/gems/refinerycms-4e89461f799e/pages/app/views/refinery/admin/pages/_page.html.erb (0.0ms)\r\n  Refinery::Page Load (0.3ms)  SELECT \"refinery_pages\".* FROM \"refinery_pages\" WHERE \"refinery_pages\".\"parent_id\" = $1  ORDER BY \"lft\"  [[\"parent_id\", 27]]\r\n  Refinery::Page::Translation Load (0.2ms)  SELECT \"refinery_page_translations\".* FROM \"refinery_page_translations\" WHERE \"refinery_page_translations\".\"refinery_page_id\" = $1  [[\"refinery_page_id\", 27]]\r\n  Refinery::Page Load (0.5ms)  SELECT \"refinery_pages\".* FROM \"refinery_pages\" WHERE (\"refinery_pages\".\"lft\" <= 36) AND (\"refinery_pages\".\"rgt\" >= 37)  ORDER BY \"refinery_pages\".\"lft\"\r\n  Refinery::Page::Translation Load (0.7ms)  SELECT \"refinery_page_translations\".* FROM \"refinery_page_translations\" WHERE \"refinery_page_translations\".\"refinery_page_id\" IN (11, 27)\r\n  CACHE (0.0ms)  SELECT \"refinery_pages\".* FROM \"refinery_pages\" WHERE (\"refinery_pages\".\"lft\" <= 36) AND (\"refinery_pages\".\"rgt\" >= 37)  ORDER BY \"refinery_pages\".\"lft\"\r\n  CACHE (0.0ms)  SELECT \"refinery_page_translations\".* FROM \"refinery_page_translations\" WHERE \"refinery_page_translations\".\"refinery_page_id\" IN (11, 27)\r\n  CACHE (0.0ms)  SELECT \"refinery_pages\".* FROM \"refinery_pages\" WHERE (\"refinery_pages\".\"lft\" <= 36) AND (\"refinery_pages\".\"rgt\" >= 37)  ORDER BY \"refinery_pages\".\"lft\"\r\n  CACHE (0.0ms)  SELECT \"refinery_page_translations\".* FROM \"refinery_page_translations\" WHERE \"refinery_page_translations\".\"refinery_page_id\" IN (11, 27)\r\n  CACHE (0.0ms)  SELECT \"refinery_pages\".* FROM \"refinery_pages\" WHERE (\"refinery_pages\".\"lft\" <= 36) AND (\"refinery_pages\".\"rgt\" >= 37)  ORDER BY \"refinery_pages\".\"lft\"\r\n  CACHE (0.0ms)  SELECT \"refinery_page_translations\".* FROM \"refinery_page_translations\" WHERE \"refinery_page_translations\".\"refinery_page_id\" IN (11, 27)\r\n  CACHE (0.1ms)  SELECT \"refinery_pages\".* FROM \"refinery_pages\" WHERE (\"refinery_pages\".\"lft\" <= 36) AND (\"refinery_pages\".\"rgt\" >= 37)  ORDER BY \"refinery_pages\".\"lft\"\r\n  CACHE (0.0ms)  SELECT \"refinery_page_translations\".* FROM \"refinery_page_translations\" WHERE \"refinery_page_translations\".\"refinery_page_id\" IN (11, 27)\r\n  CACHE (0.0ms)  SELECT \"refinery_pages\".* FROM \"refinery_pages\" WHERE (\"refinery_pages\".\"lft\" <= 36) AND (\"refinery_pages\".\"rgt\" >= 37)  ORDER BY \"refinery_pages\".\"lft\"\r\n  CACHE (0.0ms)  SELECT \"refinery_page_translations\".* FROM \"refinery_page_translations\" WHERE \"refinery_page_translations\".\"refinery_page_id\" IN (11, 27)\r\n  Rendered .gems/bundler/gems/refinerycms-4e89461f799e/pages/app/views/refinery/admin/pages/_page.html.erb (0.0ms)\r\n  Refinery::Page Load (0.3ms)  SELECT \"refinery_pages\".* FROM \"refinery_pages\" WHERE \"refinery_pages\".\"parent_id\" = $1  ORDER BY \"lft\"  [[\"parent_id\", 28]]\r\n  Refinery::Page::Translation Load (0.2ms)  SELECT \"refinery_page_translations\".* FROM \"refinery_page_translations\" WHERE \"refinery_page_translations\".\"refinery_page_id\" = $1  [[\"refinery_page_id\", 28]]\r\n  Refinery::Page Load (0.6ms)  SELECT \"refinery_pages\".* FROM \"refinery_pages\" WHERE (\"refinery_pages\".\"lft\" <= 38) AND (\"refinery_pages\".\"rgt\" >= 39)  ORDER BY \"refinery_pages\".\"lft\"\r\n  Refinery::Page::Translation Load (0.4ms)  SELECT \"refinery_page_translations\".* FROM \"refinery_page_translations\" WHERE \"refinery_page_translations\".\"refinery_page_id\" IN (11, 28)\r\n  CACHE (0.0ms)  SELECT \"refinery_pages\".* FROM \"refinery_pages\" WHERE (\"refinery_pages\".\"lft\" <= 38) AND (\"refinery_pages\".\"rgt\" >= 39)  ORDER BY \"refinery_pages\".\"lft\"\r\n  CACHE (0.0ms)  SELECT \"refinery_page_translations\".* FROM \"refinery_page_translations\" WHERE \"refinery_page_translations\".\"refinery_page_id\" IN (11, 28)\r\n  CACHE (0.0ms)  SELECT \"refinery_pages\".* FROM \"refinery_pages\" WHERE (\"refinery_pages\".\"lft\" <= 38) AND (\"refinery_pages\".\"rgt\" >= 39)  ORDER BY \"refinery_pages\".\"lft\"\r\n  CACHE (0.0ms)  SELECT \"refinery_page_translations\".* FROM \"refinery_page_translations\" WHERE \"refinery_page_translations\".\"refinery_page_id\" IN (11, 28)\r\n  CACHE (0.0ms)  SELECT \"refinery_pages\".* FROM \"refinery_pages\" WHERE (\"refinery_pages\".\"lft\" <= 38) AND (\"refinery_pages\".\"rgt\" >= 39)  ORDER BY \"refinery_pages\".\"lft\"\r\n  CACHE (0.0ms)  SELECT \"refinery_page_translations\".* FROM \"refinery_page_translations\" WHERE \"refinery_page_translations\".\"refinery_page_id\" IN (11, 28)\r\n  CACHE (0.0ms)  SELECT \"refinery_pages\".* FROM \"refinery_pages\" WHERE (\"refinery_pages\".\"lft\" <= 38) AND (\"refinery_pages\".\"rgt\" >= 39)  ORDER BY \"refinery_pages\".\"lft\"\r\n  CACHE (0.0ms)  SELECT \"refinery_page_translations\".* FROM \"refinery_page_translations\" WHERE \"refinery_page_translations\".\"refinery_page_id\" IN (11, 28)\r\n  CACHE (0.0ms)  SELECT \"refinery_pages\".* FROM \"refinery_pages\" WHERE (\"refinery_pages\".\"lft\" <= 38) AND (\"refinery_pages\".\"rgt\" >= 39)  ORDER BY \"refinery_pages\".\"lft\"\r\n  CACHE (0.1ms)  SELECT \"refinery_page_translations\".* FROM \"refinery_page_translations\" WHERE \"refinery_page_translations\".\"refinery_page_id\" IN (11, 28)\r\n  Rendered .gems/bundler/gems/refinerycms-4e89461f799e/pages/app/views/refinery/admin/pages/_page.html.erb (0.1ms)\r\n  Refinery::Page Load (0.3ms)  SELECT \"refinery_pages\".* FROM \"refinery_pages\" WHERE \"refinery_pages\".\"parent_id\" = $1  ORDER BY \"lft\"  [[\"parent_id\", 29]]\r\n  Refinery::Page::Translation Load (0.4ms)  SELECT \"refinery_page_translations\".* FROM \"refinery_page_translations\" WHERE \"refinery_page_translations\".\"refinery_page_id\" = $1  [[\"refinery_page_id\", 29]]\r\n  Refinery::Page Load (0.6ms)  SELECT \"refinery_pages\".* FROM \"refinery_pages\" WHERE (\"refinery_pages\".\"lft\" <= 40) AND (\"refinery_pages\".\"rgt\" >= 41)  ORDER BY \"refinery_pages\".\"lft\"\r\n  Refinery::Page::Translation Load (0.4ms)  SELECT \"refinery_page_translations\".* FROM \"refinery_page_translations\" WHERE \"refinery_page_translations\".\"refinery_page_id\" IN (11, 29)\r\n  CACHE (0.0ms)  SELECT \"refinery_pages\".* FROM \"refinery_pages\" WHERE (\"refinery_pages\".\"lft\" <= 40) AND (\"refinery_pages\".\"rgt\" >= 41)  ORDER BY \"refinery_pages\".\"lft\"\r\n  CACHE (0.0ms)  SELECT \"refinery_page_translations\".* FROM \"refinery_page_translations\" WHERE \"refinery_page_translations\".\"refinery_page_id\" IN (11, 29)\r\n  CACHE (0.0ms)  SELECT \"refinery_pages\".* FROM \"refinery_pages\" WHERE (\"refinery_pages\".\"lft\" <= 40) AND (\"refinery_pages\".\"rgt\" >= 41)  ORDER BY \"refinery_pages\".\"lft\"\r\n  CACHE (0.0ms)  SELECT \"refinery_page_translations\".* FROM \"refinery_page_translations\" WHERE \"refinery_page_translations\".\"refinery_page_id\" IN (11, 29)\r\n  CACHE (0.0ms)  SELECT \"refinery_pages\".* FROM \"refinery_pages\" WHERE (\"refinery_pages\".\"lft\" <= 40) AND (\"refinery_pages\".\"rgt\" >= 41)  ORDER BY \"refinery_pages\".\"lft\"\r\n  CACHE (0.0ms)  SELECT \"refinery_page_translations\".* FROM \"refinery_page_translations\" WHERE \"refinery_page_translations\".\"refinery_page_id\" IN (11, 29)\r\n  CACHE (0.0ms)  SELECT \"refinery_pages\".* FROM \"refinery_pages\" WHERE (\"refinery_pages\".\"lft\" <= 40) AND (\"refinery_pages\".\"rgt\" >= 41)  ORDER BY \"refinery_pages\".\"lft\"\r\n  CACHE (0.0ms)  SELECT \"refinery_page_translations\".* FROM \"refinery_page_translations\" WHERE \"refinery_page_translations\".\"refinery_page_id\" IN (11, 29)\r\n  CACHE (0.0ms)  SELECT \"refinery_pages\".* FROM \"refinery_pages\" WHERE (\"refinery_pages\".\"lft\" <= 40) AND (\"refinery_pages\".\"rgt\" >= 41)  ORDER BY \"refinery_pages\".\"lft\"\r\n  CACHE (0.0ms)  SELECT \"refinery_page_translations\".* FROM \"refinery_page_translations\" WHERE \"refinery_page_translations\".\"refinery_page_id\" IN (11, 29)\r\n  Rendered .gems/bundler/gems/refinerycms-4e89461f799e/pages/app/views/refinery/admin/pages/_page.html.erb (0.0ms)\r\n  Rendered .gems/bundler/gems/refinerycms-4e89461f799e/pages/app/views/refinery/admin/pages/_page.html.erb (2992.4ms)\r\n  Rendered .gems/bundler/gems/refinerycms-4e89461f799e/pages/app/views/refinery/admin/pages/_page.html.erb (0.0ms)\r\n  Rendered .gems/bundler/gems/refinerycms-4e89461f799e/pages/app/views/refinery/admin/pages/_page.html.erb (0.0ms)\r\n  Refinery::Page Load (0.3ms)  SELECT \"refinery_pages\".* FROM \"refinery_pages\" WHERE \"refinery_pages\".\"parent_id\" = $1  ORDER BY \"lft\"  [[\"parent_id\", 6]]\r\n  Refinery::Page::Translation Load (0.2ms)  SELECT \"refinery_page_translations\".* FROM \"refinery_page_translations\" WHERE \"refinery_page_translations\".\"refinery_page_id\" = $1  [[\"refinery_page_id\", 6]]\r\n  Refinery::Page Load (0.7ms)  SELECT \"refinery_pages\".* FROM \"refinery_pages\" WHERE (\"refinery_pages\".\"lft\" <= 48) AND (\"refinery_pages\".\"rgt\" >= 49)  ORDER BY \"refinery_pages\".\"lft\"\r\n  Refinery::Page::Translation Load (0.4ms)  SELECT \"refinery_page_translations\".* FROM \"refinery_page_translations\" WHERE \"refinery_page_translations\".\"refinery_page_id\" IN (5, 6)\r\n  CACHE (0.1ms)  SELECT \"refinery_pages\".* FROM \"refinery_pages\" WHERE (\"refinery_pages\".\"lft\" <= 48) AND (\"refinery_pages\".\"rgt\" >= 49)  ORDER BY \"refinery_pages\".\"lft\"\r\n  CACHE (0.0ms)  SELECT \"refinery_page_translations\".* FROM \"refinery_page_translations\" WHERE \"refinery_page_translations\".\"refinery_page_id\" IN (5, 6)\r\n  CACHE (0.0ms)  SELECT \"refinery_pages\".* FROM \"refinery_pages\" WHERE (\"refinery_pages\".\"lft\" <= 48) AND (\"refinery_pages\".\"rgt\" >= 49)  ORDER BY \"refinery_pages\".\"lft\"\r\n  CACHE (0.0ms)  SELECT \"refinery_page_translations\".* FROM \"refinery_page_translations\" WHERE \"refinery_page_translations\".\"refinery_page_id\" IN (5, 6)\r\n  CACHE (0.0ms)  SELECT \"refinery_pages\".* FROM \"refinery_pages\" WHERE (\"refinery_pages\".\"lft\" <= 48) AND (\"refinery_pages\".\"rgt\" >= 49)  ORDER BY \"refinery_pages\".\"lft\"\r\n  CACHE (0.1ms)  SELECT \"refinery_page_translations\".* FROM \"refinery_page_translations\" WHERE \"refinery_page_translations\".\"refinery_page_id\" IN (5, 6)\r\n  Rendered .gems/bundler/gems/refinerycms-4e89461f799e/pages/app/views/refinery/admin/pages/_page.html.erb (0.0ms)\r\n  Refinery::Page Load (0.3ms)  SELECT \"refinery_pages\".* FROM \"refinery_pages\" WHERE \"refinery_pages\".\"parent_id\" = $1  ORDER BY \"lft\"  [[\"parent_id\", 7]]\r\n  Refinery::Page::Translation Load (0.2ms)  SELECT \"refinery_page_translations\".* FROM \"refinery_page_translations\" WHERE \"refinery_page_translations\".\"refinery_page_id\" = $1  [[\"refinery_page_id\", 7]]\r\n  Refinery::Page Load (0.6ms)  SELECT \"refinery_pages\".* FROM \"refinery_pages\" WHERE (\"refinery_pages\".\"lft\" <= 50) AND (\"refinery_pages\".\"rgt\" >= 51)  ORDER BY \"refinery_pages\".\"lft\"\r\n  Refinery::Page::Translation Load (0.4ms)  SELECT \"refinery_page_translations\".* FROM \"refinery_page_translations\" WHERE \"refinery_page_translations\".\"refinery_page_id\" IN (5, 7)\r\n  CACHE (0.0ms)  SELECT \"refinery_pages\".* FROM \"refinery_pages\" WHERE (\"refinery_pages\".\"lft\" <= 50) AND (\"refinery_pages\".\"rgt\" >= 51)  ORDER BY \"refinery_pages\".\"lft\"\r\n  CACHE (0.0ms)  SELECT \"refinery_page_translations\".* FROM \"refinery_page_translations\" WHERE \"refinery_page_translations\".\"refinery_page_id\" IN (5, 7)\r\n  CACHE (0.0ms)  SELECT \"refinery_pages\".* FROM \"refinery_pages\" WHERE (\"refinery_pages\".\"lft\" <= 50) AND (\"refinery_pages\".\"rgt\" >= 51)  ORDER BY \"refinery_pages\".\"lft\"\r\n  CACHE (0.0ms)  SELECT \"refinery_page_translations\".* FROM \"refinery_page_translations\" WHERE \"refinery_page_translations\".\"refinery_page_id\" IN (5, 7)\r\n  CACHE (0.0ms)  SELECT \"refinery_pages\".* FROM \"refinery_pages\" WHERE (\"refinery_pages\".\"lft\" <= 50) AND (\"refinery_pages\".\"rgt\" >= 51)  ORDER BY \"refinery_pages\".\"lft\"\r\n  CACHE (0.0ms)  SELECT \"refinery_page_translations\".* FROM \"refinery_page_translations\" WHERE \"refinery_page_translations\".\"refinery_page_id\" IN (5, 7)\r\n  CACHE (0.0ms)  SELECT \"refinery_pages\".* FROM \"refinery_pages\" WHERE (\"refinery_pages\".\"lft\" <= 50) AND (\"refinery_pages\".\"rgt\" >= 51)  ORDER BY \"refinery_pages\".\"lft\"\r\n  CACHE (0.0ms)  SELECT \"refinery_page_translations\".* FROM \"refinery_page_translations\" WHERE \"refinery_page_translations\".\"refinery_page_id\" IN (5, 7)\r\n  CACHE (0.0ms)  SELECT \"refinery_pages\".* FROM \"refinery_pages\" WHERE (\"refinery_pages\".\"lft\" <= 50) AND (\"refinery_pages\".\"rgt\" >= 51)  ORDER BY \"refinery_pages\".\"lft\"\r\n  CACHE (0.0ms)  SELECT \"refinery_page_translations\".* FROM \"refinery_page_translations\" WHERE \"refinery_page_translations\".\"refinery_page_id\" IN (5, 7)\r\n  Rendered .gems/bundler/gems/refinerycms-4e89461f799e/pages/app/views/refinery/admin/pages/_page.html.erb (0.0ms)\r\n  Refinery::Page Load (0.2ms)  SELECT \"refinery_pages\".* FROM \"refinery_pages\" WHERE \"refinery_pages\".\"parent_id\" = $1  ORDER BY \"lft\"  [[\"parent_id\", 9]]\r\n  Refinery::Page::Translation Load (0.2ms)  SELECT \"refinery_page_translations\".* FROM \"refinery_page_translations\" WHERE \"refinery_page_translations\".\"refinery_page_id\" = $1  [[\"refinery_page_id\", 9]]\r\n  Refinery::Page Load (0.5ms)  SELECT \"refinery_pages\".* FROM \"refinery_pages\" WHERE (\"refinery_pages\".\"lft\" <= 52) AND (\"refinery_pages\".\"rgt\" >= 53)  ORDER BY \"refinery_pages\".\"lft\"\r\n  Refinery::Page::Translation Load (0.4ms)  SELECT \"refinery_page_translations\".* FROM \"refinery_page_translations\" WHERE \"refinery_page_translations\".\"refinery_page_id\" IN (5, 9)\r\n  CACHE (0.0ms)  SELECT \"refinery_pages\".* FROM \"refinery_pages\" WHERE (\"refinery_pages\".\"lft\" <= 52) AND (\"refinery_pages\".\"rgt\" >= 53)  ORDER BY \"refinery_pages\".\"lft\"\r\n  CACHE (0.0ms)  SELECT \"refinery_page_translations\".* FROM \"refinery_page_translations\" WHERE \"refinery_page_translations\".\"refinery_page_id\" IN (5, 9)\r\n  CACHE (0.0ms)  SELECT \"refinery_pages\".* FROM \"refinery_pages\" WHERE (\"refinery_pages\".\"lft\" <= 52) AND (\"refinery_pages\".\"rgt\" >= 53)  ORDER BY \"refinery_pages\".\"lft\"\r\n  CACHE (0.0ms)  SELECT \"refinery_page_translations\".* FROM \"refinery_page_translations\" WHERE \"refinery_page_translations\".\"refinery_page_id\" IN (5, 9)\r\n  CACHE (0.1ms)  SELECT \"refinery_pages\".* FROM \"refinery_pages\" WHERE (\"refinery_pages\".\"lft\" <= 52) AND (\"refinery_pages\".\"rgt\" >= 53)  ORDER BY \"refinery_pages\".\"lft\"\r\n  CACHE (0.1ms)  SELECT \"refinery_page_translations\".* FROM \"refinery_page_translations\" WHERE \"refinery_page_translations\".\"refinery_page_id\" IN (5, 9)\r\n  Rendered .gems/bundler/gems/refinerycms-4e89461f799e/pages/app/views/refinery/admin/pages/_page.html.erb (0.0ms)\r\n  Rendered .gems/bundler/gems/refinerycms-4e89461f799e/pages/app/views/refinery/admin/pages/_page.html.erb (1648.5ms)\r\n  Rendered .gems/bundler/gems/refinerycms-4e89461f799e/pages/app/views/refinery/admin/pages/_page.html.erb (0.0ms)\r\n  Rendered .gems/bundler/gems/refinerycms-4e89461f799e/pages/app/views/refinery/admin/pages/_page.html.erb (0.0ms)\r\n  Rendered .gems/bundler/gems/refinerycms-4e89461f799e/pages/app/views/refinery/admin/pages/_page.html.erb (15428.0ms)\r\n  Rendered .gems/bundler/gems/refinerycms-4e89461f799e/core/app/views/refinery/admin/_sortable_list.html.erb (0.2ms)\r\n  Rendered .gems/bundler/gems/refinerycms-4e89461f799e/pages/app/views/refinery/admin/pages/_sortable_list.html.erb (16349.1ms)\r\n  Rendered .gems/bundler/gems/refinerycms-4e89461f799e/pages/app/views/refinery/admin/pages/_records.html.erb (17553.9ms)\r\n  Rendered .gems/gems/refinerycms-acts-as-indexed-2.0.1/app/views/refinery/acts_as_indexed/admin/_search.html.erb (0.6ms)\r\n  Rendered .gems/bundler/gems/refinerycms-4e89461f799e/core/app/views/refinery/admin/_search.html.erb (347.4ms)\r\n  CACHE (0.0ms)  SELECT COUNT(*) FROM \"refinery_pages\"\r\n  Rendered .gems/bundler/gems/refinerycms-4e89461f799e/pages/app/views/refinery/admin/pages/_actions.html.erb (777.9ms)\r\n  CACHE (0.0ms)  SELECT COUNT(*) FROM \"refinery_pages\"\r\n  Rendered .gems/bundler/gems/refinerycms-4e89461f799e/core/app/views/refinery/admin/_make_sortable.html.erb (101.3ms)\r\n  Rendered .gems/bundler/gems/refinerycms-4e89461f799e/pages/app/views/refinery/admin/pages/index.html.erb within layouts/refinery/admin (19698.2ms)\r\n  Rendered .gems/bundler/gems/refinerycms-4e89461f799e/core/app/views/refinery/_html_tag.html.erb (0.2ms)\r\n  Rendered .gems/bundler/gems/refinerycms-4e89461f799e/core/app/views/refinery/admin/_javascripts.html.erb (597.1ms)\r\n  Rendered .gems/bundler/gems/refinerycms-4e89461f799e/core/app/views/refinery/admin/_head.html.erb (1422.1ms)\r\n  Rendered .gems/bundler/gems/refinerycms-4e89461f799e/core/app/views/refinery/_site_bar.html.erb (5.6ms)\r\n  CACHE (0.0ms)  SELECT COUNT(*) FROM \"spree_roles\" INNER JOIN \"spree_roles_users\" ON \"spree_roles\".\"id\" = \"spree_roles_users\".\"role_id\" WHERE \"spree_roles_users\".\"user_id\" = $1 AND \"spree_roles\".\"name\" = $2  [[\"user_id\", 1], [\"name\", \"admin\"]]\r\n  Rendered .gems/bundler/gems/refinerycms-4e89461f799e/core/app/views/refinery/admin/_menu_item.html.erb (70.7ms)\r\n  Rendered .gems/bundler/gems/refinerycms-4e89461f799e/core/app/views/refinery/admin/_menu.html.erb (569.6ms)\r\n  Rendered .gems/bundler/gems/refinerycms-4e89461f799e/core/app/views/refinery/_no_script.html.erb (0.6ms)\r\n  Rendered .gems/bundler/gems/refinerycms-4e89461f799e/core/app/views/refinery/_message.html.erb (0.4ms)\r\nCompleted 200 OK in 25463ms (Views: 25414.8ms | ActiveRecord: 36.6ms)\r\n```"},"comment":{"url":"https://api.github.com/repos/refinery/refinerycms/issues/comments/107884109","html_url":"https://github.com/refinery/refinerycms/issues/2950#issuecomment-107884109","issue_url":"https://api.github.com/repos/refinery/refinerycms/issues/2950","id":107884109,"user":{"login":"parndt","id":10128,"avatar_url":"https://avatars.githubusercontent.com/u/10128?v=3","gravatar_id":"","url":"https://api.github.com/users/parndt","html_url":"https://github.com/parndt","followers_url":"https://api.github.com/users/parndt/followers","following_url":"https://api.github.com/users/parndt/following{/other_user}","gists_url":"https://api.github.com/users/parndt/gists{/gist_id}","starred_url":"https://api.github.com/users/parndt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/parndt/subscriptions","organizations_url":"https://api.github.com/users/parndt/orgs","repos_url":"https://api.github.com/users/parndt/repos","events_url":"https://api.github.com/users/parndt/events{/privacy}","received_events_url":"https://api.github.com/users/parndt/received_events","type":"User","site_admin":false},"created_at":"2015-06-02T09:25:39Z","updated_at":"2015-06-02T09:25:39Z","body":"Can you share your pages DB dump with me so that I can test it out and try to fix?"}}