Skip to main content
Announcements
July 15, NEW Customer Portal: Initial launch will improve how you submit Support Cases. IMPORTANT DETAILS
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

keep n join


when we use keep between two tables, the two tables will be kept as separate tables.

where as in join; they will be clubbed.

so, can we say that extra memory will be occupied in 1 st case and tat would degrade performance?

4 Replies
alexandros17
Partner - Champion III
Partner - Champion III

Grom Help: take a look to the NOTE:

The keep prefix is similar to the Join prefix. Just as the join prefix, it compares the loaded table with an existing named table or the last previously created data table.

But instead of joining the loaded table with an existing table, it has the effect of reducing one or both of the two tables before they are stored in QlikView, based on the intersection of table data. The comparison made is equivalent to a natural join made over all the common fields, i.e. the same way as in a corresponding join. However, the two tables are not joined and will be kept in QlikView as two separately named tables.

Note!
The explicit Join prefix in QlikView script language performs a full join of the two tables. The result is one table. In many cases such joins will result in very large tables. One of the main features of QlikView is its ability to make associations between multiple tables instead of joining them, which greatly reduces memory usage, increases processing speed and offers enormous flexibility. Explicit joins should therefore generally be avoided in QlikView scripts. The keep functionality was designed to reduce the number of cases where explicit joins needs to be used.
kushalthakral
Creator III
Creator III

Dear Prudhvi

Actually we use keep whenever u need to track data as it will create two separate tables while in case of join it will store data in a single table so it would be difficult to track down the data.

Regards

Kushal T

Gysbert_Wassenaar

No, that conclusion doesn't automatically follow from that. Perhaps this blog post helps: A Myth about the Number of Hops


talk is cheap, supply exceeds demand
tresesco
MVP
MVP

I like JohnW opinion here: http://community.qlik.com/message/13858#13858  in this regard.