> From: Phun Lee
> I see quite a few people using a "packed" and
> "unpacked" record structure system for databases.
The reason for packing is to save space. If you have Char myString[30]=
"ABC", obviously you only need to save 4 bytes ('A', 'B', 'C', '\0'), not
all 30 bytes. If you have a structure containing several strings per
record, and you have many records in your database, the space savings can be
tremendous.
> Is there a max record size, or is it only limited by
> the storage left on the device?
As reported here within the last few days, the max record size is 64K, minus
a few bytes for overhead (31, though possibly the exact number could
change).
> Are there a max number of records per database or is
> that again only limited by storage?
The OS uses a UInt16 for record indexes, so that does supply a limit.
(2^16-1)
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/