I am trying to figure out which bears a heavier load on a system:
- A database operation
- OR a File operation (AKA reading an XML file)
Thanks in advance!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Usually file operations are slower than DB operations.
If you want to store a data collection in an XML file (ie. an XML database) I would unrecommend it, strongly. DBMSs implement lots of performance optimizations via indexes and caches: most of DB data is held in memory.
If you want to write large payloads to DB columns, it’s not more efficient than having a column that points to a file and store the raw data inside the file.