数据库vs xml文件以获取少量数据 [英] database vs xml file for small amount of data

查看:76
本文介绍了数据库vs xml文件以获取少量数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用xml文件,因为数据量不是很大.但是我需要以各种方式查询它以获得值.哪个更好?

I want to use xml file as the amount of data is not very large. But I need to query it in variety of ways for obtaining the values. Which is better?

推荐答案

这取决于. SQL数据库总是更加灵活.这归结为分发数据库的成本,如果您认为值得的话.它完全取决于您要执行的查询的性质. LINQ使其中一些查询足够容易以XML编写.
It depends. A SQL database is always more flexible. It comes down to the cost of distributing a database, and if you think it''s worth it. It depends entirely on the nature of the queries you want to do. LINQ makes some of those queries easy enough to write with XML.


这篇关于数据库vs xml文件以获取少量数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆