Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
nikhilgarg
Specialist II
Specialist II

what is optimised load and unoptimised load with example ??

Hey,

Can anyone tell me what is optimised load and unoptimised load with example ??

THanx.

1 Solution

Accepted Solutions
jagan
Luminary Alumni
Luminary Alumni

Hi,

This is the content in that thread

Hi,

QVD files can be read in two modes: standard (fast) and optimized (faster). The selected mode is determined automatically by the QlikView script engine. Optimized mode can be utilized only when all loaded fields are read without any transformations (formulas acting upon the fields), though the renaming of fields is allowed. A WHERE clause causing QlikView to unpack the records will also disable the optimized load.

1)F1 as NewField  -  Renaming allowed, so it is optimized load

Ex:

LOAD

Field1 AS Date,

Field2 AS Sales

FROM DataSource;

2)F1 * 2 as NewField – Transformation is not allowed, so it is non optimized load

Ex:

LOAD

Field1 AS Date,

Field2 AS Sales,

Discount,

Field2 - Discount AS NetSales   // This is a transformation

FROM DataSource;

3)1 as NewField – Cannot add a new field, so it is non optimized load

LOAD

Field1 AS Date,

Field2 AS Sales,

1 AS Flag   // Adding new field

FROM DataSource;

4)WHERE Exists(F1) –  We can use Single Field in Exists(), so it is an Optimized load

LOAD

Field1 AS Date,

Field2 AS Sales

FROM DataSource

WHERE Exists(Field1);

5)where exists(F1, Some Transformation) – We cannot use Multiple Field in Exists(), so it is a non Optimized load

LOAD

FirstName,

LastName,

Sales

FROM DataSource

WHERE Exists(Field1, FirstName& ' ' &LastName);

Hope this helps.

Regards,

Jagan.

View solution in original post

13 Replies
jagan
Luminary Alumni
Luminary Alumni

Hi,

Check this thread

Optimized and Non Optimized loading

Regards,

Jagan.

nikhilgarg
Specialist II
Specialist II
Author

HEy,

THe following message is coming when i click on the link:

Access to this place or content is restricted. If you think this is a mistake, please contact your administrator or the person who directed you here.

nikhilgarg
Specialist II
Specialist II
Author

Hey,

Thanks but i still did not get the idea what does this optimised and unoptimised deals with. Can you please explain breifly when load is optimised and when unoptimised ??

Thanks.

jagan
Luminary Alumni
Luminary Alumni

Hi,

This is the content in that thread

Hi,

QVD files can be read in two modes: standard (fast) and optimized (faster). The selected mode is determined automatically by the QlikView script engine. Optimized mode can be utilized only when all loaded fields are read without any transformations (formulas acting upon the fields), though the renaming of fields is allowed. A WHERE clause causing QlikView to unpack the records will also disable the optimized load.

1)F1 as NewField  -  Renaming allowed, so it is optimized load

Ex:

LOAD

Field1 AS Date,

Field2 AS Sales

FROM DataSource;

2)F1 * 2 as NewField – Transformation is not allowed, so it is non optimized load

Ex:

LOAD

Field1 AS Date,

Field2 AS Sales,

Discount,

Field2 - Discount AS NetSales   // This is a transformation

FROM DataSource;

3)1 as NewField – Cannot add a new field, so it is non optimized load

LOAD

Field1 AS Date,

Field2 AS Sales,

1 AS Flag   // Adding new field

FROM DataSource;

4)WHERE Exists(F1) –  We can use Single Field in Exists(), so it is an Optimized load

LOAD

Field1 AS Date,

Field2 AS Sales

FROM DataSource

WHERE Exists(Field1);

5)where exists(F1, Some Transformation) – We cannot use Multiple Field in Exists(), so it is a non Optimized load

LOAD

FirstName,

LastName,

Sales

FROM DataSource

WHERE Exists(Field1, FirstName& ' ' &LastName);

Hope this helps.

Regards,

Jagan.

nikhilgarg
Specialist II
Specialist II
Author

Hey,

Thanks. So should i assume that the cases that you have mentioned above are the only cases for Optimisation and Non optimisation ?? No other case except these will come under optimisation and non optimisation ??

THanks.

jagan
Luminary Alumni
Luminary Alumni

Hi,

I think Yes.

Regards,

Jagan.

nikhilgarg
Specialist II
Specialist II
Author

Hey,

Can you also tell em when will be qvd load in standard mode ??

jagan
Luminary Alumni
Luminary Alumni

Hi,

If you are doing any transformations like calculations then it is in Standard mode.

Column1 * Column2 AS NewColumn1

Regards,

Jagan.