|
sql
app/views/admin/plans/index.html.erb:16
|
56%
|
app/views/admin/plans/index.html.erb:16
- Average Self
-
189ms
- Calls
- 1x
- Total Self
- 189ms
- Total Children
- 0ms
- Total runtime
- 189ms
SELECT "essay_contents_internals"."id" AS t0_r0, "essay_contents_internals"."content" AS t0_r1, "essay_contents_internals"."created_at" AS t0_r2, "essay_contents_internals"."updated_at" AS t0_r3, "essay_contents_internals"."user_id" AS t0_r4, "essay_contents_internals"."description" AS t0_r5, "essay_contents_internals"."keywords" AS t0_r6, "essay_contents_internals"."premium" AS t0_r7, "essay_contents_internals"."premium_updated_at" AS t0_r8, "essay_contents_internals"."content_with_links" AS t0_r9, "topics"."id" AS t1_r0, "topics"."title" AS t1_r1, "topics"."created_at" AS t1_r2, "topics"."updated_at" AS t1_r3, "topics"."category_id" AS t1_r4, "topics"."past_exam" AS t1_r5, "topics"."studied_text" AS t1_r6, "topics"."deprecated_book" AS t1_r7, "topics"."part" AS t1_r8, "topics"."themes" AS t1_r9, "topics"."edition" AS t1_r10, "topics"."best_essay_id" AS t1_r11, "topics"."title_short" AS t1_r12, "topics"."title_arabic_numbers" AS t1_r13, "topics"."sub_category_id" AS t1_r14, "topics"."searchable" AS t1_r15, "essay"."id" AS t2_r0, "essay"."topic_id" AS t2_r1, "essay"."essay_content_type" AS t2_r2, "essay"."essay_content_id" AS t2_r3, "essay"."refusal_reason" AS t2_r4, "essay"."hits_nb" AS t2_r5, "essay"."hits_nb_currentmonth" AS t2_r6, "essay"."status" AS t2_r7, "essay"."created_at" AS t2_r8, "essay"."updated_at" AS t2_r9, "essay"."validated_at" AS t2_r10, "essay"."hits_nb_currentschoolyear" AS t2_r11, "essay"."hits_nb_previousschoolyear" AS t2_r12 FROM "essay_contents_internals" LEFT OUTER JOIN "essays" "essay" ON "essay"."essay_content_type" = ? AND "essay"."essay_content_id" = "essay_contents_internals"."id" LEFT OUTER JOIN "topics" ON "topics"."id" = "essay"."topic_id" WHERE "essay"."status" = ? AND (content NOT LIKE ?)
|
|
view
app/views/admin/plans/index.html.erb
|
28%
|
app/views/admin/plans/index.html.erb
- Average Self
-
93ms
- Calls
- 1x
- Total Self
- 93ms
- Total Children
- 189ms
- Total runtime
- 282ms
|
|
code
app/controllers/admin/plans_controller.rb:4
|
7%
|
app/controllers/admin/plans_controller.rb:4
- Average Self
-
25ms
- Calls
- 1x
- Total Self
- 25ms
- Total Children
- 293ms
- Total runtime
- 318ms
Admin::PlansController#index
|
|
gc
ruby/gc.c
|
2%
|
ruby/gc.c
- Average Self
-
7ms
- Calls
- 1x
- Total Self
- 7ms
- Total Children
- 0ms
- Total runtime
- 7ms
GC.start
|
|
queue
queue
|
2%
|
queue
- Average Self
-
6ms
- Calls
- 1x
- Total Self
- 6ms
- Total Children
- 0ms
- Total runtime
- 6ms
|
|
sql
app/views/layouts/application.html.erb:237
|
1%
|
app/views/layouts/application.html.erb:237
- Average Self
-
1.3ms
- Calls
- 3x
- Total Self
- 4ms
- Total Children
- 0ms
- Total runtime
- 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
|
1%
|
app/views/layouts/application.html.erb:249
- Average Self
-
4ms
- Calls
- 1x
- Total Self
- 4ms
- Total Children
- 0ms
- Total runtime
- 4ms
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 ?
|
|
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
-
1ms
- Calls
- 1x
- Total Self
- 1ms
- Total Children
- 320ms
- Total runtime
- 321ms
RequestStore::Middleware
|
|
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
-
1ms
- Calls
- 1x
- Total Self
- 1ms
- Total Children
- 319ms
- Total runtime
- 320ms
Rack::Head
|
|
rack
/app/vendor/bundle/ruby/4.0.0/gems/warden-1.2.9/lib/warden/manager.rb:30
|
<1%
|
/app/vendor/bundle/ruby/4.0.0/gems/warden-1.2.9/lib/warden/manager.rb:30
- Average Self
-
1ms
- Calls
- 1x
- Total Self
- 1ms
- Total Children
- 318ms
- Total runtime
- 319ms
Warden::Manager
|
|
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
- Calls
- 1x
- Total Self
- 1ms
- Total Children
- 0ms
- Total runtime
- 1ms
SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ?
|
|
sql
app/models/user.rb:45
|
<1%
|
app/models/user.rb:45
- Average Self
-
1ms
- Calls
- 1x
- Total Self
- 1ms
- Total Children
- 0ms
- Total runtime
- 1ms
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 ?
|
|
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
-
0ms
- Calls
- 1x
- Total Self
- 0ms
- Total Children
- 320ms
- Total runtime
- 320ms
ActionDispatch::Callbacks
|
|
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
-
0ms
- Calls
- 1x
- Total Self
- 0ms
- Total Children
- 320ms
- Total runtime
- 320ms
ActionDispatch::DebugExceptions
|
|
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
-
0ms
- Calls
- 1x
- Total Self
- 0ms
- Total Children
- 320ms
- Total runtime
- 320ms
ActionDispatch::ShowExceptions
|
|
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
-
0ms
- Calls
- 1x
- Total Self
- 0ms
- Total Children
- 320ms
- Total runtime
- 320ms
Rails::Rack::SilenceRequest
|
|
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
-
0ms
- Calls
- 1x
- Total Self
- 0ms
- Total Children
- 321ms
- Total runtime
- 321ms
ActionDispatch::RequestId
|
|
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
-
0ms
- Calls
- 1x
- Total Self
- 0ms
- Total Children
- 319ms
- Total runtime
- 319ms
Rack::ETag
|
|
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
-
0ms
- Calls
- 1x
- Total Self
- 0ms
- Total Children
- 319ms
- Total runtime
- 319ms
Rack::ConditionalGet
|
|
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
-
0ms
- Calls
- 1x
- Total Self
- 0ms
- Total Children
- 321ms
- Total runtime
- 321ms
Rack::Rewrite
|
|
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
-
0ms
- Calls
- 1x
- Total Self
- 0ms
- Total Children
- 319ms
- Total runtime
- 319ms
Rack::TempfileReaper
|
|
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
-
0ms
- Calls
- 1x
- Total Self
- 0ms
- Total Children
- 321ms
- Total runtime
- 321ms
Rack::Runtime
|
|
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
-
0ms
- Calls
- 1x
- Total Self
- 0ms
- Total Children
- 321ms
- Total runtime
- 321ms
Rack::MethodOverride
|
|
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
-
0ms
- Calls
- 1x
- Total Self
- 0ms
- Total Children
- 321ms
- Total runtime
- 321ms
Rack::Sendfile
|
|
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
-
0ms
- Calls
- 1x
- Total Self
- 0ms
- Total Children
- 321ms
- Total runtime
- 321ms
Rails::Engine#call
|
|
rack
ActionDispatch::Flash
|
<1%
|
ActionDispatch::Flash
- Average Self
-
0ms
- Calls
- 1x
- Total Self
- 0ms
- Total Children
- 320ms
- Total runtime
- 320ms
|
|
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
-
0ms
- Calls
- 1x
- Total Self
- 0ms
- Total Children
- 320ms
- Total runtime
- 320ms
Rails::Rack::Logger
|
|
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
-
0ms
- Calls
- 1x
- Total Self
- 0ms
- Total Children
- 321ms
- Total runtime
- 321ms
ActionDispatch::Static
|
|
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
-
0ms
- Calls
- 1x
- Total Self
- 0ms
- Total Children
- 320ms
- Total runtime
- 320ms
ActionDispatch::ContentSecurityPolicy::Middleware
|
|
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
-
0ms
- Calls
- 1x
- Total Self
- 0ms
- Total Children
- 320ms
- Total runtime
- 320ms
ActionDispatch::Session::CookieStore
|
|
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
-
0ms
- Calls
- 1x
- Total Self
- 0ms
- Total Children
- 320ms
- Total runtime
- 320ms
ActionDispatch::RemoteIp
|
|
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
-
0ms
- Calls
- 1x
- Total Self
- 0ms
- Total Children
- 321ms
- Total runtime
- 321ms
ActionDispatch::Executor
|
|
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
-
0ms
- Calls
- 1x
- Total Self
- 0ms
- Total Children
- 320ms
- Total runtime
- 320ms
ActionDispatch::Cookies
|