Query Metrics

12 Database Queries
12 Different statements
268.66 ms Query time
0 Invalid entities
0 Cache hits
1 Cache misses
2 Cache puts

Queries

Group similar statements

# Time Info
1 0.90 ms
SELECT t0.username AS username_1, t0.username_canonical AS username_canonical_2, t0.email AS email_3, t0.email_canonical AS email_canonical_4, t0.enabled AS enabled_5, t0.salt AS salt_6, t0.password AS password_7, t0.last_login AS last_login_8, t0.confirmation_token AS confirmation_token_9, t0.password_requested_at AS password_requested_at_10, t0.roles AS roles_11, t0.id AS id_12, t0.name AS name_13, t0.surname AS surname_14, t0.github AS github_15, t0.github_id AS github_id_16, t0.phone AS phone_17, t0.avatar AS avatar_18, t0.google_id AS google_id_19, t0.google_access_token AS google_access_token_20, t0.google_refresh_token AS google_refresh_token_21, t0.github_access_token AS github_access_token_22, t0.language AS language_23, t0.show_welcome_page AS show_welcome_page_24, t0.terms AS terms_25, t0.created AS created_26 FROM fos_user t0 WHERE t0.email_canonical = ? LIMIT 1
Parameters:
[
  "jacek.tchorzewski@coderslab.pl"
]
2 0.29 ms
"START TRANSACTION"
Parameters:
[]
3 1.01 ms
UPDATE fos_user SET last_login = ? WHERE id = ?
Parameters:
[
  "2025-09-11 08:04:57"
  15
]
4 0.77 ms
INSERT INTO revisions (timestamp, username) VALUES (?, ?)
Parameters:
[
  "2025-09-11 08:04:57"
  "jacek.tchorzewski@coderslab.pl"
]
5 0.71 ms
INSERT INTO fos_user_audit (rev, revtype, username, username_canonical, email, email_canonical, enabled, salt, password, last_login, confirmation_token, password_requested_at, roles, id, name, surname, github, github_id, phone, avatar, google_id, google_access_token, google_refresh_token, github_access_token, language, show_welcome_page, terms, created) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Parameters:
[
  "501631"
  "UPD"
  "jacek.tchorzewski@coderslab.pl"
  "jacek.tchorzewski@coderslab.pl"
  "jacek.tchorzewski@coderslab.pl"
  "jacek.tchorzewski@coderslab.pl"
  1
  "FXlNk9hZlDvqURQHSXwK/Zr9yi8k/TcnShMHkSJ0am8"
  "$2y$13$ILpIbxVg0skdVcP4rMrqruWyzWc/KVrZLAWVdPNTlkKgCIgMj2RSW"
  "2025-09-11 08:04:57"
  null
  null
  "a:3:{i:0;s:16:"ROLE_SUPER_ADMIN";i:1;s:11:"ROLE_MENTOR";i:2;s:13:"ROLE_LECTURER";}"
  15
  "Jacek"
  "Tchórzewski"
  "JacekTchorzewski-CL"
  "152855"
  "604978251"
  ""
  null
  null
  null
  null
  "pl"
  0
  "2021-11-16 10:04:54"
  null
]
6 7.01 ms
"COMMIT"
Parameters:
[]
7 0.74 ms
UPDATE fos_user_audit SET last_login = ? WHERE rev = ?  AND id = ?
Parameters:
[
  "2025-09-11 08:04:57"
  "501631"
  15
]
8 0.74 ms
SELECT roles FROM fos_user WHERE id = :uid
Parameters:
[
  "uid" => 15
]
9 251.45 ms
SELECT distinct count(1) as has_access FROM materials_pill_material pm
            JOIN materials_course_tree mct ON pm.id = mct.material_id
            JOIN materials_course mc ON mc.id = mct.course_id
            JOIN user_language ul ON ul.language_id = mc.technology_id
            WHERE pm.id = :mid AND ul.user_id = :uid;
Parameters:
[
  "mid" => "ac8bc9bf-cc3a-40ec-8b87-4bfcc7ebcc71"
  "uid" => 15
]
10 1.40 ms
SELECT pm.type, 
                   pm.name source_name,
                   pm.access,
                   mpmt.tags
            FROM materials_pill_material pm
            LEFT JOIN (
                SELECT material_id, GROUP_CONCAT(mpmt.name ORDER BY mpmt.name) tags
                FROM materials_pill_materials_tags t
                JOIN materials_pill_material_tag mpmt on t.tag_id = mpmt.id
                WHERE t.material_id = :id
                GROUP BY t.material_id
            ) mpmt on pm.id = mpmt.material_id
            WHERE pm.id = :id
Parameters:
[
  "id" => "ac8bc9bf-cc3a-40ec-8b87-4bfcc7ebcc71"
]
11 1.67 ms
SELECT mc.technology_id,
       mc.version,
       mc.mode,
       mcm.number module_nr,
       mcs.number chapter_nr,
       mpv.pill_id pill_id,
       mpm.name name,
       mpm.access access,
       mpm.type type,
       mc.language
FROM materials_course mc
JOIN materials_course_module mcm on mc.id = mcm.course_id
JOIN materials_course_chapter mcs on mcm.id = mcs.module_id
JOIN materials_course_chapter_pill_version mccpv on mcs.id = mccpv.chapter_id
JOIN materials_pill_version mpv on mccpv.pill_version_id = mpv.id    
JOIN materials_pill_material mpm on mpv.id = mpm.version_id 
WHERE mcs.id = :chapter_id AND mpm.id = :material_id;
Parameters:
[
  "material_id" => "ac8bc9bf-cc3a-40ec-8b87-4bfcc7ebcc71"
  "chapter_id" => "5ef8826f-0b3c-4d1e-bb8d-c5eb3f3bcb96"
]
12 1.97 ms
SELECT mct_prev.material_id, mct_prev.chapter_id, mct_prev.chapter_nr, mct_prev.module_nr
FROM materials_course_tree mct
LEFT JOIN materials_course_tree mct_prev on (mct.material_student_sequence - 1) = mct_prev.material_student_sequence 
                                                AND mct_prev.course_id = mct.course_id
WHERE mct.material_id = :mat_id AND mct.chapter_id = :chap_id
UNION ALL
SELECT mct_next.material_id, mct_next.chapter_id, mct_next.chapter_nr, mct_next.module_nr
FROM materials_course_tree mct
LEFT JOIN materials_course_tree mct_next on (mct.material_student_sequence + 1) = mct_next.material_student_sequence 
                                                AND mct_next.course_id = mct.course_id
WHERE mct.material_id = :mat_id AND mct.chapter_id = :chap_id
Parameters:
[
  "chap_id" => "5ef8826f-0b3c-4d1e-bb8d-c5eb3f3bcb96"
  "mat_id" => "ac8bc9bf-cc3a-40ec-8b87-4bfcc7ebcc71"
]

Database Connections

Name Service
default doctrine.dbal.default_connection

Entity Managers

Name Service
default doctrine.orm.default_entity_manager

Second Level Cache

0 Hits
1 Misses
2 Puts

Number of cache misses

Region Misses
appbundle_entity_user 1

Number of cache puts

Region Puts
appbundle_entity_user 2

Entities Mapping

Class Mapping errors
AppBundle\Entity\User No errors.
AppBundle\Entity\Notification No errors.
AppBundle\Entity\InstanceUser No errors.
AppBundle\Entity\ExerciseResult No errors.
AppBundle\Entity\Language No errors.
CodersLab\Lms\Modules\Materials\Domain\Quiz No errors.
CodersLab\Lms\Modules\Materials\Domain\Pill\Material No errors.