MySQL vs文件数据库 [英] MySQL vs File Databases

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

问题描述

因此,我将使用PHP构建一个自制的博客系统,我想知道哪种存储数据的方式最快.我可以朝着MySQL的方向发展,也可以走自己的小路,将所有信息(以JSON编码)存储在文件中.

So I'm going to be working on a home made blog system in PHP and I was wondering which way of storing data is the fastest. I could go in the MySQL direction, or I could go with my own little way of doing it which is storing all of the information (encoded in JSON) in files.

哪种方式是最快的MySQL或JSON文件?

Which way would be the fastest, MySQL or JSON files?

推荐答案

我会选择一个MySQL数据库-仅仅是因为它更易于管理.

I would choose a MySQL database - simply because it's easier to manage.

JSON并不是真正的存储格式,它是用于将数据发送到JavaScript的.如果要将数据存储在文件中,请查看 XML 序列化PHP (我怀疑这是您要使用的,而不是JSON).

JSON is not really a format for storage, it's for sending data to JavaScripts. If you want to store data in files look into XML or Serialized PHP (which I suspect is what you are after, rather than JSON).

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

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