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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Recommendation of hierarchy data design

Hi, I have a requirement wherein I have a table called userparent.This table has user and his immediate parent. This table I use to derive all the children , grandchildren , great grand children etc for every user using recursive sql in SQL Server.

 

Now I want to migrate this data to postgres.


So, should I do the recursion part however I am doing(using SQL) and migrate the data to postgres OR should I do the recursion using talend components , if Yes, any ideas on how to do it?

 

Thanks

 

Labels (2)
3 Replies
Jesperrekuh
Specialist
Specialist

No, dont do it in Talend...
Definitely in your database it has some really nice functions to execute this kind of tasks/query ...
Morpheus
Contributor III
Contributor III

I agree with @Dijke. Check out the below link for an example use of psql recursive option.

http://www.postgresqltutorial.com/postgresql-recursive-query/

Anonymous
Not applicable
Author

Hi,

 

     If you are doing in Talend, it means you are bringing a larger data set from source to Talend for processing. This means more IO from source, more fetch time, temp space allocation in Talend during recursion etc. 

 

     Ideally you should bring the most compact result set from source DB area after processing. It will make sure that the processing time of the later stages in Talend will be much less compared to fetching the entire source result set to Talend.

 

      If the source is not having enough data processing capability (slightly different scenario) and is pumping data at a higher rate, then the ideal way to process them will be by using Talend Bigdata jobs compared to Talend Standard jobs.

 

Warm Regards,

 

Nikhil Thampi