记录类型是否会影响使用kingswaysoft进行迁移的性能?

时间:2019-07-16 17:12:11

标签: ssis salesforce kingswaysoft

我正在执行大约10个任务的迁移。每个任务大约需要5分钟来处理5万至10万条记录,并将其迁移到Salesforce。特别是一项任务比其他任务花费更长的时间。

此任务是将数据迁移到仅具有5个自定义字段的简单自定义对象。唯一的区别是此目标对象启用了记录类型,而其他目标对象则未启用。

记录类型会影响性能吗?

来自ole db源的SQL。该查询需要1秒钟的时间来执行和检索55k行

SELECT 
    rh.RevisionHardwareID AS 'Machine_Information_Id__c',
    COALESCE(lmi.Name, lmz.Name) as 'License_Method__c',
    rhd.Servers AS 'Servers__c',
    rhd.Managers AS 'Managers__c',
    COALESCE(rhd.LicenseCount, rhs.CPUCount, rhz.MIPS, rhi.CPW) AS 'Quantity__c',
    CASE
        WHEN rhd.RevisionHardwareID IS NOT NULL THEN '0122J00000023maQAA'
        WHEN rhi.RevisionHardwareID IS NOT NULL THEN '0122J00000023mcQAA'
        WHEN rhz.RevisionHardwareID IS NOT NULL THEN '0122J00000023mdQAA'
        WHEN rhs.RevisionHardwareID IS NOT NULL THEN '0122J00000023mbQAA'
    END AS 'RecordTypeId'
FROM RevisionHardware rh
LEFT JOIN RevisionHardware_Desktop rhd ON rhd.RevisionHardwareID = rh.RevisionHardwareID
LEFT JOIN RevisionHardware_iSeries rhi ON rhi.RevisionHardwareID = rh.RevisionHardwareID
LEFT JOIN RevisionHardware_zSeries rhz ON rhz.RevisionHardwareID = rh.RevisionHardwareID
LEFT JOIN RevisionHardware_Server rhs ON rhs.RevisionHardwareID = rh.RevisionHardwareID
LEFT JOIN LicenseMethod lmi ON lmi.LicenseMethodID = rhi.LicenseMethod_ISeriesID
LEFT JOIN LicenseMethod lmz ON lmz.LicenseMethodID = rhz.LicenseMethod_ZSeriesID
WHERE CASE
        WHEN rhd.RevisionHardwareID IS NOT NULL THEN 'Desktop'
        WHEN rhi.RevisionHardwareID IS NOT NULL THEN 'iSeries'
        WHEN rhz.RevisionHardwareID IS NOT NULL THEN 'zSeries'
        WHEN rhs.RevisionHardwareID IS NOT NULL THEN 'Server'
    END IS NOT NULL

目标对象: enter image description here

1 个答案:

答案 0 :(得分:1)

我通过删除目标对象的所有记录类型进行了测试,并且性能提高了10倍。