Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6846185
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T00:35:27+00:00 2026-05-27T00:35:27+00:00

Suppose I have a blog post entity. It has many attributes It has comments

  • 0

Suppose I have a blog post entity.

  • It has many attributes
  • It has comments attached to it.
  • It has many states (deleted/locked/invisible, etc).
  • It has many “tags”. (keywords, school_id, user_id)

Obviously, comments should be its own table, with a many-to-one relationship to Blog table.

But what about “states” or “tags”? Would you put that in another table? Or would you stick that in many columns?

What about attributes…if they get too big? Because as my website grows, the blog post will have more and more attributes attached (title, author, blah, blah….). What happens if the attribute list goes as high as 100?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T00:35:28+00:00Added an answer on May 27, 2026 at 12:35 am

    first of all, states should be a tightly structured thing, so you should create separate columns for them. Think about what you need at the beginning, but you can easily add one or two more columns later.

    Tags like keywords shouldn’t be stored in columns, because the amount is growing rapidly over time. That wouldn’t make any sense. So for that, build a table with id and keyword in it and a link table with post_id and keyword_id. You could also omit the keyword_id and directly link post_id and keyword.
    Make sure that both columns combined define the primary key, so you can not end up with a keyword stored several time to one particular post.

    For attributes it can be the same. It is not a bad practice to create an attribute table with attribute_id, attribute_name and maybe more information and a link table attribute_id and post_id and content.
    You can also easily enhance it to be multilingual by using attribute_ids.

    Comments are the same, stored in a separate table with a link to a user and a post: comment_id, user_id, post_id, content and maybe parent_id, which can be a comment_id if you want comments to be commentable again.

    That’s it for a brief overview.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Suppose I have a Django app named blog. There's a model called Post and
Let's say I have a blog application. On each Post there are Comments. So,
Suppose I have a table called Companies that has a DepartmentID column. There's also
and have it map to a strongly typed object? Suppose I have a entity
suppose that I have this RDBM table ( Entity-attribute-value_model ): col1: entityID col2: attributeName
Suppose I have a database which contains blog posts which have tags and I
So suppose I have a bunch of blog entries and I want to find
Suppose I have two tables, one with blog posts and another with readers and
According to Simone Carletti blog post , Rails 3 ajax helpers have changed a
Suppose you have 2 different ASP.NET applications in IIS. Also, you have some ASCX

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.