M
Morten Snedker
Hi folks,
Every 14 days a production file is read into a SQL-server. Each line
must be handled individually and managed by code.
The last file contains approx. 610,000 lines and gains +40,000 every
14 days.
Each line in the file is unique. Unfortunately, it is not possible for
the lines to have the same order from file to file, so I can't have
any marker.
Today I read the first ten characters of each line, since these make
up an ID telling me if this record already exist in my
SQL-server-table. But as you can imagine looking up +600,000 ID's
takes a tremendous amount of time, even though indexed.
So, what I was wondering: is it possible for me to compare the two
files in some fancy way? Any line in NewFile not in OldFile, write
these to a third file..?
Or perhaps something entirely different?
Regards /Snedker
Every 14 days a production file is read into a SQL-server. Each line
must be handled individually and managed by code.
The last file contains approx. 610,000 lines and gains +40,000 every
14 days.
Each line in the file is unique. Unfortunately, it is not possible for
the lines to have the same order from file to file, so I can't have
any marker.
Today I read the first ten characters of each line, since these make
up an ID telling me if this record already exist in my
SQL-server-table. But as you can imagine looking up +600,000 ID's
takes a tremendous amount of time, even though indexed.
So, what I was wondering: is it possible for me to compare the two
files in some fancy way? Any line in NewFile not in OldFile, write
these to a third file..?
Or perhaps something entirely different?
Regards /Snedker