In its broadest sense, HTML is a document markup language and serves to structure the data in a document. A database, on the other hand, should contain raw data organized by its logical relationships. Documents use formatting and may present data redundantly, but true underlying data is always committed. Therefore, you should store the most direct raw data form that you can possibly extract and extract it in meaningful ways using both the query language itself and create suitable views for your purposes, as well as other output-specific data processing for generation documents.
Of course, you may need to cache the result of the output formatting operation, and you can also save the cache in the database. Of course, thatβs good. But as regards the raw payload data, I would always go for the above.
source share