PC Review


Reply
Thread Tools Rate Thread

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

 
 
Praxis Happenstance
Guest
Posts: n/a
 
      21st Jul 2004

Check me out:

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

Multithreaded XML Document for Read/Write Access
by John Bailo

 
Reply With Quote
 
 
 
 
General Protection Fault
Guest
Posts: n/a
 
      22nd Jul 2004
["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
 
Reply With Quote
 
Jeff Relf
Guest
Posts: n/a
 
      23rd Jul 2004
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.


 
Reply With Quote
 
Democritus Rising
Guest
Posts: n/a
 
      23rd Jul 2004
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
 
Reply With Quote
 
Democritus Rising
Guest
Posts: n/a
 
      23rd Jul 2004
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
 
Reply With Quote
 
Jeff Relf
Guest
Posts: n/a
 
      23rd Jul 2004
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 ! ?


 
Reply With Quote
 
General Protection Fault
Guest
Posts: n/a
 
      23rd Jul 2004
["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
 
Reply With Quote
 
Scrubbing Bubbles
Guest
Posts: n/a
 
      23rd Jul 2004
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
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to write/read a ntw folder from a clickonce C# application where the user does not have permission to write/read on/from it jpf.wk@uol.com.br Microsoft Dot NET 1 26th Jul 2007 04:01 PM
MS Access 2003 / 2007 Runtime - is read only or read/write possibl =?Utf-8?B?S0U=?= Microsoft Access 3 20th Mar 2007 06:13 PM
CSharpCorner Just Published My Article : Multithreaded XML Documentfor Read/Write Access Praxis Happenstance Microsoft C# .NET 0 21st Jul 2004 04:49 PM
Child Thread Can't Write To Session In Multithreaded ASP.NET =?Utf-8?B?Q2hyaXM=?= Microsoft ASP .NET 2 4th Jun 2004 10:14 PM
changing a Access Database from read only to read/write Hunter Microsoft Access Security 0 2nd Jan 2004 03:48 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:01 AM.