Skip to main content
Announcements
UPGRADE ADVISORY for Qlik Replicate 2024.5: Read More
cancel
Showing results for 
Search instead for 
Did you mean: 
zacker20
Contributor III
Contributor III

Source database restores -- how does Qlik replicate handle

We are running SQL Server (MS-CDC) and our company does a database restore from Production to our TEST environment every week or so.   We are pulling the TEST databases as a source to our lower data warehouse environments using LogStream. 

When the restores happen, Replicate breaks the change processing and cannot pick up the CDC tables.   Is there anyway around RELOADING all the tasks on the server?   This takes an incredibly long time and is an inconvenience for our developers. 

Labels (1)
7 Replies
john_wang
Support
Support

Hello @zacker20 ,

Thanks for contacting Qlik Support.

I did not understand the question well... Do you mean you have many tasks on a Replicate Server, after the TEST database (acts as source database for these tasks) restores, you want to RELOAD (perform both Full Load + CDC) startup on all these tasks, is that right?

If yes, then we may do that by script file. Let us know the details.

Regards,

John.

Help users find answers! Do not forget to mark a solution that worked for you! If already marked, give it a thumbs up!
zacker20
Contributor III
Contributor III
Author

Hey John,
No I want to see if we can avoid doing a full reload. The full reloads take a long time - leaving our lower environments down until they complete.

We have two tasks with over 10 billion records total between the two of them — reloading these tasks can take days.

Can Qlik pick up after a restore of a db?
john_wang
Support
Support

Hello @zacker20 ,

Thanks for the clarification.

From my understanding, you need startup tasks by CDC only run options without Full Load - because we assume the history rows were replicated from source to target already, we just want to catch up the CDC part after each time restore.  The best option is resume task by timestamp

      john_wang_2-1687225164078.png

      john_wang_0-1687224443058.png

Hope this helps.

Regards,

John.

 

Help users find answers! Do not forget to mark a solution that worked for you! If already marked, give it a thumbs up!
zacker20
Contributor III
Contributor III
Author

No the target is not restored. Only the source db is restored.
john_wang
Support
Support

Hi @zacker20 ,

Yes, we are talking about the source db restores. Let me know if you have any concerns.

Regards,

John.

Help users find answers! Do not forget to mark a solution that worked for you! If already marked, give it a thumbs up!
zacker20
Contributor III
Contributor III
Author

So you’re saying the load from date/time would work? How would that work with the db being restored with a db from production? Records that may have been changed in the past in the test environment would still remain in our Qlik environment right? Records could be missing?
zacker20
Contributor III
Contributor III
Author

When we tried to do this load from date/time - we got a ton of apply exception errors as time went on.  UPDATE statements would have 0 rows affected