BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 07-06-2007, 10:19 AM   #1 (permalink)
Knows Where the Search Button Is
 
Join Date: Jul 2007
Model: 7100T
PIN: N/A
Carrier: Hutch
Posts: 20
Post Thanks: 0
Thanked 0 Times in 0 Posts
Question Which API to prefer for storing data ?

Please Login to Remove!

Hi ,

I am new to Blackberry development world. I need to develop an enterprise application for blackberry.

I may need to use more data objects to store because this application will be mostly off-line based application.

Now I am confuse about which persistence API I can use , from development perspective as well as performance perspective.

1 > MIDP RMS

or

2 > Black Berry Persistence API.

Which can be beneficial ?

Please help.....

Regards ,
Amit
Offline  
Old 07-07-2007, 10:12 AM   #2 (permalink)
Talking BlackBerry Encyclopedia
 
Skipper_Joe's Avatar
 
Join Date: Jan 2007
Location: Kharkov, Ukraine
Model: 8300
Carrier: N/A
Posts: 237
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Black Berry Persistence API is much more powerful. MIDP RMS implementation has some limitations - for example, it allows only 64KB per RecordStore.

big plus for RMS is that it doesn't require code signing.
Offline  
Old 07-09-2007, 08:20 AM   #3 (permalink)
Knows Where the Search Button Is
 
Join Date: Jul 2007
Model: 7100T
PIN: N/A
Carrier: Hutch
Posts: 20
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks for Reply....

I made sample using Black Berry Persistence API. I seen that even for small change we need to load entire .PersistentObject in to memory.

We can not change single or specific object directly. So whether its impact on performance or not ?

I made application with MIDP RMS and I got Thin layer on that which provide a kind of OR Layer on RMS and we need to work with only Object.

Please guide me .......

Thanks in Advance..
Offline  
Old 07-09-2007, 03:03 PM   #4 (permalink)
Talking BlackBerry Encyclopedia
 
Skipper_Joe's Avatar
 
Join Date: Jan 2007
Location: Kharkov, Ukraine
Model: 8300
Carrier: N/A
Posts: 237
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

"Blackberry Developer Guide" contains description and samples for Persistence API.

regarding performance:
1) BB loads entire object to memory rather quickly since it is persistently stored in the same flash memory which is used for RAM.

2) you can have more than 1 PersistentStorage in your program, so you save and load some properties & objects separately. But I think that it doesn't make sense for performance.
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On





Copyright 2004-2014 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.