Link to home
Start Free TrialLog in
Avatar of RayT
RayTFlag for United States of America

asked on

Access vs. XML

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?
Avatar of John Tsioumpris
John Tsioumpris
Flag of Greece image

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?
SOLUTION
Avatar of ste5an
ste5an
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of RayT

ASKER

Thanks to you all.  That makes a lot of sense.  XML is a flat file.  Indices are not being used when a queried.  

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.

I think I will definitely explore Access.  It has to be a better solution than XML.

BTW - Construct is just another word for 'build '
Then the performance of querying does not really matter, cause writing files to disk is much slower.
Avatar of RayT

ASKER

Ste5an,

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.
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.

/gustav
That seems to cover it.