Re: Using XML file as a data source - concurrency problem?

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Scott Allen (bitmask_at_[nospam)
Date: 07/29/04


Date: Thu, 29 Jul 2004 10:14:24 -0400

Hi Artur:

I don't have a good answer to your question, but I would suggest you
poke around the source code for dasBlog:
http://www.gotdotnet.com/Community/Workspaces/workspace.aspx?id=77a29128-4746-4473-b676-e4f1517a1907

dasBlog uses an XML file as a datasource and judging by it's
popularity on the web it is relatively scalable. I imagine with some
careful caching techniques and synchronization one can pull it off.

--
Scott
http://www.OdeToCode.com
On Thu, 29 Jul 2004 12:44:02 +0300, "Artur Sorszegi"
<artursorszegi@freemail.hu> wrote:
>Hi!
>
>There a lot of examples and talk about using an XML file as a datasource.
>Given a DataSet object, you can easily load data from the XML file, and
>display it in for example a DataGrid, or bind the data to other controls.
>You could even edit the data, and save it back using the DataSet objects'
>WriteXml method. But these resources fail to specify one thing, namely, if
>this causes any problems when multiple users use the application at the same
>time? I think you could use the expression concurrency problem for it, where
>two users start using the data at the same time (for example), and both make
>changes, first the first saves it, then the second. My feeling is, that this
>could overwrite changes by one user with changes of the other.
>
>Is this really so? Can it be prevented? In many cases, an XML file could
>server just as well as a database, but having this problem, and not even
>knowing if it works, make it not a so good solution.
>
>I assume, that page requests can be processed in parallel by ASP.NET (or
>else this would not be a problem).
>
>Anyone, any ideas?
>
>Thanks
>


Relevant Pages

  • Using XML file as a data source - concurrency problem?
    ... There a lot of examples and talk about using an XML file as a datasource. ... Given a DataSet object, you can easily load data from the XML file, and ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Access to the path is denied
    ... I know I'm showing my ignorance here, but in a different procedure, I am writing an xml file to disk using a DataSet object: ... The first explanation that comes to mind is that your ASPNET user has write rights to the path you use in the second "procedure", but not to the path you use in the first one. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: datagrid update command
    ... > -i updated the dataset with the str and i wrote the dataset to xml file ... > -i used the debugger to watch str and the same result here ... i have to update the datasource with the dataset every time i need ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Efficient way of querying datasets in c#
    ... I have an XML file which is 233MB in size. ... tables from an sql server database into a dataset object and then ... I load this XML file into a DataSet object ... database engine if you don't want to install SQL Server Express Edition. ...
    (microsoft.public.dotnet.languages.csharp)
  • XmlTextReader vs. XmlValidatingReader
    ... a validating reader, the DataSet object is Nothing. ... (and the XML file is valid for its embedded <schema>). ...
    (microsoft.public.dotnet.xml)