S
Simon Harvey
Hi everyone,
I have a question about how data is stored and persisted in a realworld
application. I am currrently making an email client, newsreader and RSS
Agregator application. I'm just using this as a practice application to
learn some new skills.
My question(s) concerns what I should do to store information. In
particular, the email messages, and news group posts etc.
To focus on the email that will need to be stored - I'm wondering about how
applications like Outlook would store this information.
I was wondering -
1. What data structure do you suppose I should use for internal storage? I
don't have a lot of knowledge about how effective the structures would be in
this sort of scenario.
2. What mechanism of persistence should I use? Again, I don't know too much
about this. I was thinking about binary serialisation. Or maybe outputting
the folders and email messages as XML?
Any advice about what I should do would be great.
One other thing I was wondering about was - how do you suppose an
application like Outlook loads its messages? I mean, do you think it loads
all the messages into memory at startup? That could be quite inefficient.
Perhaps it loads a key of some sort that identifies a message still stored
on the hard disk?
I'm just thinking how to get a balance between carrying out actions quickly,
and not using copius amounts of memory. Bearing in mind that some people can
have hundreds of messages in tens of folders.
I'd really appreciate some advice on the sort of approach I should take
Thanks Everyone!
Simon
I have a question about how data is stored and persisted in a realworld
application. I am currrently making an email client, newsreader and RSS
Agregator application. I'm just using this as a practice application to
learn some new skills.
My question(s) concerns what I should do to store information. In
particular, the email messages, and news group posts etc.
To focus on the email that will need to be stored - I'm wondering about how
applications like Outlook would store this information.
I was wondering -
1. What data structure do you suppose I should use for internal storage? I
don't have a lot of knowledge about how effective the structures would be in
this sort of scenario.
2. What mechanism of persistence should I use? Again, I don't know too much
about this. I was thinking about binary serialisation. Or maybe outputting
the folders and email messages as XML?
Any advice about what I should do would be great.
One other thing I was wondering about was - how do you suppose an
application like Outlook loads its messages? I mean, do you think it loads
all the messages into memory at startup? That could be quite inefficient.
Perhaps it loads a key of some sort that identifies a message still stored
on the hard disk?
I'm just thinking how to get a balance between carrying out actions quickly,
and not using copius amounts of memory. Bearing in mind that some people can
have hundreds of messages in tens of folders.
I'd really appreciate some advice on the sort of approach I should take
Thanks Everyone!
Simon