English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

From VB 6, using Access, I want to display, search, etc data from access by using datagrid or listview objects in Visual Basic 6. But it takes more than 60 sec. for 1 lack rows. So I need some trick to overcome this problem.

2007-02-05 04:27:58 · 2 answers · asked by Haroon Sayyad 1 in Computers & Internet Programming & Design

2 answers

Don't use listview for large datasets, its too slow.
Datagrid should work better if you use it in conjunction with ADODC and let it do the pagination for you (meaning loading page by page of data for display).
Minimize number of columns on datagrid (avoid "Select *") and avoid complex formatting. Do not use callbacks (any event function) for formatting of data.

So, a "clean" recordset display on the ADODC+datagrid with not too many columns and no formatting should work quite fast. If it does not (I doubt), then its a lot of programming.

2007-02-06 21:09:55 · answer #1 · answered by BataV 3 · 0 0

Don't bring back all of the data to the client at one time. Bring back just the minimum amount necessary to display in a list at one time. As the user scrolls through the list, fetch more rows from the db. I know that's a pain, but it's the only way to get acceptable performance.

The other thing you can do is to fetch some of the data and when that comes back start fetching the rest on a background thread so that it does not interfere with the user working in the foreground.

2007-02-05 12:42:22 · answer #2 · answered by Gene 3 · 0 0

fedest.com, questions and answers