> What is the max number of fields in a Progress table
The answer: approximately 6400.
http://knowledgebase.progress.com/articles/Article/000049586
"The Field map has the array for the initial value"
In fact the size of _Field-Map is a few times larger than the size of
template record (_File._Template).
I run the following code against sports db:
for each _File no-lock where _File._Field-Map ne ?:
display
_File._File-Name
_File._numfld
length(_File._Field-Map) / _File._numfld.
end.
The ration length(_File._Field-Map) to _File._numfld varies from 4.0 to 5.5.
The size of _File record can't exceed 32000 bytes.
Hence the size of _Field-Map should be less than 32000 bytes.
Hence the max number of the fields is less than 32000 / 5.
I wrote:
> But the "test" table with 5,000 fields also has a problem.
> The following code crashes the session:
> FIND FIRST test NO-LOCK NO-ERROR.
>
> "Progress Client has stopped working"
And dbanalys also failed with the error:
RECORD BLOCK SUMMARY
Internal error in printTableStats, errno 4. (11158)
The error has disappeared after deletion of the "test" table.
So probably the right answer to the question in the subject is "less than
5000".
From: "George Potemkin (peg)" <
gpot...@progress-tech.ru>
Sent: Saturday, February 28, 2015 2:30 AM
To: "Dmitri Levin" <
d_l...@hotmail.com>; <
d...@peg.com>
Subject: Re: What is the max number of fields in a Progress table