BlackBerry Forums Support Community

BlackBerry Forums Support Community (http://www.blackberryforums.com/index.php)
-   Developer Forum (http://www.blackberryforums.com/forumdisplay.php?f=15)
-   -   Persistent Data Storage (http://www.blackberryforums.com/showthread.php?t=184144)

rachnakhokhar 04-02-2009 04:34 AM

Persistent Data Storage
 
Hello Everyone,

I have few questions related to persistent data storage in blackberry, please share ur knowledge i really need it.

1.Firstly i want to know that using which data storage option is more efficient
(a) PersistentStore
(b) FileConnection
(c) RecordStore

2.Then i want to know if i use PersistentStore then how much of maximum memory is available for me to cache my data.

3.Then i want to know that what is the type of file (i.e. its extension) when i create a PersistentObject and where its actually created in Research In Motion, i mean i want to know the location of the file being created.

For ex:- if i create a record store in j2me then its extension is .rms and the recordstore gets created in the appdb folder of particular emulator.


Thanks in advance

Regards
Rachna Khokhar

pravin 04-02-2009 08:58 AM

As for my knowledge the order of efficiency -

a. Persistent - Up to your device flash memory
b. RMS - 1 RS 64KB, number of RS up to your device memory.
c. FileConnection - Device memory including card memory.

Do not know about file type extension.

JasonSamfield 04-05-2009 03:46 PM

so 1 record store is 64 kb and that is only limited by the device memory? so on the 9530 storm that would be the full 1 GB?

pravin 04-06-2009 06:24 AM

I think it will clear more
Livelink - Redirection

JasonSamfield 04-07-2009 11:59 AM

well, what exactly is considered "device memory" for the 9530 with respect to the record store? i guess that is my question...my understanding would be that it includes the 1 GB, but maybe i am wrong about that?

pravin 04-08-2009 04:20 AM

device memory means flash memory of device you can get it by
System.out.println("FreeFlash: "+(Memory.getFlashFree()/1024)+" KB");

For RAM
System.out.println("FreeRAM: "+(Memory.getRAMStats().getFree()/1024)+" KB");

JasonSamfield 04-08-2009 08:52 PM

i will try this when i make my advanced task manager with a process viewer for the BlackBerry

seems that many terms are getting tossed around...
  • flash memory
  • application device memory
  • SRAM/RAM memory
  • onboard storage

any clarification on the differences by you expert developers?

pravin 04-08-2009 11:59 PM

AFAIK SRAM/RAM used for holding run time data of application there are swapping also between flash and RAM.

Flash memoy used for holding the persistent data of application even it store all the application on device.

Let me correct if I am wrong.

CCK01 09-15-2009 03:01 PM

Is OK to allow Google Map to install at the persistent storage?


All times are GMT -5. The time now is 03:41 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.