T
Tom_T
Recently in this group I read an interesting explanation of the relationship
between maximum file size, maximum record size and data page size. If I
understand correctly, a Jet 4 db can hold up to 2GB of data, meaning 524,288
data pages of 4,096 bytes each. In the example given recently, the maximum
possible record size was 1,177 bytes. Consequently each data page could
hold no more than 3 such records, implying a maximum number of records per
table of 1,572,864 (minus room needed for overhead) in that file.
I have an mdb file with one large table that currently contains about
340,000 records. The file is currently about 135 MB in size. If I am
figuring correctly, the maximum possible record size is 12,608 (though no
record comes anywhere near being that fully populated.) The file is working
fine for the moment but it will likely grow to contain about 550,000
records. This leads to my questions:
- Am I calculating my maximum possible record size correctly? I did so by
running the Documenter on the large table and summing the value of the
"Size" column. (One of the fields is a Memo field but it is rarely
populated.)
- Assuming 12,608 bytes is about right, does that mean each record at
maximum size would require a little over 3 data pages? Meaning the maximum
number of fully populated records I could store would be 524,288 / 4 =
131,072 records? (Which of course is much less than are actually stored
now.)
- If any given record in my file actually contains fewer than 4096 bytes of
data, will that record only require a single data page to store it, even
though its maximum possible size would require 4 pages?
- Is there a straightforward way to estimate the actual "average" size of my
records? Would it be reasonably accurate to simply export it all as text
and divide by the number of records? I'd like to determine if I am likely
to run into any limits (vis-a-vis the data page limits) as the size of my
mdb file grows.
I am running Access 2003 and my Jet version is 4.0.9511.0.
I know that I could forestall such problems by using a different back end
but for a variety of reasons I'd like to stick with my current setup until
this particular project ends.
Thanks!
Tom
between maximum file size, maximum record size and data page size. If I
understand correctly, a Jet 4 db can hold up to 2GB of data, meaning 524,288
data pages of 4,096 bytes each. In the example given recently, the maximum
possible record size was 1,177 bytes. Consequently each data page could
hold no more than 3 such records, implying a maximum number of records per
table of 1,572,864 (minus room needed for overhead) in that file.
I have an mdb file with one large table that currently contains about
340,000 records. The file is currently about 135 MB in size. If I am
figuring correctly, the maximum possible record size is 12,608 (though no
record comes anywhere near being that fully populated.) The file is working
fine for the moment but it will likely grow to contain about 550,000
records. This leads to my questions:
- Am I calculating my maximum possible record size correctly? I did so by
running the Documenter on the large table and summing the value of the
"Size" column. (One of the fields is a Memo field but it is rarely
populated.)
- Assuming 12,608 bytes is about right, does that mean each record at
maximum size would require a little over 3 data pages? Meaning the maximum
number of fully populated records I could store would be 524,288 / 4 =
131,072 records? (Which of course is much less than are actually stored
now.)
- If any given record in my file actually contains fewer than 4096 bytes of
data, will that record only require a single data page to store it, even
though its maximum possible size would require 4 pages?
- Is there a straightforward way to estimate the actual "average" size of my
records? Would it be reasonably accurate to simply export it all as text
and divide by the number of records? I'd like to determine if I am likely
to run into any limits (vis-a-vis the data page limits) as the size of my
mdb file grows.
I am running Access 2003 and my Jet version is 4.0.9511.0.
I know that I could forestall such problems by using a different back end
but for a variety of reasons I'd like to stick with my current setup until
this particular project ends.
Thanks!
Tom