PC Review


Reply
Thread Tools Rate Thread

Best Approach to data storage in memory

 
 
Simon Whale
Guest
Posts: n/a
 
      18th Nov 2009
Hi,

using VB.NET i have the following design / implementation issue.

We're designing an insurance underwriting project, which i describe a bit in
english

For every insurance policy there could be an undetermined number of
properties to the policy (for example property investors etc).

my question is what would be the best way to store these in memory before
commiting them to the database while performing business logic.

My question is what would be best for editing entries? List(of t) or
datatable?

Many thanks for your help

Simon


 
Reply With Quote
 
 
 
 
Gregory A. Beamer
Guest
Posts: n/a
 
      18th Nov 2009
"Simon Whale" <(E-Mail Removed)> wrote in news:OO6kRmGaKHA.5300
@TK2MSFTNGP02.phx.gbl:

> My question is what would be best for editing entries? List(of t) or
> datatable?


The list is lighter weight, so, if it is prudent, I would head that
direction. But, there are factors that may make the list an issue.

For example, if the list is rarely edited before committing, then making
editing easier is not your primary concern. The primary concern is
reducing errors on saving and using the most maintainable code possible.
In this instance, the DataTable might be better, especially if you use
TableAdapters to commit data.

What you have to look at is the most common path combined with
maintainability. That is first run. Then, see if there are any other
issues , like performance, that makes you rethink your chosen path.

One more thing to think of. If you are using the built in CRUD
methdology with DataSets, you end up with a translation "layer" for your
entries to turn them into a List(of T) and back. This is one potential
source of error. I am not saying avoid this, but ask your motivation
before you introduce this extra "complexity" into the app.

Peace and Grace,
Greg

--
Vote for Miranda's Christmas Story
http://tinyurl.com/mirandabelieve

Twitter: @gbworld
Blog: http://gregorybeamer.spaces.live.com

*******************************************
| Think outside the box! |
*******************************************
 
Reply With Quote
 
Simon Whale
Guest
Posts: n/a
 
      18th Nov 2009
Thanks Gregory

it gives me some food for thought!

Simon

"Gregory A. Beamer" <(E-Mail Removed)> wrote in message
news:Xns9CC76E727E338gbworld@207.46.248.16...
> "Simon Whale" <(E-Mail Removed)> wrote in news:OO6kRmGaKHA.5300
> @TK2MSFTNGP02.phx.gbl:
>
>> My question is what would be best for editing entries? List(of t) or
>> datatable?

>
> The list is lighter weight, so, if it is prudent, I would head that
> direction. But, there are factors that may make the list an issue.
>
> For example, if the list is rarely edited before committing, then making
> editing easier is not your primary concern. The primary concern is
> reducing errors on saving and using the most maintainable code possible.
> In this instance, the DataTable might be better, especially if you use
> TableAdapters to commit data.
>
> What you have to look at is the most common path combined with
> maintainability. That is first run. Then, see if there are any other
> issues , like performance, that makes you rethink your chosen path.
>
> One more thing to think of. If you are using the built in CRUD
> methdology with DataSets, you end up with a translation "layer" for your
> entries to turn them into a List(of T) and back. This is one potential
> source of error. I am not saying avoid this, but ask your motivation
> before you introduce this extra "complexity" into the app.
>
> Peace and Grace,
> Greg
>
> --
> Vote for Miranda's Christmas Story
> http://tinyurl.com/mirandabelieve
>
> Twitter: @gbworld
> Blog: http://gregorybeamer.spaces.live.com
>
> *******************************************
> | Think outside the box! |
> *******************************************



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This 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
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
System Memory Storage Memory Adjust in CF 2.0 or OpenNetCF? Tomppa Microsoft Dot NET Compact Framework 6 13th Feb 2006 06:36 AM
main memory vs. storage memory on 128 meg samsung 1 730 ppc phone Kimberly Microsoft Dot NET Compact Framework 3 12th Aug 2005 07:47 PM
main memory vs storage memory on Samsung I 730 PPC phone Kimberly Microsoft Dot NET Compact Framework 1 11th Aug 2005 08:05 PM
main memory vs. storage memory on Samsung i730 Pocket PC Phone Kimberly Microsoft Dot NET Compact Framework 0 10th Aug 2005 09:13 PM
Lack of Memory with Lotus Approach Bill Chilcote Windows XP Performance 1 21st Feb 2004 12:59 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:05 AM.