Query Metrics
7
Database Queries
5
Different statements
1.76 ms
Query time
1
Invalid entities
Grouped Statements
| Time▼ | Count | Info |
|---|---|---|
|
0.88 ms (49.91%) |
3 |
SELECT mg.user_id,@rownum:=@rownum+1 rownum, (mg.points + a.points + m.points) as points, ((a.end-a.start) + (mg.end-mg.start) +(m.end-m.start)) as exectime , b.username as nick, b.firstname, b.lastname, b.email FROM `memory_game` mg, answear a ,matcher m ,user b, (SELECT @rownum:=0) r WHERE a.user_id = mg.user_id AND m.user_id = a.user_id AND a.user_id = b.id AND a.quiz= :quiz AND mg.quiz = :quiz AND m.quiz = :quiz ORDER BY points DESC, exectime ASC, a.start ASC LIMIT 3
Parameters:
[ ":quiz" => "1" ] |
|
0.27 ms (15.20%) |
1 |
SELECT mg.user_id,@rownum:=@rownum+1 rownum, (mg.points + a.points + m.points) as points, ((a.end-a.start) + (mg.end-mg.start) + (m.end-m.start)) as exectime , b.username as nick, b.firstname, b.lastname, b.email FROM `memory_game` mg, answear a, matcher m ,user b, (SELECT @rownum:=0) r WHERE a.user_id = mg.user_id AND m.user_id = a.user_id AND a.user_id = b.id ORDER BY points DESC, exectime ASC, a.start ASC LIMIT 3
Parameters:
[] |
|
0.26 ms (15.02%) |
1 |
SELECT t0.id AS id_1, t0.username AS username_2, t0.firstname AS firstname_3, t0.lastname AS lastname_4, t0.email AS email_5, t0.roles AS roles_6, t0.password AS password_7, t0.enabled AS enabled_8 FROM user t0 WHERE t0.id = ?
Parameters:
[
1
]
|
|
0.18 ms (10.30%) |
1 |
SELECT t0.id AS id_1, t0.quiz AS quiz_2, t0.start AS start_3, t0.end AS end_4, t0.points AS points_5, t0.answear AS answear_6, t0.questions AS questions_7, t0.questions_start AS questions_start_8, t0.user_id AS user_id_9 FROM answear t0 WHERE t0.user_id = ? AND t0.quiz = ? ORDER BY t0.id DESC LIMIT 1
Parameters:
[ 1 1 ] |
|
0.17 ms (9.57%) |
1 |
SELECT t0.id AS id_1, t0.start AS start_2, t0.end AS end_3, t0.points AS points_4, t0.items_start AS items_start_5, t0.move_count AS move_count_6, t0.items_checked AS items_checked_7, t0.items_left AS items_left_8, t0.quiz AS quiz_9, t0.user_id AS user_id_10 FROM memory_game t0 WHERE t0.user_id = ? AND t0.quiz = ? ORDER BY t0.id DESC LIMIT 1
Parameters:
[ 1 1 ] |
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.
Entities Mapping
| Class | Mapping errors |
|---|---|
| App\Entity\User | No errors. |
| App\Entity\Answear | No errors. |
| App\Entity\MemoryGame |
|