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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Loading tables "row by row" works very slowly. How to improve performance?

Hi!

Please look  the mock-up :

for i = 1 to 10000

//some calculations...

...

//store result:

  Table1:

  load ... as field1, ... as field2, ... ; //exactly one record

next

//now resulting table have 10000 rows

When I load rows "step by step" and a significant number of loop iterations - it takes a lot of time.

Is it possible to improve performance?

Thanks in advance,

Oleg

4 Replies
Anonymous
Not applicable
Author

Hi Oleg,

Do you have a row identifier in the underlying table?

Antoine

swuehl
MVP
MVP

You can create a loop in your LOAD statement itself, using WHILE or AUTOGENERATE, then use ITERNO() resp. RECNO() as index for your calculations instead of i and perform the calculations within the LOAD.

Here are some basic example for calendar calculations:

http://community.qlik.com/blogs/qlikviewdesignblog/2012/10/16/the-master-calendar

Not applicable
Author

Hi, Antoine!

Yes, I have a row ID

Anonymous
Not applicable
Author

Is its structure sequential?