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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T22:06:12+00:00 2026-05-16T22:06:12+00:00

This is what I’m planning to do and I’d appreciate anyone’s input: I’ve built

  • 0

This is what I’m planning to do and I’d appreciate anyone’s input:

I’ve built a forum in Asp.net MVC and now want to add Lucene.Net for search. My plan is to run an index builder thread every 5-10 minutes to update the search index with the changes made to the each discussion.

The way it will work is I keep the date and time for the last run of the index builder thread in the search index. Then on every execution of the index builder, I read this date back from the search, then index any changes since that date and time. Once I’m done I then update the last run entry.

Is this way good? Can someone suggest a better way to incrementally index changes in a forum app?

  • 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-16T22:06:12+00:00Added an answer on May 16, 2026 at 10:06 pm

    You will need to maintain a timer… and if the indexing operation doesn’t stop in 5 minutes another one will start indexing the same changes so you’ll have to check for such condition as well.

    A slightly better way is to simply use a dedicated indexing Thread that stays alive. This Thread will fetch changes from the last run and process them as you describe, but it will not wait. After the index operation finishes, it’ll re-start itself right away continually indexing as items are in.

    If there are no more items to index, the Thread will then sleeps for 5 minutes (and then re-check for changes again when it wakes up).

    This way you can be sure that there will only be one client at a time modifying the indexes. It’ll never take up a lot of CPU as might be the case if you mismanaged the timer somehow or you suddenly got a flood of posts, and will scale as your forum grows without needing to adjust the indexing interval every now and then.

    You will need to monitor the Thread’s health though.

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

Sidebar

Related Questions

This is a normalization thing, but I want I have to hold information about
This is a pretty simple question, and I searched the previous questions but couldn't
This is my code: OleDbConnection connection = new OleDbConnection( Provider=Microsoft.ACE.OLEDB.12.0;Data Source=c:\\Offline.accdb;Persist Security Info=False); connection.Open();
This is probably basic stuff, but I can't find the clear answer anywhere.. Lets
This is mostly a philosophical question about the best way to interpret the HTTP
This is my first time using Magento. I upgraded this site from 1.4.1.1 to
this is what i have so far: type u = {str : string} //some
This issue came to light as I was trying to send an HTML message
We are using XSLT to translate a RIXML file to XML. Our RIXML contains
public static bool CheckLogin(string Username, string Password, bool AutoLogin) { bool LoginSuccessful; // Trim

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.