Skip to content

Instantly share code, notes, and snippets.

@pjanik
Created February 26, 2016 01:27
Show Gist options
  • Save pjanik/d07f634454959eb40ebc to your computer and use it in GitHub Desktop.
Save pjanik/d07f634454959eb40ebc to your computer and use it in GitHub Desktop.
new student/status
Around 50ms in total:
Started GET "/portal/students/5/status.json" for 127.0.0.1 at 2016-02-25 17:27:03 -0800
Processing by Portal::StudentsController#status as JSON
Parameters: {"id"=>"5"}
User Load (1.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 14 AND (`users`.`state` NOT IN ('disabled')) LIMIT 1
Portal::Teacher Load (1.1ms) SELECT `portal_teachers`.* FROM `portal_teachers` WHERE `portal_teachers`.`user_id` = 14 LIMIT 1
Portal::Student Load (1.0ms) SELECT `portal_students`.* FROM `portal_students` WHERE `portal_students`.`user_id` = 14 LIMIT 1
Portal::Student Load (1.0ms) SELECT `portal_students`.* FROM `portal_students` WHERE `portal_students`.`id` = 5 LIMIT 1
Portal::Learner Load (1.1ms) SELECT `portal_learners`.* FROM `portal_learners` WHERE `portal_learners`.`student_id` = 5 ORDER BY student_id ASC
Portal::Offering Load (1.1ms) SELECT `portal_offerings`.* FROM `portal_offerings` WHERE `portal_offerings`.`id` = 10 LIMIT 1
Report::Learner Load (1.1ms) SELECT `report_learners`.* FROM `report_learners` WHERE `report_learners`.`learner_id` = 15 LIMIT 1
ExternalActivity Load (1.1ms) SELECT `external_activities`.* FROM `external_activities` WHERE `external_activities`.`id` = 10 LIMIT 1
Investigation Load (1.4ms) SELECT `investigations`.* FROM `investigations` WHERE `investigations`.`id` = 10 LIMIT 1
Activity Load (1.3ms) SELECT `activities`.* FROM `activities` WHERE `activities`.`investigation_id` = 10 AND `activities`.`teacher_only` = 0 ORDER BY position
Report::LearnerActivity Load (1.3ms) SELECT `report_learner_activity`.* FROM `report_learner_activity` WHERE `report_learner_activity`.`learner_id` = 15
Completed 200 OK in 27.5ms (Views: 0.3ms | ActiveRecord: 12.8ms | Solr: 0.0ms)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment