Click here to Skip to main content
15,896,912 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
should i save graph in database or in xml.

graph is network graph that is used to find shortest path.
Posted

1 solution

That would depend on what you need to do with the info. For example, if you want the data available to multiple users, then a DB is the way to go. If it is a single user, and the net graph is the only thing you store, then XML may be the best.

There is also the footprint: XML is a large(ish) text file, but small support environment, DB would be the other way around. XML support requires no extra intallation, DB does. Etc., etc., etc.!

It will depend on your data and circumstances, I'm afraid.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900