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?
Ray TurnerSenior ConsultantAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

John TsioumprisSoftware & Systems EngineerCommented:
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?
0
ste5anSenior DeveloperCommented:
In short:

a) no.
b) no.
c) yes.

btw, what does "construct pages" mean?

Generally speaking:
Using a database for storing variant data by the means of page content makes sense. Many content management systems (CMS) are doing this. This is often simpler to implement and gives a reliable, scalable performance without to many couplings. Easy to implement does not mean easy to maintain, complexity of maintenance depends on the architecture you chose.
On the other hand, some of the fastest CMS are using simple files and intelligent caching and a lighting fast HTTP server..  

And the caveat: Use an appropriate SQL Server edition instead of Access. Access can handle this, but it can be hard to implement, cause Access is a front-end desktop database with a strong focus on single user interaction. Getting done the things right for an ASP.NET application can be pretty hard.
1
Gustav BrockCIOCommented:
a. Yes. Any database - filer or server based - will be faster than XML
b. No. Your LINQ code should require very little if any tweaking
c. Not really. But you must have create-read-write access to the folder holding the accdb file

/gustav
1

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Protecting & Securing Your Critical Data

Considering 93 percent of companies file for bankruptcy within 12 months of a disaster that blocked access to their data for 10 days or more, planning for the worst is just smart business. Learn how Acronis Backup integrates security at every stage

Ray TurnerSenior ConsultantAuthor Commented:
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 '
0
ste5anSenior DeveloperCommented:
Then the performance of querying does not really matter, cause writing files to disk is much slower.
0
Ray TurnerSenior ConsultantAuthor Commented:
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.
0
Gustav BrockCIOCommented:
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
0
Gustav BrockCIOCommented:
That seems to cover it.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
XML

From novice to tech pro — start learning today.