0.47 ms (32.52%)
1
SELECT t0 . id AS id_1 , t0 . email AS email_2 , t0 . roles AS roles_3 , t0 . onboarding_seen AS onboarding_seen_4 , t0 . password AS password_5 , t0 . nom AS nom_6 , t0 . prenoms AS prenoms_7 , t0 . contact AS contact_8 , t0 . profile_picture AS profile_picture_9 , t10 . id AS id_11 , t10 . identifiant AS identifiant_12 , t10 . civilite AS civilite_13 , t10 . nif AS nif_14 , t10 . rcs AS rcs_15 , t10 . stat AS stat_16 , t10 . date_inscription AS date_inscription_17 , t10 . code_parrain AS code_parrain_18 , t10 . status AS status_19 , t10 . points_fidelite AS points_fidelite_20 , t10 . points_parrainage AS points_parrainage_21 , t10 . user_id AS user_id_22 , t10 . type_client_id AS type_client_id_23 , t10 . type_parrain_id AS type_parrain_id_24 , t25 . id AS id_26 , t25 . adresssmallparcel AS adresssmallparcel_27 , t25 . adressregularparcel AS adressregularparcel_28 , t25 . nom_societe AS nom_societe_29 , t25 . connexion AS connexion_30 , t25 . id_user_id AS id_user_id_31 , t25 . localisation_id AS localisation_id_32 , t25 . type_id AS type_id_33 FROM user t0 LEFT JOIN client t10 ON t10 . user_id = t0 . id LEFT JOIN agent_chine t25 ON t25 . id_user_id = t0 . id WHERE t0 . id = ?
SELECT t0 . id AS id_1 , t0 . email AS email_2 , t0 . roles AS roles_3 , t0 . onboarding_seen AS onboarding_seen_4 , t0 . password AS password_5 , t0 . nom AS nom_6 , t0 . prenoms AS prenoms_7 , t0 . contact AS contact_8 , t0 . profile_picture AS profile_picture_9 , t10 . id AS id_11 , t10 . identifiant AS identifiant_12 , t10 . civilite AS civilite_13 , t10 . nif AS nif_14 , t10 . rcs AS rcs_15 , t10 . stat AS stat_16 , t10 . date_inscription AS date_inscription_17 , t10 . code_parrain AS code_parrain_18 , t10 . status AS status_19 , t10 . points_fidelite AS points_fidelite_20 , t10 . points_parrainage AS points_parrainage_21 , t10 . user_id AS user_id_22 , t10 . type_client_id AS type_client_id_23 , t10 . type_parrain_id AS type_parrain_id_24 , t25 . id AS id_26 , t25 . adresssmallparcel AS adresssmallparcel_27 , t25 . adressregularparcel AS adressregularparcel_28 , t25 . nom_societe AS nom_societe_29 , t25 . connexion AS connexion_30 , t25 . id_user_id AS id_user_id_31 , t25 . localisation_id AS localisation_id_32 , t25 . type_id AS type_id_33 FROM user t0 LEFT JOIN client t10 ON t10 . user_id = t0 . id LEFT JOIN agent_chine t25 ON t25 . id_user_id = t0 . id WHERE t0 . id = 371 ;
Copy
0.34 ms (23.64%)
1
SELECT DISTINCT id_0 FROM (SELECT DISTINCT id_0 , created_at_5 FROM (SELECT n0_ . id AS id_0 , n0_ . is_read AS is_read_1 , n1_ . id AS id_2 , n1_ . message AS message_3 , n1_ . message_en AS message_en_4 , n1_ . created_at AS created_at_5 , n1_ . title AS title_6 , n1_ . title_en AS title_en_7 FROM notification_user n0_ LEFT JOIN notification n1_ ON n0_ . notification_id = n1_ . id WHERE n0_ . user_id = ? AND n0_ . is_read = ? ) dctrn_result_inner ORDER BY created_at_5 DESC ) dctrn_result LIMIT 10
SELECT DISTINCT id_0 FROM (SELECT DISTINCT id_0 , created_at_5 FROM (SELECT n0_ . id AS id_0 , n0_ . is_read AS is_read_1 , n1_ . id AS id_2 , n1_ . message AS message_3 , n1_ . message_en AS message_en_4 , n1_ . created_at AS created_at_5 , n1_ . title AS title_6 , n1_ . title_en AS title_en_7 FROM notification_user n0_ LEFT JOIN notification n1_ ON n0_ . notification_id = n1_ . id WHERE n0_ . user_id = 371 AND n0_ . is_read = 0 ) dctrn_result_inner ORDER BY created_at_5 DESC ) dctrn_result LIMIT 10 ;
Copy
0.26 ms (17.72%)
1
SELECT COUNT (* ) AS dctrn_count FROM (SELECT DISTINCT id_0 FROM (SELECT n0_ . id AS id_0 , n0_ . is_read AS is_read_1 , n1_ . id AS id_2 , n1_ . message AS message_3 , n1_ . message_en AS message_en_4 , n1_ . created_at AS created_at_5 , n1_ . title AS title_6 , n1_ . title_en AS title_en_7 FROM notification_user n0_ LEFT JOIN notification n1_ ON n0_ . notification_id = n1_ . id WHERE n0_ . user_id = ? AND n0_ . is_read = ? ORDER BY n1_ . created_at DESC ) dctrn_result ) dctrn_table
SELECT COUNT (* ) AS dctrn_count FROM (SELECT DISTINCT id_0 FROM (SELECT n0_ . id AS id_0 , n0_ . is_read AS is_read_1 , n1_ . id AS id_2 , n1_ . message AS message_3 , n1_ . message_en AS message_en_4 , n1_ . created_at AS created_at_5 , n1_ . title AS title_6 , n1_ . title_en AS title_en_7 FROM notification_user n0_ LEFT JOIN notification n1_ ON n0_ . notification_id = n1_ . id WHERE n0_ . user_id = 371 AND n0_ . is_read = 0 ORDER BY n1_ . created_at DESC ) dctrn_result ) dctrn_table ;
Copy