Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

slowly intermatch

I have the following script

OCfinal:

LOAD [OC] ,DEBUT

      ,FIN ;

SQL SELECT distinct  [OC]

      ,[DATE DEBUT] AS [DEBUT]

      ,[DATE FIN] AS [FIN]

     

FROM [dbo].OCfinal

WHERE [Code Article] IS NOT NULL ;

Vente:

LOAD

.....

from vente

LEFT  JOIN(Vente)

IntervalMatch (datecol)

LOAD DISTINCT [DATE DEBUT]

      ,[DATE FIN]

resident      OCfinal

      ;

LEFT JOIN (Vente)

LOAD *

RESIDENT OCfinal;

How to optimize it ?

1 Solution

Accepted Solutions
sunny_talwar

Don't join the Interval Match table and the OCfinal table together and leave the synthetic key in there. Look at hic‌ comments on the following blog: IntervalMatch

Screenshot from the above blog:

Capture.PNG

View solution in original post

1 Reply
sunny_talwar

Don't join the Interval Match table and the OCfinal table together and leave the synthetic key in there. Look at hic‌ comments on the following blog: IntervalMatch

Screenshot from the above blog:

Capture.PNG