473,386 Members | 1,702 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,386 software developers and data experts.

CSharpCorner Just Published My Article : Multithreaded XML Documentfor Read/Write Access


Check me out:

http://www.c-sharpcorner.com/Code/20...adedXmlDoc.asp

Multithreaded XML Document for Read/Write Access
by John Bailo

Jul 21 '05 #1
7 2137
["Followup-To:" header set to comp.os.linux.advocacy.]
On Wed, 21 Jul 2004 08:26:58 -0700, Praxis Happenstance wrote:

Check me out:

http://www.c-sharpcorner.com/Code/20...adedXmlDoc.asp

Multithreaded XML Document for Read/Write Access
by John Bailo


That's utterly retarded. Why not just bind the XmlDocument to a DataSet
if you want it to work like a database?

The XML classes are already thread-safe, and so is the DataSet.

Just create a XSD schema, then a master DataSet from it. Whenever a doc
comes in, do a DataSet.Merge() to bring in the new record.

Why would they publish that?!?

--
FreeBSD 4.8-RELEASE i386
9:55AM up 123 days, 1:58, 1 user, load averages: 0.01, 0.02, 0.00
Jul 21 '05 #2
Hi Democritus Rising,

I think General Protection Fault is write about one thing,
C#'s routines for writing to ( unstructured ) XML fields
( e.g. DataSet.Merge() ? )
are Very probably threaded/mutexed already,

Hence, no need to check for collisions.
Jul 21 '05 #3
Jeff Relf wrote:
Hi Democritus Rising,

I think General Protection Fault is write about one thing,
C#'s routines for writing to ( unstructured ) XML fields
( e.g. DataSet.Merge() ? )
are Very probably threaded/mutexed already,

Hence, no need to check for collisions.


That is the stupidest conjecture I have ever heard.

--
incognito http://kentpsychedelic.blogspot.com/
fairgrounds http://home.earthlink.net/~jabailo/fairgounds/id6.html
storyteller http://home.earthlink.net/~jabailo/
latest article
http://www.c-sharpcorner.com/Code/20...adedXmlDoc.asp
Jul 21 '05 #4
Jeff Relf wrote:
Hi Democritus Rising,

I think General Protection Fault is write about one thing,
C#'s routines for writing to ( unstructured ) XML fields
( e.g. DataSet.Merge() ? )
are Very probably threaded/mutexed already,

Hence, no need to check for collisions.


PS -- My next feat is to:

Apply the Mutex at the Node level ( field level locking )

--
incognito http://kentpsychedelic.blogspot.com/
fairgrounds http://home.earthlink.net/~jabailo/fairgounds/id6.html
storyteller http://home.earthlink.net/~jabailo/
latest article
http://www.c-sharpcorner.com/Code/20...adedXmlDoc.asp
Jul 21 '05 #5
Hi Democritus Rising ( John B. ),

Re: My suggestion that C#'s routines for writing to XML fields
are probably threaded/mutexed already,
denecessitating collision checks.

You replied, <<
That is the stupidest conjecture I have ever heard. >>

John John John,

How could you ever know
if you fixed this ( imaginary ? ) collision problem
if you're not even sure whether it exists or not ! ?
Jul 21 '05 #6
["Followup-To:" header set to comp.os.linux.advocacy.]
On 23 Jul 2004 01:44:18 GMT, Jeff Relf wrote:
Hi Democritus Rising,

I think General Protection Fault is write about one thing,
C#'s routines for writing to ( unstructured ) XML fields
( e.g. DataSet.Merge() ? )
are Very probably threaded/mutexed already,

Hence, no need to check for collisions.


My MCSD in .NET says I'm definitely right.

--
FreeBSD 4.8-RELEASE i386
10:20AM up 124 days, 2:23, 1 user, load averages: 0.01, 0.02, 0.00
Jul 21 '05 #7
General Protection Fault wrote:
On Fri, 23 Jul 2004 03:59:18 GMT, Democritus Rising wrote:
General Protection Fault wrote:
On Thu, 22 Jul 2004 15:40:15 GMT, Democritus Rising wrote:


Data-base. A 'base' or storage of data. It does not specify the
structure
of topology of the data. A text file can be a database, for instance, a
comma delimited textfile /is/ a database.


A database needs a structure. You can't just keep adding crap with
different formats into a repository and call it a database.

And, an XML document does not meet the definition of a hierarchical
database. It's a hierarchy, but not an HDBMS.


Here is someone thinking along the same lines ( though he is approaching it
from extending the idea of XML as a database, not so much the
threaded/multiuse aspect ).
Creating an In-Memory Database Using XML and XPath -- Part 1
http://www.15seconds.com/issue/010409.htm

Part II
http://www.15seconds.com/issue/010410.htm

Some interesting stats on performance in Part II:

1) SQL Query - New Connection per Query 58.953 ms

2) 8) Branched XML - Keywords + IDs as Tags - Grouped Keywords 2.340
Jul 21 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Dan Kelley | last post by:
We have a multithreaded app that responds to events, and writes these events to a text file. This text file is used by an external system for further processing. We want to be able to write...
0
by: Praxis Happenstance | last post by:
Check me out: http://www.c-sharpcorner.com/Code/2004/July/MultithreadedXmlDoc.asp Multithreaded XML Document for Read/Write Access by John Bailo
16
by: John Rivers | last post by:
http://www.15seconds.com/Issue/030812.htm?voteresult=1 poor guy worked his heart out, just to make a page control and then they published it ha ha ha ha ha to "help" others
9
by: nicolas.michel.lava | last post by:
Hi there, I have some trouble using STL containers. I'm working on a multithreaded (pthread) application making heavy usage of STL containers. All accesses to containers are made in locked...
52
by: lovecreatesbeauty | last post by:
Why the C standard committee doesn't provide a standard implementation including the C compiler and library when the language standard document is published? C works on the abstract model of low...
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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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...
0
Oralloy
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.