GET https://dev.hitthegrades.com/api/question-bank/subjects

Query Metrics

13 Database Queries
8 Different statements
44.80 ms Query time
0 Invalid entities
5 Managed entities

Queries

Group similar statements

# Time Info
1 0.50 ms
SELECT t0.id AS id_1, t0.email AS email_2, t0.roles AS roles_3, t0.password AS password_4, t0.is_verified AS is_verified_5, t0.username AS username_6, t0.name AS name_7, t0.address AS address_8, t0.phone_number AS phone_number_9, t0.profile_pic AS profile_pic_10, t0.oauth_provider AS oauth_provider_11, t0.oauth_id AS oauth_id_12, t0.oauth_access_token AS oauth_access_token_13, t0.oauth_refresh_token AS oauth_refresh_token_14, t0.oauth_token_expires_at AS oauth_token_expires_at_15, t0.referral_code AS referral_code_16, t0.created_at AS created_at_17, t0.updated_at AS updated_at_18 FROM user t0 WHERE t0.email = ? LIMIT 1
Parameters:
[
  "webrivals@gmail.com"
]
2 0.39 ms
SELECT t0.id AS id_1, t0.jti AS jti_2, t0.ip_address AS ip_address_3, t0.user_agent AS user_agent_4, t0.expires_at AS expires_at_5, t0.is_active AS is_active_6, t0.last_activity_at AS last_activity_at_7, t0.terminated_at AS terminated_at_8, t0.created_at AS created_at_9, t0.updated_at AS updated_at_10, t0.user_id AS user_id_11 FROM user_sessions t0 WHERE t0.jti = ? AND t0.is_active = ? LIMIT 1
Parameters:
[
  "3dfdd5707cfee9c0fae39c7d2fba1627"
  1
]
3 0.33 ms
SELECT t0.id AS id_1, t0.jti AS jti_2, t0.ip_address AS ip_address_3, t0.user_agent AS user_agent_4, t0.expires_at AS expires_at_5, t0.is_active AS is_active_6, t0.last_activity_at AS last_activity_at_7, t0.terminated_at AS terminated_at_8, t0.created_at AS created_at_9, t0.updated_at AS updated_at_10, t0.user_id AS user_id_11 FROM user_sessions t0 WHERE t0.jti = ? AND t0.is_active = ? LIMIT 1
Parameters:
[
  "3dfdd5707cfee9c0fae39c7d2fba1627"
  1
]
4 0.15 ms
"START TRANSACTION"
Parameters:
[]
5 17.24 ms
UPDATE user_sessions SET last_activity_at = ?, updated_at = ? WHERE id = ?
Parameters:
[
  "2026-06-02 12:40:28"
  "2026-06-02 12:40:28"
  475
]
6 0.20 ms
"COMMIT"
Parameters:
[]
7 0.40 ms
SELECT q0_.id AS id_0, q0_.name AS name_1, q0_.description AS description_2, q0_.sort_order AS sort_order_3, q0_.is_active AS is_active_4, q0_.created_at AS created_at_5, q0_.updated_at AS updated_at_6 FROM question_bank_subject q0_ WHERE q0_.is_active = ? ORDER BY q0_.sort_order ASC, q0_.name ASC
Parameters:
[
  1
]
8 0.36 ms
SELECT COUNT(q0_.id) AS sclr_0 FROM question_bank q0_ INNER JOIN question_bank_topic q1_ ON q0_.topic_id = q1_.id WHERE q1_.subject_id = ? AND q0_.is_active = ?
Parameters:
[
  1
  1
]
9 0.40 ms
SELECT COUNT(q0_.id) AS sclr_0 FROM question_bank_topic q0_ WHERE q0_.subject_id = ? AND q0_.is_active = 1 AND (EXISTS (SELECT q1_.id FROM question_bank q1_ LEFT JOIN paper_question p2_ ON (p2_.question_id = q1_.id) WHERE q1_.topic_id = q0_.id AND q1_.is_active = 1 AND p2_.id IS NULL))
Parameters:
[
  1
]
10 0.43 ms
SELECT COUNT(q0_.id) AS sclr_0 FROM question_bank q0_ INNER JOIN question_bank_topic q1_ ON q0_.topic_id = q1_.id WHERE q1_.subject_id = ? AND q0_.is_active = ?
Parameters:
[
  2
  1
]
11 23.78 ms
SELECT COUNT(q0_.id) AS sclr_0 FROM question_bank_topic q0_ WHERE q0_.subject_id = ? AND q0_.is_active = 1 AND (EXISTS (SELECT q1_.id FROM question_bank q1_ LEFT JOIN paper_question p2_ ON (p2_.question_id = q1_.id) WHERE q1_.topic_id = q0_.id AND q1_.is_active = 1 AND p2_.id IS NULL))
Parameters:
[
  2
]
12 0.33 ms
SELECT COUNT(q0_.id) AS sclr_0 FROM question_bank q0_ INNER JOIN question_bank_topic q1_ ON q0_.topic_id = q1_.id WHERE q1_.subject_id = ? AND q0_.is_active = ?
Parameters:
[
  3
  1
]
13 0.30 ms
SELECT COUNT(q0_.id) AS sclr_0 FROM question_bank_topic q0_ WHERE q0_.subject_id = ? AND q0_.is_active = 1 AND (EXISTS (SELECT q1_.id FROM question_bank q1_ LEFT JOIN paper_question p2_ ON (p2_.question_id = q1_.id) WHERE q1_.topic_id = q0_.id AND q1_.is_active = 1 AND p2_.id IS NULL))
Parameters:
[
  3
]

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\QuestionBankSubject 3
App\Entity\User 1
App\Entity\UserSession 1

Entities Mapping