The short answer is that there isn't currently any API exposed to flush the DBCache. It does appear to get flushed when the application exits, but not before that point. If you're interested, I wrote about my experiences and findings here: <http://hazelware.luggle.com/archive.html?58>
-Jon ------------------------------------------- Jonathan Hays Palm OS Certified Developer http://hazelware.luggle.com ------------------------------------------- -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Jan Slodicka Sent: Wednesday, March 02, 2005 8:20 AM To: Palm Developer Forum Subject: Re: NVFS performace - purging DbCache Replying to myself... > It looks like the DmCloseDatabase writes back the DB header, although I That's probably not the right idea because closing the database happens always in exactly the same way, while the speed loss is apparent only in case when DBCache is full. It'll be rather that the T5 scans for free space in the DBCache and because it is full, it takes so long. Not a very good message for T5 users as every one sooner or later will fill up the DBCache. Isn't there any other way except a reset? The deeper I understand T5, the more I like T3. Jan Slodicka ----- Original Message ----- From: "Jan Slodicka" <[EMAIL PROTECTED]> To: "Palm Developer Forum" <[email protected]> Sent: Wednesday, March 02, 2005 2:57 PM Subject: NVFS performace - purging DbCache > Hello, > > there was enough discussion on NVFS so far, but (in my opinion) the > following behavior was not explained: > > First the summary: > After DBCache gets filled, the opening of the RAM databases dramatically > slows down. > > Actually the sequence of the operations that slows down is > DmOpenDBNoOverlay() with dmModeReadOnly > DmCloseDatabase() > (I eliminated all intermediate code for the test purposes so that it is sure > that exactly these commands are responsible for the effect.) > > It looks like the DmCloseDatabase writes back the DB header, although I > can't find any reason for it. > > Does anybody know a workaround? > > Best regards, > Jan Slodicka -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
