Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Developer
Posts: 21
Registered: ‎01-24-2010
My Device: Bold 9700
My Carrier: Orange

Persistent data store or SQL-lite?

I have been persisting objects to the device memory, and this has the advantage that I am persisting objects without having to write sql etc.

 

I am now wondering, as my application data is growing, whether I should use SQL-lite.

 

The object which need persisting are;

 

  • A Category object which contains a vector of references to other objects (news objects).

Users can add/remove categories and news objects.

 

Any thoughts about what I should use? Similar experiences?

Developer
Developer
Posts: 319
Registered: ‎07-20-2008
My Device: Not Specified

Re: Persistent data store or SQL-lite?

I've been considering the same thing but chose to stay with persistent objects for the following reasons...

 

The end-user didn't get anything out of the switch.

My development base is OS 4.5 and I didn't want to create a 5.0 specific build.

It would have been significant work to create a new persistence layer.

SDcard storage isn't an option for me because I do desktop sync and backup in some cases.

 

So, unless the migration will give you some additional functionality, I'd stick with persistent store.

 

Developer
Posts: 21
Registered: ‎01-24-2010
My Device: Bold 9700
My Carrier: Orange

Re: Persistent data store or SQL-lite?

Thanks for your reply, I think you are right on this one.

 

Tim

Developer
Posts: 562
Registered: ‎09-30-2009
My Device: Not Specified

Re: Persistent data store or SQL-lite?

It depends on the data you're wanting to store persistently, and how you're using it. What is the data you're working with and how are you using your data?