Topic: Database C++ or ??
Author: heberts@aol.com (Heberts)
Date: 1995/06/18 Raw View
File design C++ or ?
I wish to build a file with three indexes. The file is expected to grow
forever. First it will fit on a 3 1/2 disk, then it will have to have
200k, then it will have 1 gig, then it will have 10 gig. Where it stops
no one knows.
The application will most likely first be on windows.
Like a customer database of the world, the data is geographic. I thought
that I would allow the database to be split geografically as follows:
Each file (database and 3 index) will be named with a geographic name
composed of country 2 characters, 2 characters state, 2 characters city.
Example:
Start DBAF__BA.DBD for database starting with Afghanistan Baghian
DBAF__BA.IN1 for 1st index
DBAF__BA.IN1 for 2nd index
DBAF__BA.IN1 for 3rd index
When the file had to be slpit for any reason (index too big, not enough
disk space on disk) I would split the file and create a set of files
representing half way
into the data. This is like when a box is full of file, you just get
another box and split the files a-k and l-z.
I am new to PC development and would appreciate any discussion on this
subject.
Becaue I have C++ (Turbo C++) and am learning C++ for PC Development, I
guess that I would use C++ for this file/index setup. I need help, if you
have examples of any piece I would appreciate it. Would you use a
database interface?
Any comments welcome thanks.
Geoffrey Hebert
email Heberts@aol.com