M
M
MrGeorgeous2017-04-12 21:04:06
Blogs
MrGeorgeous, 2017-04-12 21:04:06

How can you efficiently store a list of all blog tags?

The blog script loads the catalog of publications stored in the database page by page.
Publication tags are stored in the database in a non-normalized column, that is, as a comma-separated list of tags. (as far as I understand, this task is not subject to normalization) # A,B,C
Along with the directory, the script should load the tag cloud of all blog posts (however, the cloud is specific: if the directory already shows entries for a specific tag A, then the cloud should consist of all tags of posts that have the tag A )
How do you think, how can you effectively set up the display of a tag cloud? Is there any way to normalize the database? Maybe memoize? But how then to store these values? Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Rsa97, 2017-04-12
@MrGeorgeous

Why is it not normalized? Separate tags table and posts and tags relation table (many-to-many relationship).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question