Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
cancel
Showing results for 
Search instead for 
Did you mean: 
juanpablo_carde
Contributor II
Contributor II

Where match or where?

Can someone tell me that it is more efficient and faster when loading data:

load * from qvd where account_count = '5555.20' or

load * from qvd where match (account_count, '5555.20').

Which is more efficient or better?

8 Replies
jonathandienst
Partner - Champion III
Partner - Champion III

If account_count is a numeric, then I would expect a numeric comparison to be faster as there is no need to convert to a number. Remove the quotes (where account_count = 5555.20). But whether there would be a meaningful difference - that would need to be tested.

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
pradosh_thakur
Master II
Master II

Below an option you can try

LOAD * inline [

account_count

5555.20];

Data:

LOAD *

FROM qvd

where exists (account_count );
Learning never stops.
juanpablo_carde
Contributor II
Contributor II
Author

Thank you for your response.

And in the case that information is text, what is better , example:

where AREA='HEALTH' OR  where match(AREA, 'HEALTH').

What is more efficent

juanpablo_carde
Contributor II
Contributor II
Author

Thank you for your response.

And in the case that information is text, what is better , example:

where AREA='HEALTH' OR where match(AREA, 'HEALTH').

What is more efficent
pradosh_thakur
Master II
Master II

Why not try where exist ? It will make your load optimized too. About the performance @jonathandienst is much more qualified than me to comment on.
Learning never stops.
juanpablo_carde
Contributor II
Contributor II
Author

Thank you for your response.
And in the case that information is text, what is better , example:
where AREA='HEALTH' OR
where match(AREA, 'HEALTH') or
where exists('HEALTH')

What is more efficent
pradosh_thakur
Master II
Master II

To my understanding Where exists(AREA).

Have a look at this old link
https://community.qlik.com/t5/QlikView-App-Development/optimize-and-non-optimze-load-in-qvd/td-p/311...
Learning never stops.
jonathandienst
Partner - Champion III
Partner - Champion III

Why don't you just test all three and see which performs better for your requirement?

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein