473,387 Members | 1,574 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Efficient non-db storage?

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
6 1383
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
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
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Will | last post by:
I have the following code: var rx = /{{(.+?)}}/i; var expr = 'each {{word}} wrapped in {{curly}} {{braces}} in this {{string}} needs to be {{replaced}} with a different {{value}}.'; var values...
9
by: John Cho | last post by:
// CHO, JOHN #include<iostream> class fracpri{ int whole; int numer; int denom;
12
by: s99999999s2003 | last post by:
hi I have a file which is very large eg over 200Mb , and i am going to use python to code a "tail" command to get the last few lines of the file. What is a good algorithm for this type of task...
15
by: Oswald Kluge | last post by:
Dear Reader, I'm trying to implement the following short algorithm: Given a number n, remove all the multiples of n from the list of non-negative numbers from 1 through a limit k. My...
4
by: | last post by:
Using VS.NET I am wondering what methods developers use to deploy ASP.NET website content to a remote server, either using FTP or network file copy. Ideally there would be a one-button or...
12
by: pedagani | last post by:
Dear comp.lang.c++, Could you make this snippet more efficient? As you see I have too many variables introduced in the code. //Read set of integers from a file on line by line basis in a STL...
1
by: =?Utf-8?B?UVNJRGV2ZWxvcGVy?= | last post by:
Using .NET 2.0 is it more efficient to copy files to a single folder versus spreading them across multiple folders. For instance if we have 100,000 files to be copied, Do we copy all of them to...
7
by: Carlo Milanesi | last post by:
Hello, I just completed writing an online book about developing efficient software using the C++ language. You can find it here: http://en.wikibooks.org/wiki/Optimizing_C%2B%2B It is a wiki, that...
82
by: Bill David | last post by:
SUBJECT: How to make this program more efficient? In my program, a thread will check update from server periodically and generate a stl::map for other part of this program to read data from....
25
by: Abubakar | last post by:
Hi, recently some C programmer told me that using fwrite/fopen functions are not efficient because the output that they do to the file is actually buffered and gets late in writing. Is that...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.