Discussion Locked

FoxPro 2.6 (DOS) file size problem

0 helpful
12 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
Using Foxpro 2.6 (DOS), we are encountering a file access error that we believe is connected to the size of one of our tables (1.1 gig - exceeds the foxpro limit). It is part of a legacy system that has 19 tables, many with multiple indexes (.idx's, not .cdx's). The other tables are each under 100mb (many under 10mb), so I don't believe that they are causing the problem. The error does not crash the system, but does significantly slow down access to records - actually pausing the program for up to 5 minutes at a time, while the words "Record not available? Please Wait" scroll in a red box at the top of the screen. Reducing the size of the file has proven to be very difficult, if not impossible. How can we deal with this very large table without the file access delays?

12 replies

by donq

Wow - it sounds as though you MAY?? have a real problem. Since you are using such ole legacy data I would suspect your 1.1 gig file is a huge "flat-file" (I would hope it could be broken down to related subsets based on subject specific collections, time specific collections, and/or specific collections??? How many records? How many related fields per Table, etc. A series of QAccess "Make Table" queries could produce managable subsets without destroying the master (if u have the disk space). Really - a 1.1 gig normalized table??? EVERY time I've worked with legacy data I have found it presented as a fragmented set of data in flat-file format I had to normalize BEFORE anything helped. You avoided that subject, but hay - atleast you have indexes? Let me know a little about your database normalizing and/ot data modeling knowledge so I can better helo you.

Thanks and good luck,

Don Quigg at databyte@mindspring.com

by capryor

Since the existing system is very complicated (with a utility program that tracks transactions, migrates data, and imports data, just to name a few functions), we aren't able to make many changes to the structure. We have, however, been able to reduce the size of the table to under 1 gig, and the errors have stopped. Microsoft's tech pages do not give any info about how to prevent the errors, just that they occur on files over 1 gig.

by artnweke

Migrate your application to VFP (visaul foxpro)or you can move the records that you do not need all the time to another table if you want to stay with FoxPro 2.6.

by capryor

Since the existing system is very complicated (with a utility program that tracks transactions, migrates data, and imports data, just to name a few functions), we aren't able to make many changes to the structure. We have, however, been able to reduce the size of the table to under 1 gig, and the errors have stopped. Microsoft's tech pages do not give any info about how to prevent the errors, just that they occur on files over 1 gig.

by cuban_titanic

The other thing you can do is create temp.dbf coping from the master table (the one with 1 Gb) the information you need to see or print. Example: You need all the users in florida:
use <1GB.dbf>
copy to tmp.dbf all for state='Fl'
use tmp.dbf
...

In this way you will have a small table and your program will run faster.

by capryor

Since the existing system is very complicated (with a utility program that tracks transactions, migrates data, and imports data, just to name a few functions), we aren't able to make many changes to the structure. We have, however, been able toreduce the size of the table to under 1 gig, and the errors have stopped. Microsoft's tech pages do not give any info about how to prevent the errors, just that they occur on files over 1 gig.

by Member 27647931

The first thing I would check is to make sure that no other program is using either the main table or one of the indecies in a non shared mode.

Next, is the record being accessed locked by another program ( as in an update mode )?

Next, when was the last time the index files were rebuilt ? This will not stop the record not available message but may improve the search process.

by capryor

It is all being shared correctly, and we index/pack at least twice weekly.

Since the existing system is very complicated (with a utility program that tracks transactions, migrates data, and imports data, just to name a few functions), we aren't able to make many changes to the structure. We have, however, been able to reduce the size of the table to under 1 gig, and the errors have stopped. Microsoft's tech pages do not give any info about how to prevent the errors, just that they occur onfiles over 1 gig.

by for_serge

Hi,

As I understand, you run your FoxPro application under DOS (i.e. 16-bit environment). Try to run your application in 32-bit environment (i.e. under Win9x or WinNT). In this case you don't need to reimplement application or redesign database, but can use 32-bit file access.

Serge.

by capryor

Since the existing system is very complicated (with a utility program that tracks transactions, migrates data, and imports data, just to name a few functions), we aren't able to make many changes to the structure. We have, however, been able to reduce the size of the table to under 1 gig, and the errors have stopped. Microsoft's tech pages do not give any info about how to prevent the errors, just that they occur on files over 1 gig.

This discussion is closed to new replies.