Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

xml in sted of database

Status
Not open for further replies.

castali

Programmer
Jan 26, 2004
24
DE
I must do a shop on line with 1 to 3000 articles .... is it realist to use only xml to store products (updating adding deleting searching) and customers ... ?

if yes is there any good example somewhere ?

thank you
 
I don't think that it's a good idea.
Databases are much better in storing and finding data: that's what they're designed for, after all.
For example: to search in an xml-file, you'd have to load the whole file, and searching is not optimized by indexes etc.
Only save data in xml-files if you are sure that you need exactly that same set again next time.
 
yes of course SQL language is very easy to use... it was just an idea ... thank you
 
This has been discussed before -- it's ok to use XML to store application configuration info, but it's not suited for use as a general purpose database. Aside from it being slow, not having any multiuser abilities, and performing badly over a network, it's biggest problem is a lack of ACID support (if programs crashes in the middle of an update, it corrupts the XML file).

Chip H.


If you want to get the best response to a question, please check out FAQ222-2244 first
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top