|
code
app/controllers/topics/searches_controller.rb:4
|
23%
|
app/controllers/topics/searches_controller.rb:4
- Average Self
-
5.5ms
- Average calls
- 1x
- Total Self
- 5.5ms
- Total Children
- 13ms
- Total runtime
- 18ms
Topics::SearchesController#index
|
|
sql
app/views/layouts/application.html.erb:237
|
18%
|
app/views/layouts/application.html.erb:237
- Average Self
-
1.5ms
- Average calls
- 3x
- Total Self
- 4.4ms
- Total Children
- 0ms
- Total runtime
- 4.4ms
SELECT "essays".* FROM "essays" WHERE "essays"."status" = ? ORDER BY "essays"."hits_nb" DESC LIMIT ?
SELECT "topics".* FROM "topics" WHERE "topics"."id" IN (?)
SELECT "essay_contents_internals".* FROM "essay_contents_internals" WHERE "essay_contents_internals"."id" IN (?)
|
|
sql
app/views/layouts/application.html.erb:249
|
16%
|
app/views/layouts/application.html.erb:249
- Average Self
-
3.8ms
- Average calls
- 1x
- Total Self
- 3.8ms
- Total Children
- 0ms
- Total runtime
- 3.8ms
SELECT categories.*, sum(essays.hits_nb) as hits_sum FROM "categories" INNER JOIN "topics" ON "topics"."category_id" = "categories"."id" INNER JOIN "essays" ON "essays"."topic_id" = "topics"."id" GROUP BY "categories"."id" ORDER BY hits_sum DESC LIMIT ?
|
|
queue
queue
|
8%
|
queue
- Average Self
-
2ms
- Average calls
- 1x
- Total Self
- 2ms
- Total Children
- 0ms
- Total runtime
- 2ms
|
|
sql
app/views/topics/searches/index.html.erb:69
|
5%
|
app/views/topics/searches/index.html.erb:69
- Average Self
-
2.2ms
- Average calls
- 0.55x
- Total Self
- 1.2ms
- Total Children
- 0ms
- Total runtime
- 1.2ms
SELECT DISTINCT topics.*, pg_search_f013aa4b8daf3e2242eafa.rank AS pg_search_rank FROM "topics" INNER JOIN "essays" ON "essays"."topic_id" = "topics"."id" INNER JOIN (SELECT "topics"."id" AS pg_search_id, (ts_rank(("topics"."searchable"), (to_tsquery(?, ? || ? || ?)), ?)) AS rank FROM "topics" WHERE (("topics"."searchable") @@ (to_tsquery(?, ? || ? || ?)))) AS pg_search_f013aa4b8daf3e2242eafa ON "topics"."id" = pg_search_f013aa4b8daf3e2242eafa.pg_search_id WHERE "essays"."status" = ? ORDER BY pg_search_f013aa4b8daf3e2242eafa.rank DESC, "topics"."id" ASC LIMIT ? OFFSET ?
SELECT "essays".* FROM "essays" WHERE "essays"."id" IN (?)
SELECT "essay_contents_internals".* FROM "essay_contents_internals" WHERE "essay_contents_internals"."id" IN (?)
|
|
sql
app/views/topics/searches/index.html.erb:5
|
5%
|
app/views/topics/searches/index.html.erb:5
- Average Self
-
4.8ms
- Average calls
- 0.24x
- Total Self
- 1.1ms
- Total Children
- 0ms
- Total runtime
- 1.1ms
SELECT DISTINCT topics.*, pg_search_f013aa4b8daf3e2242eafa.rank AS pg_search_rank FROM "topics" INNER JOIN "essays" ON "essays"."topic_id" = "topics"."id" INNER JOIN (SELECT "topics"."id" AS pg_search_id, (ts_rank(("topics"."searchable"), (to_tsquery(?, ? || ? || ?)), ?)) AS rank FROM "topics" WHERE (("topics"."searchable") @@ (to_tsquery(?, ? || ? || ?)))) AS pg_search_f013aa4b8daf3e2242eafa ON "topics"."id" = pg_search_f013aa4b8daf3e2242eafa.pg_search_id WHERE "essays"."status" = ? LIMIT ? OFFSET ?
|
|
view
app/views/topics/searches/index.html.erb
|
4%
|
app/views/topics/searches/index.html.erb
- Average Self
-
1.1ms
- Average calls
- 1x
- Total Self
- 1.1ms
- Total Children
- 3.1ms
- Total runtime
- 4.2ms
|
|
rack
/app/vendor/bundle/ruby/4.0.0/gems/warden-1.2.9/lib/warden/manager.rb:30
|
3%
|
/app/vendor/bundle/ruby/4.0.0/gems/warden-1.2.9/lib/warden/manager.rb:30
- Average Self
-
0.71ms
- Average calls
- 1x
- Total Self
- 0.71ms
- Total Children
- 18ms
- Total runtime
- 19ms
Warden::Manager
|
|
sql
app/views/topics/searches/index.html.erb:77
|
2%
|
app/views/topics/searches/index.html.erb:77
- Average Self
-
3.2ms
- Average calls
- 0.16x
- Total Self
- 0.5ms
- Total Children
- 0ms
- Total runtime
- 0.5ms
SELECT COUNT(*) FROM (SELECT DISTINCT topics.*, pg_search_f013aa4b8daf3e2242eafa.rank AS pg_search_rank FROM "topics" INNER JOIN "essays" ON "essays"."topic_id" = "topics"."id" INNER JOIN (SELECT "topics"."id" AS pg_search_id, (ts_rank(("topics"."searchable"), (to_tsquery(?, ? || ? || ?)), ?)) AS rank FROM "topics" WHERE (("topics"."searchable") @@ (to_tsquery(?, ? || ? || ?)))) AS pg_search_f013aa4b8daf3e2242eafa ON "topics"."id" = pg_search_f013aa4b8daf3e2242eafa.pg_search_id WHERE "essays"."status" = ?) subquery_for_count
|
|
rack
/app/vendor/bundle/ruby/4.0.0/gems/railties-8.1.2/lib/rails/rack/logger.rb:20
|
1%
|
/app/vendor/bundle/ruby/4.0.0/gems/railties-8.1.2/lib/rails/rack/logger.rb:20
- Average Self
-
0.26ms
- Average calls
- 1x
- Total Self
- 0.26ms
- Total Children
- 20ms
- Total runtime
- 20ms
Rails::Rack::Logger
|
|
gc
ruby/gc.c
|
1%
|
ruby/gc.c
- Average Self
-
0.91ms
- Average calls
- 0.29x
- Total Self
- 0.26ms
- Total Children
- 0ms
- Total runtime
- 0.26ms
GC.start
|
|
rack
/app/vendor/bundle/ruby/4.0.0/gems/rack-session-2.1.1/lib/rack/session/abstract/id.rb:267
|
<1%
|
/app/vendor/bundle/ruby/4.0.0/gems/rack-session-2.1.1/lib/rack/session/abstract/id.rb:267
- Average Self
-
0.21ms
- Average calls
- 1x
- Total Self
- 0.21ms
- Total Children
- 19ms
- Total runtime
- 20ms
ActionDispatch::Session::CookieStore
|
|
code
/app/vendor/bundle/ruby/4.0.0/gems/railties-8.1.2/lib/rails/engine.rb:532
|
<1%
|
/app/vendor/bundle/ruby/4.0.0/gems/railties-8.1.2/lib/rails/engine.rb:532
- Average Self
-
0.18ms
- Average calls
- 1x
- Total Self
- 0.18ms
- Total Children
- 21ms
- Total runtime
- 21ms
Rails::Engine#call
|
|
rack
/app/vendor/bundle/ruby/4.0.0/gems/actionpack-8.1.2/lib/action_dispatch/middleware/static.rb:26
|
<1%
|
/app/vendor/bundle/ruby/4.0.0/gems/actionpack-8.1.2/lib/action_dispatch/middleware/static.rb:26
- Average Self
-
0.16ms
- Average calls
- 1x
- Total Self
- 0.16ms
- Total Children
- 20ms
- Total runtime
- 21ms
ActionDispatch::Static
|
|
rack
/app/vendor/bundle/ruby/4.0.0/gems/rack-3.2.4/lib/rack/tempfile_reaper.rb:16
|
<1%
|
/app/vendor/bundle/ruby/4.0.0/gems/rack-3.2.4/lib/rack/tempfile_reaper.rb:16
- Average Self
-
0.13ms
- Average calls
- 1x
- Total Self
- 0.13ms
- Total Children
- 19ms
- Total runtime
- 19ms
Rack::TempfileReaper
|
|
rack
/app/vendor/bundle/ruby/4.0.0/gems/actionpack-8.1.2/lib/action_dispatch/middleware/show_exceptions.rb:31
|
<1%
|
/app/vendor/bundle/ruby/4.0.0/gems/actionpack-8.1.2/lib/action_dispatch/middleware/show_exceptions.rb:31
- Average Self
-
0.11ms
- Average calls
- 1x
- Total Self
- 0.11ms
- Total Children
- 20ms
- Total runtime
- 20ms
ActionDispatch::ShowExceptions
|
|
rack
/app/vendor/bundle/ruby/4.0.0/gems/actionpack-8.1.2/lib/action_dispatch/middleware/executor.rb:13
|
<1%
|
/app/vendor/bundle/ruby/4.0.0/gems/actionpack-8.1.2/lib/action_dispatch/middleware/executor.rb:13
- Average Self
-
0.11ms
- Average calls
- 1x
- Total Self
- 0.11ms
- Total Children
- 20ms
- Total runtime
- 20ms
ActionDispatch::Executor
|
|
view
vendor/bundle/ruby/4.0.0/gems/kaminari-core-1.2.2/app/views/kaminari/_paginator.html.erb
|
<1%
|
vendor/bundle/ruby/4.0.0/gems/kaminari-core-1.2.2/app/views/kaminari/_paginator.html.erb
- Average Self
-
0.57ms
- Average calls
- 0.18x
- Total Self
- 0.11ms
- Total Children
- 0.05ms
- Total runtime
- 0.16ms
|
|
rack
ActionDispatch::Flash
|
<1%
|
ActionDispatch::Flash
- Average Self
-
0.11ms
- Average calls
- 1x
- Total Self
- 0.11ms
- Total Children
- 19ms
- Total runtime
- 19ms
|
|
rack
/app/vendor/bundle/ruby/4.0.0/gems/rack-3.2.4/lib/rack/method_override.rb:19
|
<1%
|
/app/vendor/bundle/ruby/4.0.0/gems/rack-3.2.4/lib/rack/method_override.rb:19
- Average Self
-
0.08ms
- Average calls
- 1x
- Total Self
- 0.08ms
- Total Children
- 20ms
- Total runtime
- 20ms
Rack::MethodOverride
|
|
rack
/app/vendor/bundle/ruby/4.0.0/gems/actionpack-8.1.2/lib/action_dispatch/http/content_security_policy.rb:37
|
<1%
|
/app/vendor/bundle/ruby/4.0.0/gems/actionpack-8.1.2/lib/action_dispatch/http/content_security_policy.rb:37
- Average Self
-
0.08ms
- Average calls
- 1x
- Total Self
- 0.08ms
- Total Children
- 19ms
- Total runtime
- 19ms
ActionDispatch::ContentSecurityPolicy::Middleware
|
|
rack
/app/vendor/bundle/ruby/4.0.0/gems/actionpack-8.1.2/lib/action_dispatch/middleware/cookies.rb:706
|
<1%
|
/app/vendor/bundle/ruby/4.0.0/gems/actionpack-8.1.2/lib/action_dispatch/middleware/cookies.rb:706
- Average Self
-
0.08ms
- Average calls
- 1x
- Total Self
- 0.08ms
- Total Children
- 20ms
- Total runtime
- 20ms
ActionDispatch::Cookies
|
|
rack
/app/vendor/bundle/ruby/4.0.0/gems/rack-3.2.4/lib/rack/etag.rb:28
|
<1%
|
/app/vendor/bundle/ruby/4.0.0/gems/rack-3.2.4/lib/rack/etag.rb:28
- Average Self
-
0.08ms
- Average calls
- 1x
- Total Self
- 0.08ms
- Total Children
- 19ms
- Total runtime
- 19ms
Rack::ETag
|
|
rack
/app/vendor/bundle/ruby/4.0.0/gems/rack-3.2.4/lib/rack/head.rb:14
|
<1%
|
/app/vendor/bundle/ruby/4.0.0/gems/rack-3.2.4/lib/rack/head.rb:14
- Average Self
-
0.08ms
- Average calls
- 1x
- Total Self
- 0.08ms
- Total Children
- 19ms
- Total runtime
- 19ms
Rack::Head
|
|
rack
/app/vendor/bundle/ruby/4.0.0/gems/rack-rewrite-1.5.1/lib/rack/rewrite.rb:18
|
<1%
|
/app/vendor/bundle/ruby/4.0.0/gems/rack-rewrite-1.5.1/lib/rack/rewrite.rb:18
- Average Self
-
0.05ms
- Average calls
- 1x
- Total Self
- 0.05ms
- Total Children
- 20ms
- Total runtime
- 20ms
Rack::Rewrite
|
|
rack
/app/vendor/bundle/ruby/4.0.0/gems/railties-8.1.2/lib/rails/rack/silence_request.rb:27
|
<1%
|
/app/vendor/bundle/ruby/4.0.0/gems/railties-8.1.2/lib/rails/rack/silence_request.rb:27
- Average Self
-
0.05ms
- Average calls
- 1x
- Total Self
- 0.05ms
- Total Children
- 20ms
- Total runtime
- 20ms
Rails::Rack::SilenceRequest
|
|
rack
/app/vendor/bundle/ruby/4.0.0/gems/actionpack-8.1.2/lib/action_dispatch/middleware/debug_exceptions.rb:30
|
<1%
|
/app/vendor/bundle/ruby/4.0.0/gems/actionpack-8.1.2/lib/action_dispatch/middleware/debug_exceptions.rb:30
- Average Self
-
0.05ms
- Average calls
- 1x
- Total Self
- 0.05ms
- Total Children
- 20ms
- Total runtime
- 20ms
ActionDispatch::DebugExceptions
|
|
rack
/app/vendor/bundle/ruby/4.0.0/gems/rack-3.2.4/lib/rack/conditional_get.rb:28
|
<1%
|
/app/vendor/bundle/ruby/4.0.0/gems/rack-3.2.4/lib/rack/conditional_get.rb:28
- Average Self
-
0.05ms
- Average calls
- 1x
- Total Self
- 0.05ms
- Total Children
- 19ms
- Total runtime
- 19ms
Rack::ConditionalGet
|
|
rack
/app/vendor/bundle/ruby/4.0.0/gems/actionpack-8.1.2/lib/action_dispatch/middleware/request_id.rb:31
|
<1%
|
/app/vendor/bundle/ruby/4.0.0/gems/actionpack-8.1.2/lib/action_dispatch/middleware/request_id.rb:31
- Average Self
-
0.03ms
- Average calls
- 1x
- Total Self
- 0.03ms
- Total Children
- 20ms
- Total runtime
- 20ms
ActionDispatch::RequestId
|
|
rack
/app/vendor/bundle/ruby/4.0.0/gems/request_store-1.7.0/lib/request_store/middleware.rb:16
|
<1%
|
/app/vendor/bundle/ruby/4.0.0/gems/request_store-1.7.0/lib/request_store/middleware.rb:16
- Average Self
-
0.03ms
- Average calls
- 1x
- Total Self
- 0.03ms
- Total Children
- 20ms
- Total runtime
- 20ms
RequestStore::Middleware
|
|
rack
/app/vendor/bundle/ruby/4.0.0/gems/rack-3.2.4/lib/rack/sendfile.rb:130
|
<1%
|
/app/vendor/bundle/ruby/4.0.0/gems/rack-3.2.4/lib/rack/sendfile.rb:130
- Average Self
-
0.03ms
- Average calls
- 1x
- Total Self
- 0.03ms
- Total Children
- 21ms
- Total runtime
- 21ms
Rack::Sendfile
|
|
rack
/app/vendor/bundle/ruby/4.0.0/gems/actionpack-8.1.2/lib/action_dispatch/middleware/callbacks.rb:28
|
<1%
|
/app/vendor/bundle/ruby/4.0.0/gems/actionpack-8.1.2/lib/action_dispatch/middleware/callbacks.rb:28
- Average Self
-
0.03ms
- Average calls
- 1x
- Total Self
- 0.03ms
- Total Children
- 20ms
- Total runtime
- 20ms
ActionDispatch::Callbacks
|
|
sql
vendor/bundle/ruby/4.0.0/gems/activesupport-8.1.2/lib/active_support/notifications/fanout.rb:158
|
<1%
|
vendor/bundle/ruby/4.0.0/gems/activesupport-8.1.2/lib/active_support/notifications/fanout.rb:158
- Average Self
-
1ms
- Average calls
- 0.03x
- Total Self
- 0.03ms
- Total Children
- 0ms
- Total runtime
- 0.03ms
SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ?
|
|
rack
/app/vendor/bundle/ruby/4.0.0/gems/actionpack-8.1.2/lib/action_dispatch/middleware/remote_ip.rb:95
|
<1%
|
/app/vendor/bundle/ruby/4.0.0/gems/actionpack-8.1.2/lib/action_dispatch/middleware/remote_ip.rb:95
- Average Self
-
0.03ms
- Average calls
- 1x
- Total Self
- 0.03ms
- Total Children
- 20ms
- Total runtime
- 20ms
ActionDispatch::RemoteIp
|
|
view
vendor/bundle/ruby/4.0.0/gems/kaminari-core-1.2.2/app/views/kaminari/_page.html.erb
|
<1%
|
vendor/bundle/ruby/4.0.0/gems/kaminari-core-1.2.2/app/views/kaminari/_page.html.erb
- Average Self
-
0.03ms
- Average calls
- 0.87x
- Total Self
- 0.03ms
- Total Children
- 0ms
- Total runtime
- 0.03ms
|
|
rack
/app/vendor/bundle/ruby/4.0.0/gems/rack-3.2.4/lib/rack/runtime.rb:22
|
<1%
|
/app/vendor/bundle/ruby/4.0.0/gems/rack-3.2.4/lib/rack/runtime.rb:22
- Average Self
-
0.03ms
- Average calls
- 1x
- Total Self
- 0.03ms
- Total Children
- 20ms
- Total runtime
- 20ms
Rack::Runtime
|
|
view
vendor/bundle/ruby/4.0.0/gems/kaminari-core-1.2.2/app/views/kaminari/_last_page.html.erb
|
<1%
|
vendor/bundle/ruby/4.0.0/gems/kaminari-core-1.2.2/app/views/kaminari/_last_page.html.erb
- Average Self
-
0ms
- Average calls
- 0.16x
- Total Self
- 0ms
- Total Children
- 0ms
- Total runtime
- 0ms
|
|
sql
app/models/user.rb:45
|
<1%
|
app/models/user.rb:45
- Average Self
-
0ms
- Average calls
- 0.03x
- Total Self
- 0ms
- Total Children
- 0ms
- Total runtime
- 0ms
SELECT ? AS one FROM "premium_accesses" WHERE "premium_accesses"."user_id" = ? AND (
activate_at < ? AND activate_at IS NOT NULL
AND expire_at > ? AND expire_at IS NOT NULL
) LIMIT ?
|
|
sql
app/views/topics/searches/index.html.erb:44
|
<1%
|
app/views/topics/searches/index.html.erb:44
- Average Self
-
0ms
- Average calls
- 0.24x
- Total Self
- 0ms
- Total Children
- 0ms
- Total runtime
- 0ms
SELECT DISTINCT topics.*, pg_search_f013aa4b8daf3e2242eafa.rank AS pg_search_rank FROM "topics" INNER JOIN "essays" ON "essays"."topic_id" = "topics"."id" INNER JOIN (SELECT "topics"."id" AS pg_search_id, (ts_rank(("topics"."searchable"), (to_tsquery(?, ? || ? || ?)), ?)) AS rank FROM "topics" WHERE (("topics"."searchable") @@ (to_tsquery(?, ? || ? || ?)))) AS pg_search_f013aa4b8daf3e2242eafa ON "topics"."id" = pg_search_f013aa4b8daf3e2242eafa.pg_search_id WHERE "essays"."status" = ? LIMIT ? OFFSET ?
|
|
sql
app/views/topics/searches/index.html.erb:49
|
<1%
|
app/views/topics/searches/index.html.erb:49
- Average Self
-
0ms
- Average calls
- 0.05x
- Total Self
- 0ms
- Total Children
- 0ms
- Total runtime
- 0ms
SELECT DISTINCT topics.*, pg_search_f013aa4b8daf3e2242eafa.rank AS pg_search_rank FROM "topics" INNER JOIN "essays" ON "essays"."topic_id" = "topics"."id" INNER JOIN (SELECT "topics"."id" AS pg_search_id, (ts_rank(("topics"."searchable"), (to_tsquery(?, ? || ? || ?)), ?)) AS rank FROM "topics" WHERE (("topics"."searchable") @@ (to_tsquery(?, ? || ? || ?)))) AS pg_search_f013aa4b8daf3e2242eafa ON "topics"."id" = pg_search_f013aa4b8daf3e2242eafa.pg_search_id WHERE "essays"."status" = ? LIMIT ? OFFSET ?
|
|
view
vendor/bundle/ruby/4.0.0/gems/kaminari-core-1.2.2/app/views/kaminari/_next_page.html.erb
|
<1%
|
vendor/bundle/ruby/4.0.0/gems/kaminari-core-1.2.2/app/views/kaminari/_next_page.html.erb
- Average Self
-
0ms
- Average calls
- 0.16x
- Total Self
- 0ms
- Total Children
- 0ms
- Total runtime
- 0ms
|