BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 07-25-2008, 09:17 AM   #1
pa4o85
Thumbs Must Hurt
 
Join Date: May 2007
Location: Bulgaria
Model: none
PIN: N/A
Carrier: Mtel
Posts: 150
Default Persistent Store: the number of objects - to be more or to be less!!! What is better?

Please Login to Remove!

I have a persistent store model. Each persistent object (that corresponds to the specified key for the store) is a list of objects. Each object of that list has a field that is the key from the persistent store corresponding to the next list of objects. So that a tree structure is released. My question is...can i put in a persistent store object each element of the tree. In this case there will be more persistent store objects. Is it better (for development quality) to have more persistent store objects ? Thanks !!!
Offline  
Old 07-28-2008, 02:04 PM   #2
bemshaswing
Talking BlackBerry Encyclopedia
 
Join Date: Oct 2006
Model: 7103
Carrier: Verizon
Posts: 259
Default

if i understand your question properly (and forgive me if I don't) you're asking whether or not it's better to have multiple objects persistently stored seperately or one tree object stored by itself.

I think that aside from your own stylistic preference, the only difference I can think of is that, if you store multiple objects seperately, and need to make calls to all of them, you may take a battery hit as going to disk is costly. Having one object requires just one call, which is lest costly.
Offline  
Old 07-29-2008, 03:03 AM   #3
pa4o85
Thumbs Must Hurt
 
Join Date: May 2007
Location: Bulgaria
Model: none
PIN: N/A
Carrier: Mtel
Posts: 150
Default

You are almost there. It is not a tree but a list of objects. The main idea i get from your words is that the access to the persistent store costs the battery - I didn't know that. Thanks for the answer, I will have that in mind !!! Cheers !
Offline  
Closed Thread



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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


Vintage MAC Knife Japan 4.75

Vintage MAC Knife Japan 4.75" Folding Lock Blade Knife Chef Pocket Knife Utility

$224.99



Vintage MAC Tools UVEX Adjustable Safety Glasses Motorcycle Mechanic Lawnmower picture

Vintage MAC Tools UVEX Adjustable Safety Glasses Motorcycle Mechanic Lawnmower

$55.24



Vintage Punchodex

Vintage Punchodex "Big Mac" Hole Puncher Model P-209 - Multiple Punch Settings

$59.99



Vintage Mac Tools Model CF-70A Spark Gap Tool CF70A picture

Vintage Mac Tools Model CF-70A Spark Gap Tool CF70A

$16.00



Vintage Mac Warehouse  3.5” Floppy Disk Solar Powered Calculator Company Swag picture

Vintage Mac Warehouse 3.5” Floppy Disk Solar Powered Calculator Company Swag

$51.80



Vintage Mac Tools AW343 Series 1/2 Pneumatic Impact Driver  picture

Vintage Mac Tools AW343 Series 1/2 Pneumatic Impact Driver

$40.00







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