GET https://staging.connect.seniorstairlifts.co.uk/admin/leads

Query Metrics

12 Database Queries
9 Different statements
53.08 ms Query time
2 Invalid entities
97 Managed entities

Queries

Group similar statements

# Time Info
1 0.46 ms
SELECT t0.id AS id_1, t0.email AS email_2, t0.roles AS roles_3, t0.password AS password_4, t0.name AS name_5, t0.status AS status_6, t0.mobile_number AS mobile_number_7, t0.manage_quote AS manage_quote_8, t0.manage_file_deletion AS manage_file_deletion_9, t0.manage_export AS manage_export_10, t0.manage_export_limited AS manage_export_limited_11, t0.sales_department AS sales_department_12, t0.last_activity_timestamp AS last_activity_timestamp_13, t0.password_reset_token AS password_reset_token_14, t0.hex_colour AS hex_colour_15 FROM user t0 WHERE t0.id = ?
Parameters:
[
  80
]
2 22.99 ms
SELECT count(DISTINCT p0_.id) AS sclr_0 FROM project p0_ LEFT JOIN customer c1_ ON p0_.customer_id = c1_.id LEFT JOIN user u2_ ON p0_.assigned_user_id = u2_.id LEFT JOIN brand b3_ ON p0_.brand_id = b3_.id WHERE (p0_.status = ? OR p0_.status = ?) AND (p0_.created_at_timestamp BETWEEN ? AND ?)
Parameters:
[
  "unassigned"
  "lead"
  1781737200
  1781823599
]
3 23.57 ms
SELECT DISTINCT p0_.id AS id_0, p0_.created_at_timestamp AS created_at_timestamp_1 FROM project p0_ LEFT JOIN customer c1_ ON p0_.customer_id = c1_.id LEFT JOIN user u2_ ON p0_.assigned_user_id = u2_.id LEFT JOIN brand b3_ ON p0_.brand_id = b3_.id WHERE (p0_.status = ? OR p0_.status = ?) AND (p0_.created_at_timestamp BETWEEN ? AND ?) ORDER BY p0_.created_at_timestamp DESC LIMIT 20
Parameters:
[
  "unassigned"
  "lead"
  1781737200
  1781823599
]
4 0.66 ms
SELECT p0_.id AS id_0, p0_.requirements AS requirements_1, p0_.source AS source_2, p0_.stairlift_condition AS stairlift_condition_3, p0_.staircase AS staircase_4, p0_.external_id AS external_id_5, p0_.external_distribution_id AS external_distribution_id_6, p0_.lead_type AS lead_type_7, p0_.extended_warranty AS extended_warranty_8, p0_.status AS status_9, p0_.created_at_timestamp AS created_at_timestamp_10, p0_.updated_at_timestamp AS updated_at_timestamp_11, p0_.metadata AS metadata_12, p0_.customer_id AS customer_id_13, p0_.brand_id AS brand_id_14, p0_.api_user_id AS api_user_id_15, p0_.assigned_user_id AS assigned_user_id_16 FROM project p0_ LEFT JOIN customer c1_ ON p0_.customer_id = c1_.id LEFT JOIN user u2_ ON p0_.assigned_user_id = u2_.id LEFT JOIN brand b3_ ON p0_.brand_id = b3_.id WHERE (p0_.status = ? OR p0_.status = ?) AND (p0_.created_at_timestamp BETWEEN ? AND ?) AND p0_.id IN (?) ORDER BY p0_.created_at_timestamp DESC
Parameters:
[
  "unassigned"
  "lead"
  1781737200
  1781823599
  19895
]
5 1.40 ms
SELECT u0_.id AS id_0, u0_.email AS email_1, u0_.roles AS roles_2, u0_.password AS password_3, u0_.name AS name_4, u0_.status AS status_5, u0_.mobile_number AS mobile_number_6, u0_.manage_quote AS manage_quote_7, u0_.manage_file_deletion AS manage_file_deletion_8, u0_.manage_export AS manage_export_9, u0_.manage_export_limited AS manage_export_limited_10, u0_.sales_department AS sales_department_11, u0_.last_activity_timestamp AS last_activity_timestamp_12, u0_.password_reset_token AS password_reset_token_13, u0_.hex_colour AS hex_colour_14 FROM user u0_ WHERE u0_.roles NOT LIKE ? AND u0_.status = ? ORDER BY u0_.name ASC
Parameters:
[
  "%ROLE_HIDDEN%"
  1
]
6 0.91 ms
SELECT a0_.id AS id_0, a0_.api_key AS api_key_1, a0_.roles AS roles_2, a0_.status AS status_3, a0_.name AS name_4, a0_.email_address_for_confirmation AS email_address_for_confirmation_5, a0_.show_in_reports AS show_in_reports_6 FROM api_user a0_ ORDER BY a0_.name ASC
Parameters:
[]
7 0.58 ms
SELECT t0.is_pinned AS is_pinned_1, t0.id AS id_2, t0.body AS body_3, t0.category AS category_4, t0.completed_at_timestamp AS completed_at_timestamp_5, t0.created_at_timestamp AS created_at_timestamp_6, t0.updated_at_timestamp AS updated_at_timestamp_7, t0.due_at_timestamp AS due_at_timestamp_8, t0.project_id AS project_id_9, t0.assigned_user_id AS assigned_user_id_10, t0.created_by_user_id AS created_by_user_id_11, t0.last_updated_by_user_id AS last_updated_by_user_id_12 FROM project_note t0 WHERE t0.project_id = ?
Parameters:
[
  19895
]
8 0.42 ms
SELECT t0.is_pinned AS is_pinned_1, t0.id AS id_2, t0.body AS body_3, t0.category AS category_4, t0.completed_at_timestamp AS completed_at_timestamp_5, t0.created_at_timestamp AS created_at_timestamp_6, t0.updated_at_timestamp AS updated_at_timestamp_7, t0.due_at_timestamp AS due_at_timestamp_8, t0.project_id AS project_id_9, t0.assigned_user_id AS assigned_user_id_10, t0.created_by_user_id AS created_by_user_id_11, t0.last_updated_by_user_id AS last_updated_by_user_id_12 FROM project_note t0 WHERE t0.project_id = ?
Parameters:
[
  19895
]
9 0.33 ms
SELECT t0.is_pinned AS is_pinned_1, t0.id AS id_2, t0.body AS body_3, t0.category AS category_4, t0.completed_at_timestamp AS completed_at_timestamp_5, t0.created_at_timestamp AS created_at_timestamp_6, t0.updated_at_timestamp AS updated_at_timestamp_7, t0.due_at_timestamp AS due_at_timestamp_8, t0.project_id AS project_id_9, t0.assigned_user_id AS assigned_user_id_10, t0.created_by_user_id AS created_by_user_id_11, t0.last_updated_by_user_id AS last_updated_by_user_id_12 FROM project_note t0 WHERE t0.project_id = ?
Parameters:
[
  19895
]
10 0.51 ms
SELECT t0.is_pinned AS is_pinned_1, t0.id AS id_2, t0.body AS body_3, t0.category AS category_4, t0.completed_at_timestamp AS completed_at_timestamp_5, t0.created_at_timestamp AS created_at_timestamp_6, t0.updated_at_timestamp AS updated_at_timestamp_7, t0.due_at_timestamp AS due_at_timestamp_8, t0.project_id AS project_id_9, t0.assigned_user_id AS assigned_user_id_10, t0.created_by_user_id AS created_by_user_id_11, t0.last_updated_by_user_id AS last_updated_by_user_id_12 FROM project_note t0 WHERE t0.project_id = ?
Parameters:
[
  19895
]
11 0.66 ms
SELECT t0.id AS id_1, t0.name AS name_2, t0.additional_name AS additional_name_3, t0.stripe_id AS stripe_id_4, t0.address_lines AS address_lines_5, t0.address_town AS address_town_6, t0.address_postcode AS address_postcode_7, t0.address_county AS address_county_8, t0.address_country AS address_country_9, t0.created_at_timestamp AS created_at_timestamp_10, t0.updated_at_timestamp AS updated_at_timestamp_11, t0.contact_number AS contact_number_12, t0.e164_contact_number AS e164_contact_number_13, t0.email_address AS email_address_14, t0.latitude AS latitude_15, t0.longitude AS longitude_16, t0.display_id AS display_id_17, t0.created_by_user_id AS created_by_user_id_18, t0.last_updated_by_user_id AS last_updated_by_user_id_19, t0.xero_guid_id AS xero_guid_id_20 FROM customer t0 WHERE t0.id = ?
Parameters:
[
  24020
]
12 0.59 ms
SELECT t0.id AS id_1, t0.kind AS kind_2, t0.completed_at_timestamp AS completed_at_timestamp_3, t0.estimated_timescale_in_minutes AS estimated_timescale_in_minutes_4, t0.specification AS specification_5, t0.reviewed_at_timestamp AS reviewed_at_timestamp_6, t0.stock_status AS stock_status_7, t0.created_at_timestamp AS created_at_timestamp_8, t0.updated_at_timestamp AS updated_at_timestamp_9, t0.status AS status_10, t0.booked_at_timestamp AS booked_at_timestamp_11, t0.metadata AS metadata_12, t0.arrival_timestamp AS arrival_timestamp_13, t0.leaving_timestamp AS leaving_timestamp_14, t0.display_id AS display_id_15, t0.project_id AS project_id_16, t0.reviewed_by_user_id AS reviewed_by_user_id_17, t0.trainer_user_id AS trainer_user_id_18, t0.quote_product_id AS quote_product_id_19, t0.assigned_items_id AS assigned_items_id_20, t0.created_by_user_id AS created_by_user_id_21, t0.last_updated_by_user_id AS last_updated_by_user_id_22, t0.assigned_user_id AS assigned_user_id_23 FROM job t0 WHERE t0.project_id = ?
Parameters:
[
  19895
]

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.

Managed Entities

default entity manager

Class Amount of managed objects
App\Entity\User 64
App\Entity\ApiUser 30
App\Entity\Project 1
App\Entity\Customer 1
App\Entity\ProjectNote 1

Entities Mapping

Class Mapping errors
App\Entity\User No errors.
App\Entity\ApiUser No errors.
App\Entity\Project No errors.
App\Entity\Customer
  • The field 'App\Entity\Customer#latitude' has the property type 'float' that differs from the metadata field type 'string' returned by the 'decimal' DBAL type.
  • The field 'App\Entity\Customer#longitude' has the property type 'float' that differs from the metadata field type 'string' returned by the 'decimal' DBAL type.
App\Entity\Brand No errors.
App\Entity\Job No errors.
App\Entity\ProjectNote No errors.
App\Entity\Quote
  • The association App\Entity\Quote#quotedBy refers to the inverse side field App\Entity\User#quotes which does not exist.
  • The association App\Entity\Quote#soldBy refers to the inverse side field App\Entity\User#soldQuotes which does not exist.
App\Entity\PurchaseOrder No errors.
App\Entity\ProjectFile No errors.
App\Entity\Invoice No errors.
App\Entity\Xero\XeroGuid No errors.
App\Entity\PhoneCall No errors.
App\Entity\Warranty No errors.
App\Entity\Stock\Item No errors.
App\Entity\Complaint No errors.
App\Entity\QuoteProduct No errors.
App\Entity\Stock\AssignedItems No errors.