By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,995 Members | 1,241 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,995 IT Pros & Developers. It's quick & easy.

Efficient non-db storage?

P: n/a
What's the most efficient way to store small messages
(similar in size to a short email) on the client without
using a database?

I need to be able to store thousands possibly. I was
thinking of C# classes serialized to XML? How efficient
would this be and what other alternatives are there?

Thanks in advance!.
Jul 21 '05 #1
Share this Question
Share on Google+
6 Replies


P: n/a
Efficient in what way? Data storage size, insert/update performace, random
access performance, simplicity of programming, etc.

Saving XML data to and from ADO would be simple and flexable.

Inserting the reords to TAB Delimited format would conserve the most disk
space and can be bulk copied to SQL Server in the least amount of time.

"Mike O." <an*******@discussions.microsoft.com> wrote in message
news:06****************************@phx.gbl...
What's the most efficient way to store small messages
(similar in size to a short email) on the client without
using a database?

I need to be able to store thousands possibly. I was
thinking of C# classes serialized to XML? How efficient
would this be and what other alternatives are there?

Thanks in advance!.

Jul 21 '05 #2

P: n/a
My primary concern is efficient reading speeds and
sorting. Data storage size is also a concern, but not at
the cost of speed.

I do not plan to attach this to any sort of database, so
importing ease isn't a concern.

Do you still think ADO/XML is the right solution?
-----Original Message-----
Efficient in what way? Data storage size, insert/update performace, randomaccess performance, simplicity of programming, etc.

Saving XML data to and from ADO would be simple and flexable.
Inserting the reords to TAB Delimited format would conserve the most diskspace and can be bulk copied to SQL Server in the least amount of time.
"Mike O." <an*******@discussions.microsoft.com> wrote in messagenews:06****************************@phx.gbl...
What's the most efficient way to store small messages
(similar in size to a short email) on the client without
using a database?

I need to be able to store thousands possibly. I was
thinking of C# classes serialized to XML? How efficient
would this be and what other alternatives are there?

Thanks in advance!.

.

Jul 21 '05 #3

P: n/a
You can use the Datasets .WriteXML("FileNameandpath") and
ReadXML("FileNameAndPath") to do this. Once you have your datasets, you
won't ever know it didn't come from a 'Real' database.
"Mike O." <an*******@discussions.microsoft.com> wrote in message
news:0d****************************@phx.gbl...
My primary concern is efficient reading speeds and
sorting. Data storage size is also a concern, but not at
the cost of speed.

I do not plan to attach this to any sort of database, so
importing ease isn't a concern.

Do you still think ADO/XML is the right solution?
-----Original Message-----
Efficient in what way? Data storage size, insert/update

performace, random
access performance, simplicity of programming, etc.

Saving XML data to and from ADO would be simple and

flexable.

Inserting the reords to TAB Delimited format would

conserve the most disk
space and can be bulk copied to SQL Server in the least

amount of time.

"Mike O." <an*******@discussions.microsoft.com> wrote in

message
news:06****************************@phx.gbl...
What's the most efficient way to store small messages
(similar in size to a short email) on the client without
using a database?

I need to be able to store thousands possibly. I was
thinking of C# classes serialized to XML? How efficient
would this be and what other alternatives are there?

Thanks in advance!.

.

Jul 21 '05 #4

P: n/a
i find the XmlSerialization classes you mentioned very useful for this kind
of thing. in addition, check out the System.IO.IsolatedStorage classes if
you're interested in 'wrapping up' your data with versioning info,
security, etc.

let me know if you have any questions about using these.

jeff.

--

This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm

Note: For the benefit of the community-at-large, all responses to this
message are best directed to the newsgroup/thread from which they
originated.

Jul 21 '05 #5

P: n/a
Serialization could definitely work. Binary serialization should be more
efficient than XML serialization in terms of both file size and speed.
"Jeff Callahan" <Je*****@online.microsoft.com> wrote in message
news:S0**************@cpmsftngxa07.phx.gbl...
i find the XmlSerialization classes you mentioned very useful for this kind of thing. in addition, check out the System.IO.IsolatedStorage classes if
you're interested in 'wrapping up' your data with versioning info,
security, etc.

let me know if you have any questions about using these.

jeff.

--

This posting is provided "AS IS" with no warranties, and confers no rights. Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm

Note: For the benefit of the community-at-large, all responses to this
message are best directed to the newsgroup/thread from which they
originated.

Jul 21 '05 #6

P: n/a
Thanks everyone for all your help!!!
-----Original Message-----
What's the most efficient way to store small messages
(similar in size to a short email) on the client without
using a database?

I need to be able to store thousands possibly. I was
thinking of C# classes serialized to XML? How efficient
would this be and what other alternatives are there?

Thanks in advance!.
.

Jul 21 '05 #7

This discussion thread is closed

Replies have been disabled for this discussion.