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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T20:14:26+00:00 2026-05-13T20:14:26+00:00

I have an application design question for the nhibernate gurus our there. My application

  • 0

I have an application design question for the nhibernate gurus our there. My application tracks a list of documents submitted and displays data parsed from those documents to the public as a searchable transaction list.

The people/entities submitting these documents may (at any time) replace a previous version of a document with an updated version. Only transactions from the most recent version of each document should be displayed in the searchable transaction list.

The front end of this application uses NHibernate for data access to perform the display and search of the transactions.

My initial idea is to put a trigger on my table of documents that will drop and recreate the table of transactions after any insert, update, or delete of the documents table using a stored proc.

There seem to be two shortcomings with this idea:

1) Since the stored proc will take maybe a minute to run to regenerate the transaction list, there will be a period of time where the transaction list table will be incomplete or not even exist.

2) The data that NHibernate will be reading will become invalid after a transaction table rebuild, and any cached information will be invalid.

A few alternatives that I have contemplated are:

1) using Views as the ‘tables’ NHibernate uses to read from the database, and update those views to point to the new data tables after a successful rebuild is complete. This doesn’t resolve the possible caching problem, though.

2) do the transaction table rebuild through the NHibernate session, though I can’t figure out how the mechanics of this would work. NHibernate would need to know about the ‘live’ set of transactions as well as the ‘pending’ set of transactions, and the pending set of transactions would need to be mapped to some dynamically named table(s).

Maybe I’m just architecting myself into a pretzel.

Anyone have any ideas what the NHibernate best practices for this sort of problem would be?

  • 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-13T20:14:26+00:00Added an answer on May 13, 2026 at 8:14 pm

    I recommend to use Lucene.net for indexing and searching that documents. And you don’t need in a trigger and any SP – Lucene will update all indexes automatically.
    And here are some tutorials about lucene:
    Lucene.Net Best Practices
    What are some good resources on using Lucene.Net?
    http://www.lucenetutorial.com/lucene-in-5-minutes.html (it’s for java version but the API is the same)

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

Sidebar

Related Questions

application design/architecture question for a project that I am building. I have a main
I have a question in the field of optimization and application design. I am
This is a tough design question for a application I'm working on. I have
I have already asked the same question but in regards with MDI Application design.
I have gwt-project that is comunication to database. Application design mvp pattern and view
i have an application in C#... Why Forms Design changes between XP sp2 and
I have a requirement to design a Web Application which acts as a Facade
I have to develop an application with which my client will do visual design.
I have some sort of a design problem with my Django AJAX application. I
Does someone have any tips/advice on database design for a web application? The kind

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.