GET http://82.66.25.12:8081/best-deals?page=4

Query Metrics

86 Database Queries
5 Different statements
17.51 ms Query time
4 Invalid entities

Queries

Group similar statements

# Time Info
1 0.70 ms
SELECT t0.id AS id_1, t0.title AS title_2, t0.description AS description_3, t0.initialprice AS initialprice_4, t0.reduceprice AS reduceprice_5, t0.publicationdate AS publicationdate_6, t0.link AS link_7, t0.delivery AS delivery_8, t0.image_filename AS image_filename_9, t0.is_active AS is_active_10, t0.is_published AS is_published_11, t0.user_id AS user_id_12 FROM deal t0
Parameters:
[]
2 0.51 ms
SELECT COUNT(*) FROM vote t0 WHERE t0.deal_id = ? AND t0.type_vote = ?
Parameters:
[
  36
  "upvote"
]
3 0.33 ms
SELECT COUNT(*) FROM vote t0 WHERE t0.deal_id = ? AND t0.type_vote = ?
Parameters:
[
  36
  "downvote"
]
4 0.32 ms
SELECT COUNT(*) FROM vote t0 WHERE t0.deal_id = ? AND t0.type_vote = ?
Parameters:
[
  37
  "upvote"
]
5 0.31 ms
SELECT COUNT(*) FROM vote t0 WHERE t0.deal_id = ? AND t0.type_vote = ?
Parameters:
[
  37
  "downvote"
]
6 0.23 ms
SELECT COUNT(*) FROM vote t0 WHERE t0.deal_id = ? AND t0.type_vote = ?
Parameters:
[
  38
  "upvote"
]
7 0.21 ms
SELECT COUNT(*) FROM vote t0 WHERE t0.deal_id = ? AND t0.type_vote = ?
Parameters:
[
  38
  "downvote"
]
8 0.22 ms
SELECT COUNT(*) FROM vote t0 WHERE t0.deal_id = ? AND t0.type_vote = ?
Parameters:
[
  39
  "upvote"
]
9 0.27 ms
SELECT COUNT(*) FROM vote t0 WHERE t0.deal_id = ? AND t0.type_vote = ?
Parameters:
[
  39
  "downvote"
]
10 0.21 ms
SELECT COUNT(*) FROM vote t0 WHERE t0.deal_id = ? AND t0.type_vote = ?
Parameters:
[
  40
  "upvote"
]
11 0.22 ms
SELECT COUNT(*) FROM vote t0 WHERE t0.deal_id = ? AND t0.type_vote = ?
Parameters:
[
  40
  "downvote"
]
12 0.23 ms
SELECT COUNT(*) FROM vote t0 WHERE t0.deal_id = ? AND t0.type_vote = ?
Parameters:
[
  41
  "upvote"
]
13 0.25 ms
SELECT COUNT(*) FROM vote t0 WHERE t0.deal_id = ? AND t0.type_vote = ?
Parameters:
[
  41
  "downvote"
]
14 0.21 ms
SELECT COUNT(*) FROM vote t0 WHERE t0.deal_id = ? AND t0.type_vote = ?
Parameters:
[
  42
  "upvote"
]
15 0.18 ms
SELECT COUNT(*) FROM vote t0 WHERE t0.deal_id = ? AND t0.type_vote = ?
Parameters:
[
  42
  "downvote"
]
16 0.18 ms
SELECT COUNT(*) FROM vote t0 WHERE t0.deal_id = ? AND t0.type_vote = ?
Parameters:
[
  43
  "upvote"
]
17 0.17 ms
SELECT COUNT(*) FROM vote t0 WHERE t0.deal_id = ? AND t0.type_vote = ?
Parameters:
[
  43
  "downvote"
]
18 0.17 ms
SELECT COUNT(*) FROM vote t0 WHERE t0.deal_id = ? AND t0.type_vote = ?
Parameters:
[
  44
  "upvote"
]
19 0.17 ms
SELECT COUNT(*) FROM vote t0 WHERE t0.deal_id = ? AND t0.type_vote = ?
Parameters:
[
  44
  "downvote"
]
20 0.17 ms
SELECT COUNT(*) FROM vote t0 WHERE t0.deal_id = ? AND t0.type_vote = ?
Parameters:
[
  45
  "upvote"
]
21 0.16 ms
SELECT COUNT(*) FROM vote t0 WHERE t0.deal_id = ? AND t0.type_vote = ?
Parameters:
[
  45
  "downvote"
]
22 0.17 ms
SELECT COUNT(*) FROM vote t0 WHERE t0.deal_id = ? AND t0.type_vote = ?
Parameters:
[
  46
  "upvote"
]
23 0.16 ms
SELECT COUNT(*) FROM vote t0 WHERE t0.deal_id = ? AND t0.type_vote = ?
Parameters:
[
  46
  "downvote"
]
24 0.17 ms
SELECT COUNT(*) FROM vote t0 WHERE t0.deal_id = ? AND t0.type_vote = ?
Parameters:
[
  47
  "upvote"
]
25 0.17 ms
SELECT COUNT(*) FROM vote t0 WHERE t0.deal_id = ? AND t0.type_vote = ?
Parameters:
[
  47
  "downvote"
]
26 0.17 ms
SELECT COUNT(*) FROM vote t0 WHERE t0.deal_id = ? AND t0.type_vote = ?
Parameters:
[
  48
  "upvote"
]
27 0.16 ms
SELECT COUNT(*) FROM vote t0 WHERE t0.deal_id = ? AND t0.type_vote = ?
Parameters:
[
  48
  "downvote"
]
28 0.16 ms
SELECT COUNT(*) FROM vote t0 WHERE t0.deal_id = ? AND t0.type_vote = ?
Parameters:
[
  49
  "upvote"
]
29 0.18 ms
SELECT COUNT(*) FROM vote t0 WHERE t0.deal_id = ? AND t0.type_vote = ?
Parameters:
[
  49
  "downvote"
]
30 0.18 ms
SELECT COUNT(*) FROM vote t0 WHERE t0.deal_id = ? AND t0.type_vote = ?
Parameters:
[
  50
  "upvote"
]
31 0.16 ms
SELECT COUNT(*) FROM vote t0 WHERE t0.deal_id = ? AND t0.type_vote = ?
Parameters:
[
  50
  "downvote"
]
32 0.16 ms
SELECT COUNT(*) FROM vote t0 WHERE t0.deal_id = ? AND t0.type_vote = ?
Parameters:
[
  51
  "upvote"
]
33 0.16 ms
SELECT COUNT(*) FROM vote t0 WHERE t0.deal_id = ? AND t0.type_vote = ?
Parameters:
[
  51
  "downvote"
]
34 0.16 ms
SELECT COUNT(*) FROM vote t0 WHERE t0.deal_id = ? AND t0.type_vote = ?
Parameters:
[
  52
  "upvote"
]
35 0.16 ms
SELECT COUNT(*) FROM vote t0 WHERE t0.deal_id = ? AND t0.type_vote = ?
Parameters:
[
  52
  "downvote"
]
36 0.17 ms
SELECT COUNT(*) FROM vote t0 WHERE t0.deal_id = ? AND t0.type_vote = ?
Parameters:
[
  53
  "upvote"
]
37 0.16 ms
SELECT COUNT(*) FROM vote t0 WHERE t0.deal_id = ? AND t0.type_vote = ?
Parameters:
[
  53
  "downvote"
]
38 0.16 ms
SELECT COUNT(*) FROM vote t0 WHERE t0.deal_id = ? AND t0.type_vote = ?
Parameters:
[
  54
  "upvote"
]
39 0.17 ms
SELECT COUNT(*) FROM vote t0 WHERE t0.deal_id = ? AND t0.type_vote = ?
Parameters:
[
  54
  "downvote"
]
40 0.17 ms
SELECT COUNT(*) FROM vote t0 WHERE t0.deal_id = ? AND t0.type_vote = ?
Parameters:
[
  55
  "upvote"
]
41 0.16 ms
SELECT COUNT(*) FROM vote t0 WHERE t0.deal_id = ? AND t0.type_vote = ?
Parameters:
[
  55
  "downvote"
]
42 0.16 ms
SELECT COUNT(*) FROM vote t0 WHERE t0.deal_id = ? AND t0.type_vote = ?
Parameters:
[
  56
  "upvote"
]
43 0.16 ms
SELECT COUNT(*) FROM vote t0 WHERE t0.deal_id = ? AND t0.type_vote = ?
Parameters:
[
  56
  "downvote"
]
44 0.16 ms
SELECT COUNT(*) FROM vote t0 WHERE t0.deal_id = ? AND t0.type_vote = ?
Parameters:
[
  57
  "upvote"
]
45 0.16 ms
SELECT COUNT(*) FROM vote t0 WHERE t0.deal_id = ? AND t0.type_vote = ?
Parameters:
[
  57
  "downvote"
]
46 0.16 ms
SELECT COUNT(*) FROM vote t0 WHERE t0.deal_id = ? AND t0.type_vote = ?
Parameters:
[
  58
  "upvote"
]
47 0.16 ms
SELECT COUNT(*) FROM vote t0 WHERE t0.deal_id = ? AND t0.type_vote = ?
Parameters:
[
  58
  "downvote"
]
48 0.17 ms
SELECT COUNT(*) FROM vote t0 WHERE t0.deal_id = ? AND t0.type_vote = ?
Parameters:
[
  59
  "upvote"
]
49 0.20 ms
SELECT COUNT(*) FROM vote t0 WHERE t0.deal_id = ? AND t0.type_vote = ?
Parameters:
[
  59
  "downvote"
]
50 0.17 ms
SELECT COUNT(*) FROM vote t0 WHERE t0.deal_id = ? AND t0.type_vote = ?
Parameters:
[
  60
  "upvote"
]
51 0.16 ms
SELECT COUNT(*) FROM vote t0 WHERE t0.deal_id = ? AND t0.type_vote = ?
Parameters:
[
  60
  "downvote"
]
52 0.16 ms
SELECT COUNT(*) FROM vote t0 WHERE t0.deal_id = ? AND t0.type_vote = ?
Parameters:
[
  61
  "upvote"
]
53 0.16 ms
SELECT COUNT(*) FROM vote t0 WHERE t0.deal_id = ? AND t0.type_vote = ?
Parameters:
[
  61
  "downvote"
]
54 0.19 ms
SELECT COUNT(*) FROM vote t0 WHERE t0.deal_id = ? AND t0.type_vote = ?
Parameters:
[
  62
  "upvote"
]
55 0.16 ms
SELECT COUNT(*) FROM vote t0 WHERE t0.deal_id = ? AND t0.type_vote = ?
Parameters:
[
  62
  "downvote"
]
56 0.16 ms
SELECT COUNT(*) FROM vote t0 WHERE t0.deal_id = ? AND t0.type_vote = ?
Parameters:
[
  63
  "upvote"
]
57 0.16 ms
SELECT COUNT(*) FROM vote t0 WHERE t0.deal_id = ? AND t0.type_vote = ?
Parameters:
[
  63
  "downvote"
]
58 0.16 ms
SELECT COUNT(*) FROM vote t0 WHERE t0.deal_id = ? AND t0.type_vote = ?
Parameters:
[
  64
  "upvote"
]
59 0.16 ms
SELECT COUNT(*) FROM vote t0 WHERE t0.deal_id = ? AND t0.type_vote = ?
Parameters:
[
  64
  "downvote"
]
60 0.17 ms
SELECT COUNT(*) FROM vote t0 WHERE t0.deal_id = ? AND t0.type_vote = ?
Parameters:
[
  65
  "upvote"
]
61 0.16 ms
SELECT COUNT(*) FROM vote t0 WHERE t0.deal_id = ? AND t0.type_vote = ?
Parameters:
[
  65
  "downvote"
]
62 0.16 ms
SELECT COUNT(*) FROM vote t0 WHERE t0.deal_id = ? AND t0.type_vote = ?
Parameters:
[
  66
  "upvote"
]
63 0.16 ms
SELECT COUNT(*) FROM vote t0 WHERE t0.deal_id = ? AND t0.type_vote = ?
Parameters:
[
  66
  "downvote"
]
64 0.16 ms
SELECT COUNT(*) FROM vote t0 WHERE t0.deal_id = ? AND t0.type_vote = ?
Parameters:
[
  67
  "upvote"
]
65 0.16 ms
SELECT COUNT(*) FROM vote t0 WHERE t0.deal_id = ? AND t0.type_vote = ?
Parameters:
[
  67
  "downvote"
]
66 0.16 ms
SELECT COUNT(*) FROM vote t0 WHERE t0.deal_id = ? AND t0.type_vote = ?
Parameters:
[
  68
  "upvote"
]
67 0.16 ms
SELECT COUNT(*) FROM vote t0 WHERE t0.deal_id = ? AND t0.type_vote = ?
Parameters:
[
  68
  "downvote"
]
68 0.16 ms
SELECT COUNT(*) FROM vote t0 WHERE t0.deal_id = ? AND t0.type_vote = ?
Parameters:
[
  69
  "upvote"
]
69 0.19 ms
SELECT COUNT(*) FROM vote t0 WHERE t0.deal_id = ? AND t0.type_vote = ?
Parameters:
[
  69
  "downvote"
]
70 0.16 ms
SELECT COUNT(*) FROM vote t0 WHERE t0.deal_id = ? AND t0.type_vote = ?
Parameters:
[
  70
  "upvote"
]
71 0.16 ms
SELECT COUNT(*) FROM vote t0 WHERE t0.deal_id = ? AND t0.type_vote = ?
Parameters:
[
  70
  "downvote"
]
72 0.50 ms
SELECT t0.id AS id_1, t0.name_category AS name_category_2, t0.categories_id AS categories_id_3 FROM category t0 INNER JOIN deal_category ON t0.id = deal_category.category_id WHERE deal_category.deal_id = ?
Parameters:
[
  55
]
73 0.30 ms
SELECT t0.id AS id_1, t0.email AS email_2, t0.roles AS roles_3, t0.password AS password_4, t0.firstname AS firstname_5, t0.lastname AS lastname_6, t0.inscription_time AS inscription_time_7, t0.username AS username_8 FROM user t0 WHERE t0.id = ?
Parameters:
[
  45
]
74 0.27 ms
SELECT t0.id AS id_1, t0.content AS content_2, t0.comment_time AS comment_time_3, t0.user_id AS user_id_4, t0.deal_id AS deal_id_5, t0.parent_id AS parent_id_6 FROM COMMENT t0 WHERE t0.deal_id = ?
Parameters:
[
  55
]
75 0.29 ms
SELECT t0.id AS id_1, t0.name_category AS name_category_2, t0.categories_id AS categories_id_3 FROM category t0 INNER JOIN deal_category ON t0.id = deal_category.category_id WHERE deal_category.deal_id = ?
Parameters:
[
  61
]
76 0.24 ms
SELECT t0.id AS id_1, t0.email AS email_2, t0.roles AS roles_3, t0.password AS password_4, t0.firstname AS firstname_5, t0.lastname AS lastname_6, t0.inscription_time AS inscription_time_7, t0.username AS username_8 FROM user t0 WHERE t0.id = ?
Parameters:
[
  51
]
77 0.25 ms
SELECT t0.id AS id_1, t0.content AS content_2, t0.comment_time AS comment_time_3, t0.user_id AS user_id_4, t0.deal_id AS deal_id_5, t0.parent_id AS parent_id_6 FROM COMMENT t0 WHERE t0.deal_id = ?
Parameters:
[
  61
]
78 0.28 ms
SELECT t0.id AS id_1, t0.name_category AS name_category_2, t0.categories_id AS categories_id_3 FROM category t0 INNER JOIN deal_category ON t0.id = deal_category.category_id WHERE deal_category.deal_id = ?
Parameters:
[
  39
]
79 0.23 ms
SELECT t0.id AS id_1, t0.email AS email_2, t0.roles AS roles_3, t0.password AS password_4, t0.firstname AS firstname_5, t0.lastname AS lastname_6, t0.inscription_time AS inscription_time_7, t0.username AS username_8 FROM user t0 WHERE t0.id = ?
Parameters:
[
  33
]
80 0.24 ms
SELECT t0.id AS id_1, t0.content AS content_2, t0.comment_time AS comment_time_3, t0.user_id AS user_id_4, t0.deal_id AS deal_id_5, t0.parent_id AS parent_id_6 FROM COMMENT t0 WHERE t0.deal_id = ?
Parameters:
[
  39
]
81 0.27 ms
SELECT t0.id AS id_1, t0.name_category AS name_category_2, t0.categories_id AS categories_id_3 FROM category t0 INNER JOIN deal_category ON t0.id = deal_category.category_id WHERE deal_category.deal_id = ?
Parameters:
[
  68
]
82 0.19 ms
SELECT t0.id AS id_1, t0.email AS email_2, t0.roles AS roles_3, t0.password AS password_4, t0.firstname AS firstname_5, t0.lastname AS lastname_6, t0.inscription_time AS inscription_time_7, t0.username AS username_8 FROM user t0 WHERE t0.id = ?
Parameters:
[
  47
]
83 0.19 ms
SELECT t0.id AS id_1, t0.content AS content_2, t0.comment_time AS comment_time_3, t0.user_id AS user_id_4, t0.deal_id AS deal_id_5, t0.parent_id AS parent_id_6 FROM COMMENT t0 WHERE t0.deal_id = ?
Parameters:
[
  68
]
84 0.22 ms
SELECT t0.id AS id_1, t0.name_category AS name_category_2, t0.categories_id AS categories_id_3 FROM category t0 INNER JOIN deal_category ON t0.id = deal_category.category_id WHERE deal_category.deal_id = ?
Parameters:
[
  47
]
85 0.18 ms
SELECT t0.id AS id_1, t0.email AS email_2, t0.roles AS roles_3, t0.password AS password_4, t0.firstname AS firstname_5, t0.lastname AS lastname_6, t0.inscription_time AS inscription_time_7, t0.username AS username_8 FROM user t0 WHERE t0.id = ?
Parameters:
[
  50
]
86 0.18 ms
SELECT t0.id AS id_1, t0.content AS content_2, t0.comment_time AS comment_time_3, t0.user_id AS user_id_4, t0.deal_id AS deal_id_5, t0.parent_id AS parent_id_6 FROM COMMENT t0 WHERE t0.deal_id = ?
Parameters:
[
  47
]

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\Deal
  • The mappings App\Entity\Deal#user and App\Entity\User#deals are inconsistent with each other.
App\Entity\User
  • The association App\Entity\User#deals refers to the owning side field App\Entity\Deal#idUser which does not exist.
  • The association App\Entity\User#comments refers to the owning side field App\Entity\Comment#User which does not exist.
  • The association App\Entity\User#votes refers to the owning side field App\Entity\Vote#User which does not exist.
App\Entity\Comment
  • The mappings App\Entity\Comment#user and App\Entity\User#comments are inconsistent with each other.
App\Entity\Vote
  • The mappings App\Entity\Vote#user and App\Entity\User#votes are inconsistent with each other.
App\Entity\Category No errors.