GET https://edu.900900.ru/qa/question/6093

Query Metrics

12 Database Queries
10 Different statements
24.71 ms Query time
2 Invalid entities
13 Managed entities

Queries

Group similar statements

# Time Info
1 4.89 ms
SELECT t0.id AS id_1, t0.login AS login_2, t0.roles AS roles_3, t0.password AS password_4, t0.active_session_token AS active_session_token_5, t0.full_name AS full_name_6, t0.is_active AS is_active_7, t0.created_at AS created_at_8, t0.access_until AS access_until_9 FROM "user" t0 WHERE t0.id = ?
Parameters:
[
  182
]
2 2.00 ms
SELECT t0.id AS id_1, t0.text AS text_2, t0.explanation AS explanation_3, t0.type AS type_4, t0.sort_order AS sort_order_5, t0.is_active AS is_active_6, t0.points AS points_7, t0.section_id AS section_id_8 FROM question t0 WHERE t0.id = ?
Parameters:
[
  "6093"
]
3 2.32 ms
SELECT t0.id AS id_1, t0.name AS name_2, t0.description AS description_3, t0.sort_order AS sort_order_4, t0.section_group_id AS section_group_id_5 FROM section t0 WHERE t0.id = ?
Parameters:
[
  183
]
4 4.17 ms
SELECT u0_.id AS id_0, u0_.user_id AS user_id_1, u0_.topic_id AS topic_id_2, u0_.category_id AS category_id_3, u0_.subcategory_id AS subcategory_id_4, u0_.section_group_id AS section_group_id_5 FROM user_access_grant u0_ WHERE u0_.user_id = ? ORDER BY u0_.id ASC
Parameters:
[
  182
]
5 1.70 ms
SELECT t0.id AS id_1, t0.name AS name_2, t0.description AS description_3, t0.sort_order AS sort_order_4, t0.subcategory_id AS subcategory_id_5 FROM section_group t0 WHERE t0.id = ?
Parameters:
[
  14
]
6 1.31 ms
SELECT t0.id AS id_1, t0.name AS name_2, t0.description AS description_3, t0.sort_order AS sort_order_4, t0.category_id AS category_id_5 FROM subcategory t0 WHERE t0.id = ?
Parameters:
[
  4
]
7 1.31 ms
SELECT t0.id AS id_1, t0.name AS name_2, t0.description AS description_3, t0.sort_order AS sort_order_4, t0.topic_id AS topic_id_5 FROM category t0 WHERE t0.id = ?
Parameters:
[
  2
]
8 0.83 ms
SELECT q0_.id AS id_0 FROM question q0_ WHERE q0_.section_id = ? AND q0_.is_active = true ORDER BY q0_.sort_order ASC, q0_.id ASC
Parameters:
[
  183
]
9 0.90 ms
SELECT t0.id AS id_1, t0.text AS text_2, t0.explanation AS explanation_3, t0.type AS type_4, t0.sort_order AS sort_order_5, t0.is_active AS is_active_6, t0.points AS points_7, t0.section_id AS section_id_8 FROM question t0 WHERE t0.id = ?
Parameters:
[
  6092
]
10 0.45 ms
SELECT t0.id AS id_1, t0.text AS text_2, t0.explanation AS explanation_3, t0.type AS type_4, t0.sort_order AS sort_order_5, t0.is_active AS is_active_6, t0.points AS points_7, t0.section_id AS section_id_8 FROM question t0 WHERE t0.id = ?
Parameters:
[
  6094
]
11 1.18 ms
SELECT t0.id AS id_1, t0.name AS name_2, t0.description AS description_3, t0.sort_order AS sort_order_4 FROM topic t0 WHERE t0.id = ?
Parameters:
[
  2
]
12 3.65 ms
SELECT t0.id AS id_1, t0.text AS text_2, t0.is_correct AS is_correct_3, t0.sort_order AS sort_order_4, t0.question_id AS question_id_5 FROM answer_option t0 WHERE t0.question_id = ? ORDER BY t0.sort_order ASC, t0.id ASC
Parameters:
[
  6093
]

Database Connections

Name Service
default doctrine.dbal.default_connection

Entity Managers

Name Service
default doctrine.orm.default_entity_manager

Second Level Cache

Second Level Cache is not enabled.

Managed Entities

default entity manager

Class Amount of managed objects
App\Entity\Question 3
App\Entity\AnswerOption 3
App\Entity\User 1
App\Entity\Section 1
App\Entity\SectionGroup 1
App\Entity\UserAccessGrant 1
App\Entity\Topic 1
App\Entity\Category 1
App\Entity\Subcategory 1

Entities Mapping

Class Mapping errors
App\Entity\User No errors.
App\Entity\UserAccessGrant No errors.
App\Entity\Question No errors.
App\Entity\Section No errors.
App\Entity\AnswerOption No errors.
App\Entity\SectionGroup No errors.
App\Entity\Topic No errors.
App\Entity\Category
  • The association App\Entity\Category#sections refers to the owning side field App\Entity\Section#category which does not exist.
App\Entity\Subcategory
  • The association App\Entity\Subcategory#category refers to the inverse side field App\Entity\Category#subcategories which does not exist.
  • The association App\Entity\Subcategory#sections refers to the owning side field App\Entity\Section#subcategory which does not exist.
App\Entity\Attempt No errors.