Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Performance LOAD; SQL SELECT

Hello everyone,

Is there a difference in terms of performance in doing :

LOAD

A,

B;

SQL SELECT *

FROM ..

or

LOAD

A,

B;

SQL SELECT A,B

FROM...

Let's say the table has a lot of fields.

Thank you.

Have a good day.

Laura

6 Replies
jerrysvensson
Partner - Specialist II
Partner - Specialist II

Yes there could be a huge difference if your table has like 100 fields.

datanibbler
Champion
Champion

Hi Laura,

I'd say the performance should logically be bettter if, out of a lot of fields in the database_table, you SELECT only the fields that you need. The difference is probably not too much, though, as the preceding LOAD takes only those two fields ...

giakoum
Partner - Master II
Partner - Master II

especially if large text fields are included

jerrysvensson
Partner - Specialist II
Partner - Specialist II

I have seen data loads go from one hour (Select *) to five minutes (Select A,B). We had a table with 170 fields.

Anonymous
Not applicable
Author

Hi,

There will be huge difference between Getting  two fields and 100's of fields from database in terms of performance.

As SQL SELECT statement does Implicit LOAD.

Regards

Neetha

Anonymous
Not applicable
Author

additionally to existing answers there is another aspect

Select * requires a full table scan which takes time

select a,b might take use of an index which is much faster

in our case we dropped the load time from 1hour to 5 minutes (select * got 6 fields, later we used select with 2 fields)!