GuitarSlayer
Programmer
Hi, I wonder if anyone has any advice they can give me on the following scenario:-
Firstly,I am using Visual Foxpro 9, and the task is that I am comparing two data files which have around 276,000 records in each, the dbfs are about 50 Mb each and the cdxs are 14 Mb each.
Table 2 will have latest uptodate data.
Table 1 will be the customers version.
To simplify things, I just scan table 2 and inside that scan try and locate current record in table 1, and update table 1 accordingly.
At the start of the process I have buffering turned on (buffermode 5) for table 1, I tableupdate at the end of the process not after every add, change or delete!
My problem is that the process is very slow, and yes I have checked the tags I am using and done a sys(3054) etc, etc.
(The process is so slow that I back out so I never get to Tableupdate stage!)
However, when I turn buffering off and write directly to the table, (same code) it sails thru! I'll give you the timings I am getting, with Buffering on it takes 2 hours just to process 33,000 recs out of 276,000 with buffering off it takes 36 minutes to do the lot! Huh! I am confused,
Firstly,I am using Visual Foxpro 9, and the task is that I am comparing two data files which have around 276,000 records in each, the dbfs are about 50 Mb each and the cdxs are 14 Mb each.
Table 2 will have latest uptodate data.
Table 1 will be the customers version.
To simplify things, I just scan table 2 and inside that scan try and locate current record in table 1, and update table 1 accordingly.
At the start of the process I have buffering turned on (buffermode 5) for table 1, I tableupdate at the end of the process not after every add, change or delete!
My problem is that the process is very slow, and yes I have checked the tags I am using and done a sys(3054) etc, etc.
(The process is so slow that I back out so I never get to Tableupdate stage!)
However, when I turn buffering off and write directly to the table, (same code) it sails thru! I'll give you the timings I am getting, with Buffering on it takes 2 hours just to process 33,000 recs out of 276,000 with buffering off it takes 36 minutes to do the lot! Huh! I am confused,