I have an ASP .NET website that queries an xml file using LINQ to construct some pages. I'm considering using Access to do this since some of the queries are becoming quite complex.
a. Will Access give me the performance boost I'm seeking?
b. Will it make code easier to maintain?
c. Are there any caveats to watch out for?
XMLASP.NETMicrosoft Access
Last Comment
Gustav Brock
8/22/2022 - Mon
John Tsioumpris
It reckon it will be faster if you "transfer" the XMLs to standard Ms Access Tables/Queries....if i understood you correctly...
Can you give a small sample?
Thanks for the comment. I have one last comment.
True, writing to disk can be slow. To be more specific; writing to a database is much slower than writing to XML because database updates require update to indexes, etc. which can make lengthen the updating process depending of the number of rows and columns to be updated. XML; on the other hand is pretty straightforward, just append the data to the file. However, in my situation it does not matter.
a. The data, for the general user, will be read only . Admin will be the only user updating the data.
Gustav Brock
writing to disk can be slow.
In general, that is not the case. Writing a plain file is pretty fast.
All queries start at the top of the file and read every record all the way to the end of the file. :(
Also, doing join queries are a nightmare in XML.
That is exactly the point. And that is what the database engine solves by indexing the data and caching the data for multiple reads.
Can you give a small sample?