https://help.hookemhard.com/en/blog/how-do-i-earn-badges

Query Metrics

17 Database Queries
14 Different statements
4.73 ms Query time
1 Invalid entities

Queries

Group similar statements

# Time Info
1 0.46 ms
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"
]
2 0.20 ms
SELECT t0.id AS id_1, t0.status AS status_2, t0.brand_color AS brand_color_3, t0.page_background_color AS page_background_color_4, t0.header_background_color AS header_background_color_5, t0.link_color AS link_color_6, t0.article_text_color AS article_text_color_7, t0.ticket_create_option AS ticket_create_option_8, t0.site_description AS site_description_9, t0.meta_description AS meta_description_10, t0.meta_keywords AS meta_keywords_11, t0.homepage_content AS homepage_content_12, t0.white_list AS white_list_13, t0.black_list AS black_list_14, t0.created_at AS created_at_15, t0.updated_at AS updated_at_16, t0.broadcast_message AS broadcast_message_17, t0.disable_customer_login AS disable_customer_login_18, t0.script AS script_19, t0.custom_css AS custom_css_20, t0.is_active AS is_active_21, t0.header_links AS header_links_22, t0.footer_links AS footer_links_23, t0.banner_background_color AS banner_background_color_24, t0.link_hover_color AS link_hover_color_25, t0.login_required_to_create AS login_required_to_create_26, t0.remove_customer_login_button AS remove_customer_login_button_27, t0.remove_branding_content AS remove_branding_content_28, t0.website AS website_29 FROM uv_website_knowledgebase t0 WHERE t0.website = ? AND t0.status = ? LIMIT 1
Parameters:
[
  2
  true
]
3 0.31 ms
SELECT t0.id AS id_1, t0.name AS name_2, t0.slug AS slug_3, t0.content AS content_4, t0.meta_description AS meta_description_5, t0.keywords AS keywords_6, t0.viewed AS viewed_7, t0.status AS status_8, t0.date_added AS date_added_9, t0.date_updated AS date_updated_10, t0.stared AS stared_11, t0.meta_title AS meta_title_12 FROM uv_article t0 WHERE t0.status = ? AND t0.slug = ? LIMIT 1
Parameters:
[
  1
  "how-do-i-earn-badges"
]
4 0.08 ms
"START TRANSACTION"
Parameters:
[]
5 0.16 ms
INSERT INTO uv_article_view_log (viewed_at, user_id, article_id) VALUES (?, ?, ?)
Parameters:
[
  1 => "2024-11-21 14:00:17"
  2 => null
  3 => 5
]
6 0.15 ms
UPDATE uv_article SET viewed = ?, date_updated = ? WHERE id = ?
Parameters:
[
  205
  "2024-11-21 14:00:17"
  5
]
7 1.39 ms
"COMMIT"
Parameters:
[]
8 0.20 ms
SELECT user_id, is_helpful, description FROM uv_article_feedback WHERE article_id = 5
Parameters:
[]
9 0.36 ms
SELECT DISTINCT u0_.id AS id_0, u0_.name AS name_1 FROM uv_article u1_ LEFT JOIN uv_article_tags u2_ ON (u2_.article_id = u1_.id) LEFT JOIN uv_tag u0_ ON (u2_.tag_id = u0_.id) WHERE u2_.article_id = ?
Parameters:
[
  5
]
10 0.31 ms
SELECT u0_.id AS id_0, u0_.source AS source_1, u0_.skype_id AS skype_id_2, u0_.contact_number AS contact_number_3, u0_.designation AS designation_4, u0_.signature AS signature_5, u0_.profile_image_path AS profile_image_path_6, u0_.created_at AS created_at_7, u0_.updated_at AS updated_at_8, u0_.is_active AS is_active_9, u0_.is_verified AS is_verified_10, u0_.is_starred AS is_starred_11, u0_.ticket_access_level AS ticket_access_level_12, u0_.user_id AS user_id_13, u0_.supportRole_id AS supportRole_id_14 FROM uv_user_instance u0_ LEFT JOIN uv_article_history u1_ ON (u1_.user_id = u0_.user_id) WHERE u1_.article_id = ? AND u0_.supportRole_id <> ? ORDER BY u1_.date_added ASC LIMIT 1
Parameters:
[
  5
  4
]
11 0.27 ms
SELECT DISTINCT u0_.id AS id_0, u0_.related_article_id AS related_article_id_1, u1_.name AS name_2, u1_.stared AS stared_3, u1_.status AS status_4, u1_.slug AS slug_5 FROM uv_related_articles u0_ LEFT JOIN uv_article u1_ ON (u0_.related_article_id = u1_.id) WHERE u0_.article_id = ? AND u1_.status IN (?) ORDER BY u0_.id DESC
Parameters:
[
  5
  [
    1
  ]
]
12 0.23 ms
SELECT u0_.id AS id_0, u0_.name AS name_1, u0_.slug AS slug_2, u0_.content AS content_3, u0_.stared AS stared_4 FROM uv_article u0_ WHERE u0_.status = ? ORDER BY u0_.viewed DESC LIMIT 10
Parameters:
[
  1
]
13 0.12 ms
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"
]
14 0.11 ms
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"
]
15 0.12 ms
SELECT t0.id AS id_1, t0.status AS status_2, t0.brand_color AS brand_color_3, t0.page_background_color AS page_background_color_4, t0.header_background_color AS header_background_color_5, t0.link_color AS link_color_6, t0.article_text_color AS article_text_color_7, t0.ticket_create_option AS ticket_create_option_8, t0.site_description AS site_description_9, t0.meta_description AS meta_description_10, t0.meta_keywords AS meta_keywords_11, t0.homepage_content AS homepage_content_12, t0.white_list AS white_list_13, t0.black_list AS black_list_14, t0.created_at AS created_at_15, t0.updated_at AS updated_at_16, t0.broadcast_message AS broadcast_message_17, t0.disable_customer_login AS disable_customer_login_18, t0.script AS script_19, t0.custom_css AS custom_css_20, t0.is_active AS is_active_21, t0.header_links AS header_links_22, t0.footer_links AS footer_links_23, t0.banner_background_color AS banner_background_color_24, t0.link_hover_color AS link_hover_color_25, t0.login_required_to_create AS login_required_to_create_26, t0.remove_customer_login_button AS remove_customer_login_button_27, t0.remove_branding_content AS remove_branding_content_28, t0.website AS website_29 FROM uv_website_knowledgebase t0 WHERE t0.website = ? AND t0.is_active = ? LIMIT 1
Parameters:
[
  2
  1
]
16 0.12 ms
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"
]
17 0.11 ms
SELECT t0.id AS id_1, t0.status AS status_2, t0.brand_color AS brand_color_3, t0.page_background_color AS page_background_color_4, t0.header_background_color AS header_background_color_5, t0.link_color AS link_color_6, t0.article_text_color AS article_text_color_7, t0.ticket_create_option AS ticket_create_option_8, t0.site_description AS site_description_9, t0.meta_description AS meta_description_10, t0.meta_keywords AS meta_keywords_11, t0.homepage_content AS homepage_content_12, t0.white_list AS white_list_13, t0.black_list AS black_list_14, t0.created_at AS created_at_15, t0.updated_at AS updated_at_16, t0.broadcast_message AS broadcast_message_17, t0.disable_customer_login AS disable_customer_login_18, t0.script AS script_19, t0.custom_css AS custom_css_20, t0.is_active AS is_active_21, t0.header_links AS header_links_22, t0.footer_links AS footer_links_23, t0.banner_background_color AS banner_background_color_24, t0.link_hover_color AS link_hover_color_25, t0.login_required_to_create AS login_required_to_create_26, t0.remove_customer_login_button AS remove_customer_login_button_27, t0.remove_branding_content AS remove_branding_content_28, t0.website AS website_29 FROM uv_website_knowledgebase t0 WHERE t0.website = ? LIMIT 1
Parameters:
[
  2
]

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\CoreFrameworkBundle\Entity\Website No errors.
Webkul\UVDesk\SupportCenterBundle\Entity\KnowledgebaseWebsite No errors.
Webkul\UVDesk\SupportCenterBundle\Entity\Article No errors.
Webkul\UVDesk\SupportCenterBundle\Entity\ArticleViewLog No errors.
Webkul\UVDesk\CoreFrameworkBundle\Entity\User No errors.
Webkul\UVDesk\SupportCenterBundle\Entity\ArticleTags No errors.
Webkul\UVDesk\CoreFrameworkBundle\Entity\Tag
  • The field Webkul\UVDesk\CoreFrameworkBundle\Entity\Tag#tickets is on the inverse side of a bi-directional relationship, but the specified mappedBy association on the target-entity Webkul\UVDesk\CoreFrameworkBundle\Entity\Ticket#supportTags does not contain the required 'inversedBy="tickets"' attribute.
Webkul\UVDesk\CoreFrameworkBundle\Entity\UserInstance No errors.
Webkul\UVDesk\SupportCenterBundle\Entity\ArticleHistory No errors.
Webkul\UVDesk\CoreFrameworkBundle\Entity\SupportRole No errors.
Webkul\UVDesk\SupportCenterBundle\Entity\ArticleRelatedArticle No errors.