So, I will work on a home blog in PHP, and I was wondering which data storage method is the fastest. I could go in the direction of MySQL, or I could go with my own little way to do this, which stores all the information (encoded in JSON) in files.
What will be the fastest, MySQL or JSON file?
I would choose a MySQL database - simply because it is easier to manage.
JSON , JavaScripts. , XML PHP (, , , , JSON).
" " , , - , MySQL SQL Server, .
DB ( , ). , .
MySQL, , ., .
, DB, - SQL (SQLite SQLite.org). SQL, . , .
, , , , ?
10 000 , , .
MySQL , ? - , , , sqlite.
, , - .
CouchDB, , ( ). , ( "-" ).
...
, , MySQL , , .
, MySQL PHP , , ezSQL. ezSQL , , , JSON .
. .
:
1) , , . , .
2) , . ( , ) , , . , "animal.txt" /animal.txt. . , . , , .
. , .
It's really cool. This is a PHP class that manages a flat database with queries http://www.fsql.org/index.php
For blogs, I recommend caching pages because blogs usually only have static content. This way, queries are run only once during caching. You can refresh cached pages when you add a new blog post.
Source: https://habr.com/ru/post/1752205/More articles:Install Ruby 1.9.2 on Mac OSX 10.6 with 32-bit - ruby | fooobar.comC ++ pointing question - c ++Are there any programming errors in this java code? - javaФункция почты PHP не отправляет электронную почту в действительную учетную запись в том же домене - phpчтение из MySQL быстрее или чтение из файла происходит быстрее? - fileDownload HTTP PUT file in C # - httpHow can I solve "Query results cannot be listed more than once"? - c #Как iis распознает веб-приложение? - .netBinding data with DataGrid via ActionScript - flexEclipse on Windows 7 - eclipseAll Articles