Check out the knowledge base at
http://oasis.palm.com/devzone/knowledgebasequery.cfm
All your questions are answered in this article:
http://oasis.palm.com/devzone/knowledgebasearticle.cfm?article_id=1145
At 2:46 PM -0700 5/12/99, Ion Popescu wrote:
>1. Does anyone know how fast is DmFindRecordByID()?
> Does it scan through the entire database to locate
> the record?
The short answer is it does a linear search, but the unique ID is stored in
the record index so it's basically just an array search.
> I have memo-pad like interface for my program.
> When the user taps on a title (conceptually a
> 'header' record) I want to use DmFindRecordByID
> to locate the data record. Will it be too slow?
> (when the DB grows).
How many records do you expect?
It's really easy to sort the database, so just go ahead and do that. Then
no matter how big it gets your lookups will still be O(log n), that is,
fast!
>2. When a user upgrades memory (using TRG cards for
> ex), does the new card appear as card-1?
No. The upgrade memory replaces the built in memory on card 0. So far,
only the simulator has two "cards"
--Bob