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 7498763
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T19:35:23+00:00 2026-05-29T19:35:23+00:00

Current state .NET 4.0 Application (WPF) Database: SQLCE Tables (simplified): Documents, Tags, DocumentsTags [n:n]

  • 0

Current state

  • .NET 4.0 Application (WPF)
  • Database: SQLCE
  • Tables (simplified): Documents, Tags, DocumentsTags [n:n]
  • roughly 2000 documents and 600 tags (tags can be assigned to multiple documents)
  • tags = keywords = labels

Case

The user has a big document database, which he can filter with a tag cloud. The tags displays a name (the tag name itself) and a number, which is the total count of the documents with the respective tag.
If the user selects a tag, only the documents with the selected tag are shown. The dynamic tag cloud now should show only the available tags on the filtered documents with an updated count number.

Problem

It is slow. After each selected tag, we need to evaluate again all the documents to count the tags. We currently do it recursively, so we check on each document what tags it has. We are looking for another solution (caching, better algorithm, your idea?).

Similarities

stackoverflow, del.icio.us also have tag clouds. Check out yourself. How do they do it? I know stored procedures would be a solution, but according our database developer this is not available on SQLCE.

  • 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-29T19:35:25+00:00Added an answer on May 29, 2026 at 7:35 pm

    You can use two inverted indexes, where each tag will be a key in both.

    One inverted index will actually be a map:Tags->list of Tags [all the tags that co-occure with the key]

    The second one will be map:Tags->list of Docs [all the documents that co-occure with each tag].

    Calculating the relevant set of docs after some tags were selected is simply an intersection on inverted index, that can be done efficiently.

    Also, finding the modified tags cloud is again an intersection on inverted index.

    Note that the inverted index can be created off-line, and creating it is a classic example of map-reduce usage.

    This thread discuss how to efficiently find intersection in inverted index

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

Sidebar

Related Questions

I am trying to connect to the database and get current state of a
I am wanting to develop a web application, what is the current state of
I'm working on porting a large vb6 application to .NET. The current app is
I am currently using ASP.Net state server to store session data in my application.
lanchpad.net states that for project Emle - Electronic Mathematics Laboratory Equipment , the current
For GUI purposes I need by current state of state machine to enumerate possible
I want to write a ViewModel that always knows the current state of some
Lets say that you have a business object whose current state implies that there
In the documentation for MKReverseGeocoder, the administrativeArea property gives you the current state the
How do you detect the current SCAN state and revert it after changing 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.