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

  • Home
  • SEARCH
  • 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 576237
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T14:01:34+00:00 2026-05-13T14:01:34+00:00

What I mean saying true related by tags list? Let’s imagine that article have

  • 0

What I mean saying true “related by tags” list?

Let’s imagine that article have 3 tags: A, B, C. True “related by tags” articles for this item will be articles fistly having A, B, C tags, then (A, B), (A, C), (B, C) etc.

table: tags

tag_id
tag_title
tag_nicetitle

table: tags2articles

article_id
tag_id

Using this tables structure is too difficult to calculate true “related by tags”.

We can add one more table containing article_id and it’s md5(A,B,C). Before hashing we should sort tags by alphabet.

table: article_tags_hashed

id
article_id
md5
count

This table will help us to find articles containing exact set of tags (A,B,C), but it won’t help to find articles containing only (A, B), (A, C), (B, C)

What is the best practice?

PS: Sorry for my english, it’s pretty bad.

  • 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-13T14:01:34+00:00Added an answer on May 13, 2026 at 2:01 pm

    I don’t think you need article_tags_hashed because you can group and count the results when you
    query the tags2articles.

    Example:

    select article_id, count(article_id) as tagcnt from tags2articles
    where tag_id in (...)
    group by article_id
    order by tagcnt desc
    

    The articles which contain the most tags will be placed first.

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

Sidebar

Related Questions

I mean I have this code: <script> $(document).ready( function() { $('html, body').animate({ scrollTop: $(.error).offset().top
I mean something like that: class parentClass { public function method() { echo $this->prop;
I've read the questions/answers saying that Java doesn't have nor is it likely to
What do you mean by saying that something is 'Enterprise Ready'?
Let me start off by saying that the code in question is part of
I have a checkable item in my list view public class CheckableMessageOut extends RelativeLayout
I mean I have one line and I want to put 2 spinner in
I mean things like: FK1 -> 1FK2 -> 2PK Please, note that 1FK2 is
I mean something like this: http://www.globalscaletechnologies.com/p-25-sheevaplug-dev-kit-uk.aspx My minimal hardware requirement is: Ethernet card UPDATE:
I mean, if I have an object and I apply 3 transforms to it,

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.