POST https://publite-joel.servicelevelmanagement.co.uk/api/recipient/generate-unsubscribe-link

Query Metrics

21 Database Queries
15 Different statements
33.20 ms Query time
0 Invalid entities
7 Managed entities

Grouped Statements

Show all queries

default connection

Time▼ Count Info
6.55 ms
(19.74%)
3
SELECT t0.id AS id_1, t0.api_key AS api_key_2, t0.created_at AS created_at_3, t0.last_used_at AS last_used_at_4, t0.tenant_user_id AS tenant_user_id_5, t0.tenant_db_config_id AS tenant_db_config_id_6 FROM tenant_api_key t0 WHERE t0.api_key = ? LIMIT 1
Parameters:
[
  "7698a68238a20b789118ec4251d5a3b0"
]
3.94 ms
(11.87%)
1
SELECT t0.id AS id_1, t0.email AS email_2, t0.roles AS roles_3, t0.password AS password_4, t0.invite_token AS invite_token_5, t0.invite_expires_at AS invite_expires_at_6, t7.id AS id_8, t7.secret AS secret_9, t7.backup_codes AS backup_codes_10, t7.enabled AS enabled_11, t7.created_at AS created_at_12, t7.enabled_at AS enabled_at_13, t7.last_used_at AS last_used_at_14, t7.tenant_user_id AS tenant_user_id_15 FROM tenant_user t0 LEFT JOIN tenant_user_authenticator t7 ON t7.tenant_user_id = t0.id WHERE t0.id = ?
Parameters:
[
  1
]
2.39 ms
(7.20%)
2
"COMMIT"
Parameters:
[]
2.17 ms
(6.55%)
1
INSERT INTO api_logs (id, timestamp, username, action, details, request_data, document_uuid, response_data, ip_address, user_agent, tenant_db_config_id) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Parameters:
[
  340493
  "2026-11-12 09:10:44"
  "[email protected]"
  "POST /api/recipient/generate-unsubscribe-link (200)"
  "API call completed in 26.81ms with status 200"
  "{"body":{"email":"[email protected]","department":"Council Tax","reference":"CTAX1_151c34"}}"
  null
  null
  "172.69.224.107"
  "Symfony HttpClient/Curl"
  4
]
1.46 ms
(4.38%)
1
UPDATE tenant_api_key SET last_used_at = ? WHERE id = ?
Parameters:
[
  "2026-11-12 09:10:44"
  6
]
1.24 ms
(3.73%)
1
SELECT t0.id AS id_1, t0.driver_type AS driver_type_2, t0.db_name AS db_name_3, t0.db_user_name AS db_user_name_4, t0.db_password AS db_password_5, t0.db_host AS db_host_6, t0.db_port AS db_port_7, t0.database_status AS database_status_8 FROM tenant_db_config t0 WHERE t0.id = ?
Parameters:
[
  4
]
0.87 ms
(2.61%)
1
SELECT NEXTVAL('api_logs_id_seq')
Parameters:
[]
0.54 ms
(1.63%)
1
SELECT t0_.id AS id_0, t0_.driver_type AS driver_type_1, t0_.db_name AS db_name_2, t0_.db_user_name AS db_user_name_3, t0_.db_password AS db_password_4, t0_.db_host AS db_host_5, t0_.db_port AS db_port_6, t0_.database_status AS database_status_7 FROM tenant_db_config t0_ WHERE t0_.id = ?
Parameters:
[
  4
]
0.53 ms
(1.59%)
2
"START TRANSACTION"
Parameters:
[]

tenant connection

Time▼ Count Info
6.50 ms
(19.59%)
1
SELECT r0_.id AS id_0, r0_.key AS key_1, r0_.value AS value_2, r0_.unsubscribed_at AS unsubscribed_at_3, r0_.recipient_id AS recipient_id_4 FROM recipient_reference r0_ INNER JOIN recipient r1_ ON r0_.recipient_id = r1_.id WHERE LOWER(TRIM(r0_.value)) = ? AND LOWER(TRIM(r0_.key)) = ? AND LOWER(TRIM(r1_.email)) = ? AND r0_.unsubscribed_at IS NULL LIMIT 1
Parameters:
[
  "ctax1_151c34"
  "council tax"
  "[email protected]"
]
1.94 ms
(5.84%)
2
"COMMIT"
Parameters:
[]
1.84 ms
(5.55%)
1
INSERT INTO domain_event (id, type, subject_type, subject_id, actor, payload, correlation_id, changed_fields, occurred_at, status, dispatched_at, processed_at) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Parameters:
[
  "1017302b-0714-43c4-9db5-a8a0751e7372"
  "recipient.updated"
  "recipient"
  "956088"
  "admin"
  "{"fields":["unsubscribeToken"],"changes":{"unsubscribeToken":{"from":"(hidden)","to":"(hidden)"}},"by":"[email protected]"}"
  "f29e0f726fda56f6176794d91145a926"
  ",unsubscribeToken,"
  "2026-11-12 09:10:44"
  "pending"
  null
  null
]
1.52 ms
(4.57%)
1
SELECT t0.id AS id_1, t0.uuid AS uuid_2, t0.name AS name_3, t0.email AS email_4, t0.password AS password_5, t0.meta AS meta_6, t0.enable AS enable_7, t0.telephone AS telephone_8, t0.preferred_channel AS preferred_channel_9, t0.enrollment_token AS enrollment_token_10, t0.unsubscribe_token AS unsubscribe_token_11, t0.totp_secret AS totp_secret_12, t0.confirmation_postcode AS confirmation_postcode_13, t0.confirmation_type AS confirmation_type_14, t0.one_time_code AS one_time_code_15, t0.deleted_at AS deleted_at_16, t0.address AS address_17, t0.version AS version_18, t0.source AS source_19, t0.last_synced_at AS last_synced_at_20, t0.updated_at AS updated_at_21, t0.source_id AS source_id_22, t0.subscriber AS subscriber_23 FROM recipient t0 WHERE t0.id = ?
Parameters:
[
  956088
]
1.17 ms
(3.51%)
1
UPDATE recipient SET unsubscribe_token = ?, updated_at = ? WHERE id = ?
Parameters:
[
  "67c0830223942352a92bc61213b59473"
  "2026-11-12 09:10:44"
  956088
]
0.54 ms
(1.63%)
2
"START TRANSACTION"
Parameters:
[]

Database Connections

Name Service
tenant doctrine.dbal.tenant_connection
default doctrine.dbal.default_connection

Entity Managers

Name Service
tenant doctrine.orm.tenant_entity_manager
default doctrine.orm.default_entity_manager
queue doctrine.orm.queue_entity_manager

Second Level Cache

Second Level Cache is not enabled.

Managed Entities

tenant entity manager

Class Amount of managed objects
App\Entity\Tenant\RecipientReference 1
App\Entity\Tenant\Recipient 1
App\Entity\Tenant\DomainEvent 1

default entity manager

Class Amount of managed objects
App\Entity\Main\TenantApiKey 1
App\Entity\Main\TenantUser 1
App\Entity\Main\TenantDbConfig 1
App\Entity\Main\ApiLog 1

queue entity manager

Class Amount of managed objects

Entities Mapping

tenant entity manager

Class Mapping errors
App\Entity\Tenant\RecipientReference No errors.
App\Entity\Tenant\Recipient No errors.
App\Entity\Tenant\Document No errors.
App\Entity\Tenant\AccessLog No errors.
App\Entity\Tenant\DomainEvent No errors.

default entity manager

Class Mapping errors
App\Entity\Main\TenantApiKey No errors.
App\Entity\Main\TenantUser No errors.
App\Entity\Main\TenantDbConfig No errors.
App\Entity\Main\TenantMembership No errors.
App\Entity\Main\TenantHostname No errors.
App\Entity\Main\TenantUserAuthenticator No errors.
App\Entity\Main\ApiLog No errors.

queue entity manager

No loaded entities.