Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Outer Join as Cartesian Product

I am applying Outer join to get Cartesian product on 2 tables (without any common key ). table 1 has 500000 rows and tale 2 has 5000 rows . it is showing "execution of script failed " error.

Is it any QV limitation /

Also what can be a better alternative ?

7 Replies
sunny_talwar

Might be memory (RAM) constraints?

UPDATE: Check memory performance while reloading the application

Peter_Cammaert
Partner - Champion III
Partner - Champion III

An alternative to do what?

Colin-Albert

Do you really need a Cartesian join between these tables  500,000 x 5,000 = 2,500,000,000 rows!

Hope you've got plenty of RAM!

Perhaps it would be better to explain what you are trying to achieve. A Cartesian join is rarely the correct answer.

swuehl
MVP
MVP

You can also try running your script with a limited amount of records (e.g. using FIRST) just to check if there is any other problem with your script.

You can then also consider not JOINing the full tables, but creating a link table made by a cartesian JOIN of the two primary keys of your two tables.

Not sure if this will resolve your issue, since I have no clue what you want to achieve at the end.

Gysbert_Wassenaar

Also what can be a better alternative ?

Not trying it in the first place.

Why do you think you need to create a 2.5 billion row table?


talk is cheap, supply exceeds demand
Not applicable
Author

Thanks all !!...Yes it was a business requirement to process that much data. Later on we limited the data by applying conditions on that  and it worked.

Colin-Albert

Surely there must be a better way to get your results without using a Cartesian join.

Perhaps you should review your data model.

Perfect Your QlikView Data Model

Best Practices for Data Modelling