5.41 ms (47.81%)
|
1 |
SELECT t0_.id AS id_0, t0_."startDate" AS startdate_1, t0_."endDate" AS enddate_2, t0_."daysRequested" AS daysrequested_3, t0_.status AS status_4, t0_."approvedAt" AS approvedat_5, t0_.comment AS comment_6, t0_."createdAt" AS createdat_7, t0_."updatedAt" AS updatedat_8, t1_.id AS id_9, t1_.email AS email_10, t1_."passwordHash" AS passwordhash_11, t1_."systemKey" AS systemkey_12, t1_.status AS status_13, t1_."forcePasswordChange" AS forcepasswordchange_14, t1_."lastLoginAt" AS lastloginat_15, t1_."failedLoginAttempts" AS failedloginattempts_16, t1_."firstName" AS firstname_17, t1_."lastName" AS lastname_18, t1_."avatarData" AS avatardata_19, t1_."createdAt" AS createdat_20, t1_."updatedAt" AS updatedat_21, t1_.locale AS locale_22, t2_.id AS id_23, t2_."employeeNumber" AS employeenumber_24, t2_.position AS position_25, t2_.department AS department_26, t2_."employmentDate" AS employmentdate_27, t2_."employmentStatus" AS employmentstatus_28, t2_."contractEndDate" AS contractenddate_29, t2_."contractType" AS contracttype_30, t2_."salaryGross" AS salarygross_31, t2_."workHoursPerWeek" AS workhoursperweek_32, t2_."annualLeaveLimit" AS annualleavelimit_33, t2_."hrmCanViewTeam" AS hrmcanviewteam_34, t2_."hrmCanApproveLeave" AS hrmcanapproveleave_35, t2_."hrmCanManageSick" AS hrmcanmanagesick_36, t2_."hrmCanUploadPayslip" AS hrmcanuploadpayslip_37, t2_."hrmCanManageLeaveTypes" AS hrmcanmanageleavetypes_38, t2_."hrmCanManageEmployees" AS hrmcanmanageemployees_39, t2_."hrmCanApproveTime" AS hrmcanapprovetime_40, t2_."hrmCanEditTime" AS hrmcanedittime_41, t2_."createdAt" AS createdat_42, t2_."updatedAt" AS updatedat_43, t3_.id AS id_44, t3_.name AS name_45, t3_."annualLimitDays" AS annuallimitdays_46, t3_."requiresApproval" AS requiresapproval_47, t3_."approverRoles" AS approverroles_48, t3_.color AS color_49, t3_."isActive" AS isactive_50, t3_."nameTranslations" AS nametranslations_51, t3_."createdAt" AS createdat_52, t3_."updatedAt" AS updatedat_53, t0_."userId" AS userid_54, t0_."leaveTypeId" AS leavetypeid_55, t0_."approvedBy" AS approvedby_56, t1_."roleId" AS roleid_57, t2_."userId" AS userid_58, t2_."managerId" AS managerid_59 FROM "CRM_Pro_HRM_LeaveRequests" t0_ LEFT JOIN "CRM_Pro_Users" t1_ ON t0_."userId" = t1_.id LEFT JOIN "CRM_Pro_EmployeeProfiles" t2_ ON t1_.id = t2_."userId" LEFT JOIN "CRM_Pro_HRM_LeaveTypes" t3_ ON t0_."leaveTypeId" = t3_.id ORDER BY t0_."startDate" DESC
SELECT
t0_.id AS id_0,
t0_."startDate" AS startdate_1,
t0_."endDate" AS enddate_2,
t0_."daysRequested" AS daysrequested_3,
t0_.status AS status_4,
t0_."approvedAt" AS approvedat_5,
t0_.comment AS comment_6,
t0_."createdAt" AS createdat_7,
t0_."updatedAt" AS updatedat_8,
t1_.id AS id_9,
t1_.email AS email_10,
t1_."passwordHash" AS passwordhash_11,
t1_."systemKey" AS systemkey_12,
t1_.status AS status_13,
t1_."forcePasswordChange" AS forcepasswordchange_14,
t1_."lastLoginAt" AS lastloginat_15,
t1_."failedLoginAttempts" AS failedloginattempts_16,
t1_."firstName" AS firstname_17,
t1_."lastName" AS lastname_18,
t1_."avatarData" AS avatardata_19,
t1_."createdAt" AS createdat_20,
t1_."updatedAt" AS updatedat_21,
t1_.locale AS locale_22,
t2_.id AS id_23,
t2_."employeeNumber" AS employeenumber_24,
t2_.position AS position_25,
t2_.department AS department_26,
t2_."employmentDate" AS employmentdate_27,
t2_."employmentStatus" AS employmentstatus_28,
t2_."contractEndDate" AS contractenddate_29,
t2_."contractType" AS contracttype_30,
t2_."salaryGross" AS salarygross_31,
t2_."workHoursPerWeek" AS workhoursperweek_32,
t2_."annualLeaveLimit" AS annualleavelimit_33,
t2_."hrmCanViewTeam" AS hrmcanviewteam_34,
t2_."hrmCanApproveLeave" AS hrmcanapproveleave_35,
t2_."hrmCanManageSick" AS hrmcanmanagesick_36,
t2_."hrmCanUploadPayslip" AS hrmcanuploadpayslip_37,
t2_."hrmCanManageLeaveTypes" AS hrmcanmanageleavetypes_38,
t2_."hrmCanManageEmployees" AS hrmcanmanageemployees_39,
t2_."hrmCanApproveTime" AS hrmcanapprovetime_40,
t2_."hrmCanEditTime" AS hrmcanedittime_41,
t2_."createdAt" AS createdat_42,
t2_."updatedAt" AS updatedat_43,
t3_.id AS id_44,
t3_.name AS name_45,
t3_."annualLimitDays" AS annuallimitdays_46,
t3_."requiresApproval" AS requiresapproval_47,
t3_."approverRoles" AS approverroles_48,
t3_.color AS color_49,
t3_."isActive" AS isactive_50,
t3_."nameTranslations" AS nametranslations_51,
t3_."createdAt" AS createdat_52,
t3_."updatedAt" AS updatedat_53,
t0_."userId" AS userid_54,
t0_."leaveTypeId" AS leavetypeid_55,
t0_."approvedBy" AS approvedby_56,
t1_."roleId" AS roleid_57,
t2_."userId" AS userid_58,
t2_."managerId" AS managerid_59
FROM
"CRM_Pro_HRM_LeaveRequests" t0_
LEFT JOIN "CRM_Pro_Users" t1_ ON t0_."userId" = t1_.id
LEFT JOIN "CRM_Pro_EmployeeProfiles" t2_ ON t1_.id = t2_."userId"
LEFT JOIN "CRM_Pro_HRM_LeaveTypes" t3_ ON t0_."leaveTypeId" = t3_.id
ORDER BY
t0_."startDate" DESC
SELECT t0_.id AS id_0, t0_."startDate" AS startdate_1, t0_."endDate" AS enddate_2, t0_."daysRequested" AS daysrequested_3, t0_.status AS status_4, t0_."approvedAt" AS approvedat_5, t0_.comment AS comment_6, t0_."createdAt" AS createdat_7, t0_."updatedAt" AS updatedat_8, t1_.id AS id_9, t1_.email AS email_10, t1_."passwordHash" AS passwordhash_11, t1_."systemKey" AS systemkey_12, t1_.status AS status_13, t1_."forcePasswordChange" AS forcepasswordchange_14, t1_."lastLoginAt" AS lastloginat_15, t1_."failedLoginAttempts" AS failedloginattempts_16, t1_."firstName" AS firstname_17, t1_."lastName" AS lastname_18, t1_."avatarData" AS avatardata_19, t1_."createdAt" AS createdat_20, t1_."updatedAt" AS updatedat_21, t1_.locale AS locale_22, t2_.id AS id_23, t2_."employeeNumber" AS employeenumber_24, t2_.position AS position_25, t2_.department AS department_26, t2_."employmentDate" AS employmentdate_27, t2_."employmentStatus" AS employmentstatus_28, t2_."contractEndDate" AS contractenddate_29, t2_."contractType" AS contracttype_30, t2_."salaryGross" AS salarygross_31, t2_."workHoursPerWeek" AS workhoursperweek_32, t2_."annualLeaveLimit" AS annualleavelimit_33, t2_."hrmCanViewTeam" AS hrmcanviewteam_34, t2_."hrmCanApproveLeave" AS hrmcanapproveleave_35, t2_."hrmCanManageSick" AS hrmcanmanagesick_36, t2_."hrmCanUploadPayslip" AS hrmcanuploadpayslip_37, t2_."hrmCanManageLeaveTypes" AS hrmcanmanageleavetypes_38, t2_."hrmCanManageEmployees" AS hrmcanmanageemployees_39, t2_."hrmCanApproveTime" AS hrmcanapprovetime_40, t2_."hrmCanEditTime" AS hrmcanedittime_41, t2_."createdAt" AS createdat_42, t2_."updatedAt" AS updatedat_43, t3_.id AS id_44, t3_.name AS name_45, t3_."annualLimitDays" AS annuallimitdays_46, t3_."requiresApproval" AS requiresapproval_47, t3_."approverRoles" AS approverroles_48, t3_.color AS color_49, t3_."isActive" AS isactive_50, t3_."nameTranslations" AS nametranslations_51, t3_."createdAt" AS createdat_52, t3_."updatedAt" AS updatedat_53, t0_."userId" AS userid_54, t0_."leaveTypeId" AS leavetypeid_55, t0_."approvedBy" AS approvedby_56, t1_."roleId" AS roleid_57, t2_."userId" AS userid_58, t2_."managerId" AS managerid_59 FROM "CRM_Pro_HRM_LeaveRequests" t0_ LEFT JOIN "CRM_Pro_Users" t1_ ON t0_."userId" = t1_.id LEFT JOIN "CRM_Pro_EmployeeProfiles" t2_ ON t1_.id = t2_."userId" LEFT JOIN "CRM_Pro_HRM_LeaveTypes" t3_ ON t0_."leaveTypeId" = t3_.id ORDER BY t0_."startDate" DESC;
|
4.22 ms (37.25%)
|
2 |
SELECT t0.id AS id_1, t0.email AS email_2, t0."passwordHash" AS passwordhash_3, t0."systemKey" AS systemkey_4, t0.status AS status_5, t0."forcePasswordChange" AS forcepasswordchange_6, t0."lastLoginAt" AS lastloginat_7, t0."failedLoginAttempts" AS failedloginattempts_8, t0."firstName" AS firstname_9, t0."lastName" AS lastname_10, t0."avatarData" AS avatardata_11, t0."createdAt" AS createdat_12, t0."updatedAt" AS updatedat_13, t0.locale AS locale_14, t0."roleId" AS roleid_15, t16.id AS id_17, t16."employeeNumber" AS employeenumber_18, t16.position AS position_19, t16.department AS department_20, t16."employmentDate" AS employmentdate_21, t16."employmentStatus" AS employmentstatus_22, t16."contractEndDate" AS contractenddate_23, t16."contractType" AS contracttype_24, t16."salaryGross" AS salarygross_25, t16."workHoursPerWeek" AS workhoursperweek_26, t16."annualLeaveLimit" AS annualleavelimit_27, t16."hrmCanViewTeam" AS hrmcanviewteam_28, t16."hrmCanApproveLeave" AS hrmcanapproveleave_29, t16."hrmCanManageSick" AS hrmcanmanagesick_30, t16."hrmCanUploadPayslip" AS hrmcanuploadpayslip_31, t16."hrmCanManageLeaveTypes" AS hrmcanmanageleavetypes_32, t16."hrmCanManageEmployees" AS hrmcanmanageemployees_33, t16."hrmCanApproveTime" AS hrmcanapprovetime_34, t16."hrmCanEditTime" AS hrmcanedittime_35, t16."createdAt" AS createdat_36, t16."updatedAt" AS updatedat_37, t16."userId" AS userid_38, t16."managerId" AS managerid_39 FROM "CRM_Pro_Users" t0 LEFT JOIN "CRM_Pro_EmployeeProfiles" t16 ON t16."userId" = t0.id WHERE t0.email = ? LIMIT 1
SELECT t0.id AS id_1, t0.email AS email_2, t0."passwordHash" AS passwordhash_3, t0."systemKey" AS systemkey_4, t0.status AS status_5, t0."forcePasswordChange" AS forcepasswordchange_6, t0."lastLoginAt" AS lastloginat_7, t0."failedLoginAttempts" AS failedloginattempts_8, t0."firstName" AS firstname_9, t0."lastName" AS lastname_10, t0."avatarData" AS avatardata_11, t0."createdAt" AS createdat_12, t0."updatedAt" AS updatedat_13, t0.locale AS locale_14, t0."roleId" AS roleid_15, t16.id AS id_17, t16."employeeNumber" AS employeenumber_18, t16.position AS position_19, t16.department AS department_20, t16."employmentDate" AS employmentdate_21, t16."employmentStatus" AS employmentstatus_22, t16."contractEndDate" AS contractenddate_23, t16."contractType" AS contracttype_24, t16."salaryGross" AS salarygross_25, t16."workHoursPerWeek" AS workhoursperweek_26, t16."annualLeaveLimit" AS annualleavelimit_27, t16."hrmCanViewTeam" AS hrmcanviewteam_28, t16."hrmCanApproveLeave" AS hrmcanapproveleave_29, t16."hrmCanManageSick" AS hrmcanmanagesick_30, t16."hrmCanUploadPayslip" AS hrmcanuploadpayslip_31, t16."hrmCanManageLeaveTypes" AS hrmcanmanageleavetypes_32, t16."hrmCanManageEmployees" AS hrmcanmanageemployees_33, t16."hrmCanApproveTime" AS hrmcanapprovetime_34, t16."hrmCanEditTime" AS hrmcanedittime_35, t16."createdAt" AS createdat_36, t16."updatedAt" AS updatedat_37, t16."userId" AS userid_38, t16."managerId" AS managerid_39 FROM "CRM_Pro_Users" t0 LEFT JOIN "CRM_Pro_EmployeeProfiles" t16 ON t16."userId" = t0.id WHERE t0.email = 'izab' LIMIT 1;
|