Sudipta Ghose wrote:
> I am trying to implement system find in my application. The 
> application uses a number of databases and I have to search more than 
> one database.  [...]  I am thinking of using a feature to store
> the current database ID. Is there any other work around for this?

You can use the upper few bits of the record number to indicate which of
your databases is current.  This technique is mentioned briefly in Neil
Rhodes' book here:

    http://www.palm.com/devzone/docs/pptdg/ch08.htm#P983_37405

> Has anybody else faced this problem?

Yes, my app searches 5 databases this way.  I use the upper 3 bits of
the record number to indicate which one (0 through 4) and the lower 13
bits for the actual record number.  Using 13 bits imposes a limit of no
more than 8,192 records, but that's not a problem in my case.

-slj-

Reply via email to