Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Share your agentic AI experience, learn from others, and earn a new badge: Put Agentic AI to Work
cancel
Showing results for 
Search instead for 
Did you mean: 
master_student
Creator III
Creator III

Reload task takes too much time

Hello people,

Hope this finds you well.

What do you do if you have a table that contains millions of rows and the reload of data takes more than 30 minutes?

Thanks

Labels (1)
10 Replies
sasiparupudi1
Master III
Master III

Use partial load.. below script appends the modified records to the previously loaded records

Set vTarget='MyTable';

Set vTargetFolder='C:\';

Set  dbPrefix ='dbo.';

//if not IsPartialReload() then

if IsNull(FileSize( '$(vTargetFolder)$(vTarget).qvd' )) then

$(vTarget):           

SQL Select *

    FROM  $(dbPrefix)YourTable(nolock) ;

else

    let LastExecTime=QvdCreateTime('$(vTargetFolder)$(vTarget).qvd');

    $(vTarget):       

    SQL Select *,

    UpdatedDate

    FROM  $(dbPrefix)YourTable 

    WHERE  UpdatedDate>'$(LastExecTime)';

    concatenate add load * from $(vTargetFolder)$(vTarget).qvd(qvd)

    where not Exists(YourPrimaryKey);

end if;      

STORE $(vTarget) INTO $(vTargetFolder)$(vTarget).qvd (qvd);