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!. 6 1408
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*******@disc ussions.microso ft.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!.
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*******@disc ussions.microso ft.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!.
.
You can use the Datasets .WriteXML("File Nameandpath") and
ReadXML("FileNa meAndPath") to do this. Once you have your datasets, you
won't ever know it didn't come from a 'Real' database.
"Mike O." <an*******@disc ussions.microso ft.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, 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*******@disc ussions.microso ft.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!.
.
i find the XmlSerializatio n classes you mentioned very useful for this kind
of thing. in addition, check out the System.IO.Isola tedStorage 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.
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******** ******@cpmsftng xa07.phx.gbl... i find the XmlSerializatio n classes you mentioned very useful for this
kind of thing. in addition, check out the System.IO.Isola tedStorage 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.
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!. . This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 = ;
values = "foo";
values = "bar";
values = "bundy";
|
by: John Cho |
last post by:
// CHO, JOHN
#include<iostream>
class fracpri{
int whole;
int numer;
int denom;
|
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 in python for very big files?
Initially, i thought of reading everything into an array from the file
and just get the last few elements (lines) but since it's a very big
file, don't think is efficient.
thanks
|
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 solution is to take an array with all entries '1' and iterate
over it in steps of n, setting the current pointer to '0'.
|
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 one-key-chord way to upload a single
file or a single site.
In Dreamweaver, you can hit "Control-Shift-U" to upload a single file to the
remote site you have configured. This is extremely handy when you're doing
quickie fixes and development, more...
| |
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 set
//fp is pre-defined
for(;!fp.eof();)
{
string linestr;
|
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 a single folder called 'All Files'
Do we spread them out and copy them to multiple folders like
Folder 000 - Copy files from 0 to 1000
Folder 001 - Copy files from 1000 to 2000
Folder 002 - Copy files from 2000 to 2999
|
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 is everyone can change it or only add critical
comments to the pages.
Everyone is invited to improve it. But before applying major changes,
please read these guidelines:
http://en.wikibooks.org/wiki/Optimizing_C%2B%2B/Guidelines_for_editors
|
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.
Let's name the update method as doUpdate and stl::map read methods as
getData and copyData.
Since stl::map is not thread-safe, we should do synchronization by
ourselves. A usable solution is to create a boost::mutex::scoped_lock
object in all above...
|
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 true?
regards,
...ab
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |