D
dougd
I will start by saying I am somewhat new to ADO.net, that said here
goes.
I have a dbase file with 450,000+ records, (400MB+ file size) I am
loading only the UniqueID field into a DataSet and I have 2 problems.
1. It takes about 45 seconds to load
2. It is consuming about 400MB of RAM at that point.
Is this kind of behaivor to be expected?
Sample code:
string connString = "Provider=VFPOLEDB.1;Data Source=c:\\btest\\";
connNav = new OleDbConnection(connString);
connNav.Open();
dsNav = new DataSet();
daNav = new OleDbDataAdapter("select id from test", connNav);
daNav.Fill(dsNav, "test"); <-- Takes about 45 seconds
The ID field is numeric. There are about 220 other fields in the table
(It was this way when I started here).
Any help would be appriciated.
Doug
goes.
I have a dbase file with 450,000+ records, (400MB+ file size) I am
loading only the UniqueID field into a DataSet and I have 2 problems.
1. It takes about 45 seconds to load
2. It is consuming about 400MB of RAM at that point.
Is this kind of behaivor to be expected?
Sample code:
string connString = "Provider=VFPOLEDB.1;Data Source=c:\\btest\\";
connNav = new OleDbConnection(connString);
connNav.Open();
dsNav = new DataSet();
daNav = new OleDbDataAdapter("select id from test", connNav);
daNav.Fill(dsNav, "test"); <-- Takes about 45 seconds
The ID field is numeric. There are about 220 other fields in the table
(It was this way when I started here).
Any help would be appriciated.
Doug