For example, using PHP to do a novel network of the specific content of the novel where is put in the database or directly into the text into the hard disk and then in the database to do the path of the association?
Reply content:
For example, using PHP to do a novel network of the specific content of the novel where is put in the database or directly into the text into the hard disk and then in the database to do the path of the association?
Think it is good to put local files, on the one hand can easily build index, easy to search. On the other hand, distributed storage can be arbitrary, regardless of the problems caused by the table
If you put it directly into the database, it is inefficient for a large novel to be placed in a field, especially when the full text is retrieved.
Both of them are better.
In the database for easy management and re-editing, search, etc.
Local files are easy to download directly
If you do not intend to provide direct download services, just put the database is OK
However, it's best to do the caching work
In my opinion, putting files in a service provider that provides cloud storage, the database provides only the necessary information and saves a small amount of data, such as title, type, author, etc. If you want to provide online reading, it is recommended to check the relevant online reading information, generally through a variety of plug-ins, may also include some file format conversion, in order to achieve better results.