

Contributor II
2019-01-31
11:27 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
1,271 Views
8 Replies


Partner - Champion III
2019-01-31
11:35 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
1,262 Views


Master II
2019-01-31
11:38 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Below an option you can try
LOAD * inline [
account_count
5555.20];
Data:
LOAD *
FROM qvd
where exists (account_count );
LOAD * inline [
account_count
5555.20];
Data:
LOAD *
FROM qvd
where exists (account_count );
Learning never stops.
1,256 Views


Contributor II
2019-01-31
11:41 PM
Author
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
1,252 Views


Contributor II
2019-01-31
11:56 PM
Author
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
And in the case that information is text, what is better , example:
where AREA='HEALTH' OR where match(AREA, 'HEALTH').
What is more efficent
1,242 Views


Master II
2019-02-01
12:01 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
1,237 Views


Contributor II
2019-02-01
12:15 AM
Author
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
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
1,229 Views


Master II
2019-02-01
12:23 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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...
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.
1,224 Views


Partner - Champion III
2019-02-01
12:34 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
1,215 Views
