http://64.23.220.99/api/v1/tickets?actAsEmail=ramsingh13391%40gmail.com&actAsType=customer&page=1

Query Metrics

20 Database Queries
12 Different statements
22.83 ms Query time
1 Invalid entities

Grouped Statements

Show all queries

Time Count Info
4.67 ms
(20.48%)
1
SELECT COUNT(DISTINCT u0_.id) AS sclr_0 FROM uv_ticket u0_ LEFT JOIN uv_user u1_ ON u0_.agent_id = u1_.id LEFT JOIN uv_user_instance u2_ ON u1_.id = u2_.user_id LEFT JOIN uv_ticket_status u3_ ON u0_.status_id = u3_.id LEFT JOIN uv_user u4_ ON u0_.customer_id = u4_.id LEFT JOIN uv_support_group u5_ ON u0_.group_id = u5_.id LEFT JOIN uv_ticket_priority u6_ ON u0_.priority_id = u6_.id LEFT JOIN uv_ticket_type u7_ ON u0_.type_id = u7_.id LEFT JOIN uv_tickets_collaborators u9_ ON u0_.id = u9_.ticket_id LEFT JOIN uv_user u8_ ON u8_.id = u9_.user_id WHERE (u0_.agent_id IS NULL OR u2_.supportRole_id <> 4) AND (u0_.customer_id = ? OR u8_.id = ?) AND u0_.is_trashed <> 1 ORDER BY u0_.id DESC
Parameters:
[
  373
  373
]
4.39 ms
(19.21%)
1
SELECT DISTINCT u0_.id AS id_0, u0_.id AS id_1 FROM uv_ticket u0_ LEFT JOIN uv_user u1_ ON u0_.agent_id = u1_.id LEFT JOIN uv_user_instance u2_ ON u1_.id = u2_.user_id LEFT JOIN uv_ticket_status u3_ ON u0_.status_id = u3_.id LEFT JOIN uv_user u4_ ON u0_.customer_id = u4_.id LEFT JOIN uv_support_group u5_ ON u0_.group_id = u5_.id LEFT JOIN uv_ticket_priority u6_ ON u0_.priority_id = u6_.id LEFT JOIN uv_ticket_type u7_ ON u0_.type_id = u7_.id LEFT JOIN uv_tickets_collaborators u9_ ON u0_.id = u9_.ticket_id LEFT JOIN uv_user u8_ ON u8_.id = u9_.user_id WHERE (u0_.agent_id IS NULL OR u2_.supportRole_id <> 4) AND (u0_.customer_id = ? OR u8_.id = ?) AND u0_.is_trashed <> 1 ORDER BY u0_.id DESC LIMIT 15
Parameters:
[
  373
  373
]
2.46 ms
(10.77%)
1
SELECT DISTINCT u0_.id AS id_0, u1_.id AS id_1, CONCAT(u0_.first_name, ' ', u0_.last_name) AS sclr_2, u2_.id AS id_3, u2_.source AS source_4, u2_.mailbox_email AS mailbox_email_5, u2_.subject AS subject_6, u2_.reference_ids AS reference_ids_7, u2_.is_new AS is_new_8, u2_.is_replied AS is_replied_9, u2_.is_reply_enabled AS is_reply_enabled_10, u2_.is_starred AS is_starred_11, u2_.is_trashed AS is_trashed_12, u2_.is_agent_viewed AS is_agent_viewed_13, u2_.is_customer_viewed AS is_customer_viewed_14, u2_.created_at AS created_at_15, u2_.updated_at AS updated_at_16, u3_.id AS id_17, u3_.code AS code_18, u3_.description AS description_19, u3_.color_code AS color_code_20, u3_.sort_order AS sort_order_21, u4_.id AS id_22, u4_.name AS name_23, u4_.description AS description_24, u4_.created_at AS created_at_25, u4_.is_active AS is_active_26, u4_.user_view AS user_view_27, u5_.id AS id_28, u5_.code AS code_29, u5_.description AS description_30, u5_.color_code AS color_code_31, u6_.id AS id_32, u6_.code AS code_33, u6_.description AS description_34, u6_.is_active AS is_active_35 FROM uv_ticket u2_ LEFT JOIN uv_user u0_ ON u2_.agent_id = u0_.id LEFT JOIN uv_user_instance u7_ ON u0_.id = u7_.user_id LEFT JOIN uv_ticket_status u3_ ON u2_.status_id = u3_.id LEFT JOIN uv_user u1_ ON u2_.customer_id = u1_.id LEFT JOIN uv_support_group u4_ ON u2_.group_id = u4_.id LEFT JOIN uv_ticket_priority u5_ ON u2_.priority_id = u5_.id LEFT JOIN uv_ticket_type u6_ ON u2_.type_id = u6_.id LEFT JOIN uv_tickets_collaborators u9_ ON u2_.id = u9_.ticket_id LEFT JOIN uv_user u8_ ON u8_.id = u9_.user_id WHERE (u2_.agent_id IS NULL OR u7_.supportRole_id <> 4) AND (u2_.customer_id = ? OR u8_.id = ?) AND u2_.is_trashed <> 1 AND u2_.id IN (?) ORDER BY u2_.id DESC
Parameters:
[
  373
  373
  [
    742
    701
    686
  ]
]
2.22 ms
(9.71%)
3
SELECT DISTINCT u0_.id AS id_0, u0_.email AS email_1, CONCAT(u0_.first_name, ' ', COALESCE(u0_.last_name, '')) AS sclr_2, u0_.first_name AS first_name_3, u0_.last_name AS last_name_4, u0_.is_enabled AS is_enabled_5, u1_.profile_image_path AS profile_image_path_6, u1_.profile_image_path AS profile_image_path_7, u1_.is_active AS is_active_8, u1_.is_verified AS is_verified_9, u1_.designation AS designation_10, u1_.contact_number AS contact_number_11, u1_.signature AS signature_12, u1_.ticket_access_level AS ticket_access_level_13 FROM uv_user u0_ LEFT JOIN uv_user_instance u1_ ON u0_.id = u1_.user_id WHERE u1_.supportRole_id <> ? AND u0_.id = ?
Parameters:
[
  4
  3
]
2.01 ms
(8.80%)
3
SELECT COUNT(u0_.id) AS sclr_0 FROM uv_thread u0_ WHERE u0_.ticket_id = ? AND u0_.thread_type = ?
Parameters:
[
  742
  "reply"
]
1.75 ms
(7.68%)
3
SELECT u0_.id AS id_0, u0_.email AS email_1, CONCAT(u0_.first_name, ' ', COALESCE(u0_.last_name, '')) AS sclr_2, u0_.first_name AS first_name_3, u0_.last_name AS last_name_4, u1_.contact_number AS contact_number_5, u1_.profile_image_path AS profile_image_path_6, u1_.profile_image_path AS profile_image_path_7 FROM uv_user u0_ LEFT JOIN uv_user_instance u1_ ON u0_.id = u1_.user_id WHERE u1_.supportRole_id = ? AND u0_.id = ?
Parameters:
[
  4
  373
]
1.48 ms
(6.47%)
3
SELECT t0.id AS id_1, t0.name AS name_2, t0.code AS code_3, t0.logo AS logo_4, t0.theme_color AS theme_color_5, t0.favicon AS favicon_6, t0.created_at AS created_at_7, t0.updated_at AS updated_at_8, t0.is_active AS is_active_9, t0.timezone AS timezone_10, t0.timeformat AS timeformat_11 FROM uv_website t0 WHERE t0.code = ? LIMIT 1
Parameters:
[
  "Knowledgebase"
]
1.07 ms
(4.69%)
1
SELECT u0_.id AS id_0, u0_.email AS email_1, u0_.proxy_id AS proxy_id_2, u0_.password AS password_3, u0_.first_name AS first_name_4, u0_.last_name AS last_name_5, u0_.is_enabled AS is_enabled_6, u0_.verification_code AS verification_code_7, u0_.timezone AS timezone_8, u0_.timeformat AS timeformat_9, u1_.id AS id_10, u1_.source AS source_11, u1_.skype_id AS skype_id_12, u1_.contact_number AS contact_number_13, u1_.designation AS designation_14, u1_.signature AS signature_15, u1_.profile_image_path AS profile_image_path_16, u1_.created_at AS created_at_17, u1_.updated_at AS updated_at_18, u1_.is_active AS is_active_19, u1_.is_verified AS is_verified_20, u1_.is_starred AS is_starred_21, u1_.ticket_access_level AS ticket_access_level_22, u1_.user_id AS user_id_23, u1_.supportRole_id AS supportRole_id_24 FROM uv_user u0_ LEFT JOIN uv_user_instance u1_ ON (u0_.id = u1_.user_id) LEFT JOIN uv_support_role u2_ ON u1_.supportRole_id = u2_.id WHERE u0_.email = ? AND u1_.is_active = ? AND (u2_.id = ? OR u2_.id = ? OR u2_.id = ?) LIMIT 1
Parameters:
[
  "akshay.kumar@crypque.in"
  1
  1
  2
  3
]
0.83 ms
(3.64%)
1
SELECT u0_.email AS email_0 FROM uv_api_access_credentials u1_ LEFT JOIN uv_user u0_ ON u1_.user_id = u0_.id WHERE u1_.token = ? AND u1_.is_enabled = 1
Parameters:
[
  "YWMGQJ5OP6VOXWFL7H08B48854ABSX7SCO8IN9XLZEGU4NEGBTIXMK0UJUC9KREG"
]
0.72 ms
(3.15%)
1
SELECT t0.id AS id_1, t0.email AS email_2, t0.proxy_id AS proxy_id_3, t0.password AS password_4, t0.first_name AS first_name_5, t0.last_name AS last_name_6, t0.is_enabled AS is_enabled_7, t0.verification_code AS verification_code_8, t0.timezone AS timezone_9, t0.timeformat AS timeformat_10 FROM uv_user t0 WHERE t0.email = ? LIMIT 1
Parameters:
[
  "ramsingh13391@gmail.com"
]
0.68 ms
(2.98%)
1
SELECT t0.id AS id_1, t0.code AS code_2, t0.description AS description_3 FROM uv_support_role t0 WHERE t0.id = ?
Parameters:
[
  1
]
0.55 ms
(2.43%)
1
SELECT t0.id AS id_1, t0.name AS name_2, t0.token AS token_3, t0.created_on AS created_on_4, t0.is_enabled AS is_enabled_5, t0.is_expired AS is_expired_6, t0.user_id AS user_id_7 FROM uv_api_access_credentials t0 WHERE t0.user_id = ? AND t0.token = ? LIMIT 1
Parameters:
[
  1
  "YWMGQJ5OP6VOXWFL7H08B48854ABSX7SCO8IN9XLZEGU4NEGBTIXMK0UJUC9KREG"
]

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
Webkul\UVDesk\ApiBundle\Entity\ApiAccessCredential No errors.
Webkul\UVDesk\CoreFrameworkBundle\Entity\User No errors.
Webkul\UVDesk\CoreFrameworkBundle\Entity\UserInstance No errors.
Webkul\UVDesk\CoreFrameworkBundle\Entity\SupportRole No errors.
Webkul\UVDesk\CoreFrameworkBundle\Entity\EmailTemplates No errors.
Webkul\UVDesk\CoreFrameworkBundle\Entity\SavedFilters No errors.
Webkul\UVDesk\CoreFrameworkBundle\Entity\SupportPrivilege No errors.
Webkul\UVDesk\CoreFrameworkBundle\Entity\SupportTeam No errors.
Webkul\UVDesk\CoreFrameworkBundle\Entity\SupportGroup No errors.
Webkul\UVDesk\CoreFrameworkBundle\Entity\Ticket
  • The association Webkul\UVDesk\CoreFrameworkBundle\Entity\Ticket#supportGroup refers to the inverse side field Webkul\UVDesk\CoreFrameworkBundle\Entity\SupportGroup#tickets which does not exist.
Webkul\UVDesk\CoreFrameworkBundle\Entity\TicketStatus No errors.
Webkul\UVDesk\CoreFrameworkBundle\Entity\TicketPriority No errors.
Webkul\UVDesk\CoreFrameworkBundle\Entity\TicketType No errors.
Webkul\UVDesk\CoreFrameworkBundle\Entity\Thread No errors.
Webkul\UVDesk\CoreFrameworkBundle\Entity\Website No errors.