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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Perfomance Issue for Large Dataset using Postgres SCD component

Hi,

I am using Postgres SCD component to load data into my target dimension table using SCD2, but it is taking much time to load for larger data set. It took average 2 records per second for 1.5 million records, even target table had 0 records when process start.

Could you please help to explain what could be the reason?. 

Labels (2)
1 Solution

Accepted Solutions
vapukov
Master II
Master II

some percents of performance you can tune on database size - memory, indexes

 

but generally it always slow not depending is it PostgreSQL or MS SQL, same issue for insert/update - insert very fast, insert/update max 5 rows per second

 

try to look for process and do the same without using SCD components:

 

  • select all changed from last date (by any way - trigger, modifiedDT etc)
  • transfer all to target database into stage table
  • run 2 query - UPDATE with JOIN all old records (set isActive to False), INSERT all new records with isActive True

it would be faster overall 

View solution in original post

5 Replies
vapukov
Master II
Master II

some percents of performance you can tune on database size - memory, indexes

 

but generally it always slow not depending is it PostgreSQL or MS SQL, same issue for insert/update - insert very fast, insert/update max 5 rows per second

 

try to look for process and do the same without using SCD components:

 

  • select all changed from last date (by any way - trigger, modifiedDT etc)
  • transfer all to target database into stage table
  • run 2 query - UPDATE with JOIN all old records (set isActive to False), INSERT all new records with isActive True

it would be faster overall 

Rajesh_Reddy1
Contributor
Contributor

Hi,

 

Its better if you create SCD work flow job, instead of SCD components.

Anonymous
Not applicable
Author

Thank you so much 0683p000009MACn.png

Anonymous
Not applicable
Author

okk..
Thanks Rajesh 0683p000009MACn.png
Anonymous
Not applicable
Author

Thank you so much 0683p000009MACn.png