Hi!
I have an Access database with a simple lookup table
in it. The structure looks like this (about 13,000 rows):
field1,field2
714551,949551
714312,909312
714313,909313
714314,909314
714315,909315
Basically I do a lookup on field1
to get field2.
Is there a way to load this data
into memory and do the lookups
in memory versus doing the lookups
against an Access database. It
seems to me that the disk access
against a database file is much more
time intensive than doing it in memory.
Would I bring this data into 2 big
arrays where Field1 is in Array1 and
Field2 is in Array2. An array search
is basically sequential, correct? So,
if I have 10,000 elements in the array
I would potentially have to look at
10,000 elements to find that last lookup
value. This is unlike a database that offers
indexing.
I guess, which is fastest?
a. Database file with indexes accessed via a file system
b. Data loaded into an array doing a sequential search
c. Or, is there some other way to do it in memory?
Any ideas on this subject would be highly appreciated.
Thanks in advance.
Scott

I have an Access database with a simple lookup table
in it. The structure looks like this (about 13,000 rows):
field1,field2
714551,949551
714312,909312
714313,909313
714314,909314
714315,909315
Basically I do a lookup on field1
to get field2.
Is there a way to load this data
into memory and do the lookups
in memory versus doing the lookups
against an Access database. It
seems to me that the disk access
against a database file is much more
time intensive than doing it in memory.
Would I bring this data into 2 big
arrays where Field1 is in Array1 and
Field2 is in Array2. An array search
is basically sequential, correct? So,
if I have 10,000 elements in the array
I would potentially have to look at
10,000 elements to find that last lookup
value. This is unlike a database that offers
indexing.
I guess, which is fastest?
a. Database file with indexes accessed via a file system
b. Data loaded into an array doing a sequential search
c. Or, is there some other way to do it in memory?
Any ideas on this subject would be highly appreciated.
Thanks in advance.
Scott

Comment