4.53 ms (23.45%)
|
1 |
SELECT c.COLUMN_NAME AS field,
c.COLUMN_TYPE AS type,
c.IS_NULLABLE AS `null`,
c.COLUMN_KEY AS `key`,
c.COLUMN_DEFAULT AS `default`,
c.EXTRA,
c.COLUMN_COMMENT AS comment,
c.CHARACTER_SET_NAME AS characterset,
c.COLLATION_NAME AS collation
FROM information_schema.COLUMNS c
INNER JOIN information_schema.TABLES t
ON t.TABLE_NAME = c.TABLE_NAME
WHERE c.TABLE_SCHEMA = ? AND t.TABLE_SCHEMA = ? AND t.TABLE_TYPE = 'BASE TABLE' AND t.TABLE_NAME = ? ORDER BY ORDINAL_POSITION
Parameters: [
"sconsult_db_sy_sos"
"sconsult_db_sy_sos"
"leads"
]
SELECT c.COLUMN_NAME AS field,
c.COLUMN_TYPE AS type,
c.IS_NULLABLE AS `null`,
c.COLUMN_KEY AS `key`,
c.COLUMN_DEFAULT AS `default`,
c.EXTRA,
c.COLUMN_COMMENT AS comment,
c.CHARACTER_SET_NAME AS characterset,
c.COLLATION_NAME AS collation
FROM information_schema.COLUMNS c
INNER JOIN information_schema.TABLES t
ON t.TABLE_NAME = c.TABLE_NAME
WHERE c.TABLE_SCHEMA = 'sconsult_db_sy_sos' AND t.TABLE_SCHEMA = 'sconsult_db_sy_sos' AND t.TABLE_TYPE = 'BASE TABLE' AND t.TABLE_NAME = 'leads' ORDER BY ORDINAL_POSITION;
|
4.52 ms (23.43%)
|
2 |
SHOW COLUMNS FROM leads
SHOW COLUMNS FROM leads;
|
3.66 ms (18.95%)
|
4 |
SELECT t0.id AS id_1, t0.code AS code_2, t0.db_host AS db_host_3, t0.db_port AS db_port_4, t0.db_name AS db_name_5, t0.db_user AS db_user_6, t0.db_password AS db_password_7, t0.db_charset AS db_charset_8, t0.company_id AS company_id_9, t0.json_data AS json_data_10 FROM tenant t0 WHERE t0.code = ? LIMIT 1
SELECT t0.id AS id_1, t0.code AS code_2, t0.db_host AS db_host_3, t0.db_port AS db_port_4, t0.db_name AS db_name_5, t0.db_user AS db_user_6, t0.db_password AS db_password_7, t0.db_charset AS db_charset_8, t0.company_id AS company_id_9, t0.json_data AS json_data_10 FROM tenant t0 WHERE t0.code = 'sos' LIMIT 1;
|
1.86 ms (9.64%)
|
3 |
SELECT t0.id AS id_1, t0.group_id AS group_id_2, t0.user_id AS user_id_3 FROM tenant_group_member t0 WHERE t0.user_id = ?
SELECT t0.id AS id_1, t0.group_id AS group_id_2, t0.user_id AS user_id_3 FROM tenant_group_member t0 WHERE t0.user_id = 40;
|
1.86 ms (9.62%)
|
1 |
SELECT t0.id AS id_1, t0.username AS username_2, t0.roles AS roles_3, t0.password AS password_4, t0.allowed AS allowed_5, t0.active AS active_6, t0.email AS email_7, t0.token AS token_8, t0.companies AS companies_9, t0.tenant_code AS tenant_code_10, t11.leadfieldsshow AS leadfieldsshow_12, t11.homepage_widgets AS homepage_widgets_13, t11.user_id AS user_id_14 FROM user t0 LEFT JOIN user_apps_settings t11 ON t11.user_id = t0.id WHERE t0.id = ?
SELECT t0.id AS id_1, t0.username AS username_2, t0.roles AS roles_3, t0.password AS password_4, t0.allowed AS allowed_5, t0.active AS active_6, t0.email AS email_7, t0.token AS token_8, t0.companies AS companies_9, t0.tenant_code AS tenant_code_10, t11.leadfieldsshow AS leadfieldsshow_12, t11.homepage_widgets AS homepage_widgets_13, t11.user_id AS user_id_14 FROM user t0 LEFT JOIN user_apps_settings t11 ON t11.user_id = t0.id WHERE t0.id = 40;
|
0.94 ms (4.87%)
|
2 |
SELECT DATABASE()
|
0.69 ms (3.58%)
|
1 |
SELECT COUNT(*) FROM leads WHERE id = ? AND deleted_at IS NULL
SELECT COUNT(*) FROM leads WHERE id = 44272 AND deleted_at IS NULL;
|
0.65 ms (3.39%)
|
1 |
SELECT 1 FROM leads_customfields WHERE category = ? AND field_key = ?
Parameters: [
"energy"
"responsavel_user_id"
]
SELECT 1 FROM leads_customfields WHERE category = 'energy' AND field_key = 'responsavel_user_id';
|
0.59 ms (3.07%)
|
1 |
SELECT id, category, custom_fields, name, nif, email, campanha, origem, data_limite, agendamento, id_origem_dados, id_tipo_inquerito, id_rgpd, estado_id, subestado_id, working_campaign_id, classification_id, is_closed
FROM leads
WHERE id = ?
SELECT id, category, custom_fields, name, nif, email, campanha, origem, data_limite, agendamento, id_origem_dados, id_tipo_inquerito, id_rgpd, estado_id, subestado_id, working_campaign_id, classification_id, is_closed
FROM leads
WHERE id = 44272;
|