ralphtrent
Programmer
Hi
I am saving data from an inputfile in 2 different datatables. I need to search these datatables to see if the row I am going to add already exists. To improve performance, I created primary keys on these datatables. One primarykey is 4 columns, the other is 3. When I add the primarykey to the datatable, the code runs in 8 minutes, when I take it out, it runs in 17 seconds. Of course I lose the contraint requirments i need but any idea why this would happen?
Thanks,
RalphTrent
I am saving data from an inputfile in 2 different datatables. I need to search these datatables to see if the row I am going to add already exists. To improve performance, I created primary keys on these datatables. One primarykey is 4 columns, the other is 3. When I add the primarykey to the datatable, the code runs in 8 minutes, when I take it out, it runs in 17 seconds. Of course I lose the contraint requirments i need but any idea why this would happen?
Thanks,
RalphTrent