LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

labsql fetch data so slow...

I use access to store the data and labsql to fetch the data,the data is about 18,000 rows,it takes more than 20s to load the data to labview table,but by access it only take less than 2s to load the data.How can I fetch the data more quickly,my program is as below.
0 Kudos
Message 1 of 3
(2,752 Views)
Can you give the same details about your sub VI SQL execute.vi?
The problem is in the fetch data I'm sure.
If you use the fetch data In the VI palet tools, it's not the good one for a fetch all. Look in the example of labview. their is one that fetch all data much faster.
 
B.
Benoit Séguin
Software Designer
0 Kudos
Message 2 of 3
(2,630 Views)
Benoit, those VIs are part of LabSQL.

To poster: When you say "but by access it only take less than 2s to load the data" are you referring to looking at the data in Access itself? If so, this is comparing apples to oranges, and is meaningless. LabSQL uses ADO, and Acces is a file-based "database" (I use the term loosely since it's Access). So, it's not too surprising that it may be slow. Keep in mind that there are other factors involved, such as hard disk speed, and memory. 18000 rows is a fair bit. When I tried to get 18000 rows from SQL Server it took about 7 seconds.


0 Kudos
Message 3 of 3
(2,624 Views)