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

The Archive Base Latest Questions

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

I’m looking for some advice. I recently wrapped up a project where I inherited

  • 0

I’m looking for some advice. I recently wrapped up a project where I inherited some terrible code. I got the application running but it’s safe to say there are a number of performance and design issues, specifically with the advanced search functionality. I have now been asked to do a very similar project but much larger in scale. I have an opportunity here to build a much better domain model from scratch and create a much better application as a whole. The question is what would be the best way to implement the advanced search?

The advanced search page brings up a form with two required text fields, 4 optional dropdown lists, and two separate areas with multiple optional checkboxes to filter the results even further.

The current solution uses the two required fields to return a List of objects that I then filter and eliminate based on any optional form values. I then throw the filtered List into the cache and attach the user’s session id. Then on each results page, I have an Html.Helper that displays paging links that use the Take().Skip() approach on the List retrieved from the cache to display 10 results.

The issue I’m having is that the list can get pretty beefy. I’m trying to save database calls for every new page of results by putting it in the cache but I’m not sure if that’s the best way to approach this. Should I just put all the form values in a monster query string and keep making database calls from the GET requests? Should I save the users search criteria in a database or session and use those for every new page of results? Am I right with using the cache to hold such a beefy collection?

I asked a question similar to this here: Paging search results with asp.net MVC that led me to using the cache. Now that I have a clean slate I would love to follow best practices and do it right from the start. Any suggestions would be great.

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

    Obviously, the best way to implement advanced search depends on your requirements and on your current estimates with regards to size of search space and frequency of searches. My guess is that your biggest issue is whether or not to implement search as a part of an ORM or in the relational database.

    Large SQL queries can be significantly slow, hard to tune, and difficult to debug. If advanced search is a major feature and has lots of complex business rules, then consider implementing search as a part of your ORM. Also, intelligent search would favor the use of an ORM.

    Loading lots of large objects into memory can take its toll on both performance and scalability. If the search space is large, then consider using SQL to do the searching.

    There are algorithms available for distributed search but they are very sophisticated and your budget, expertise, and delivery schedule may not accommodate that approach. How strategic is advanced search to the success of the project?

    Does the search have to be real-time? If not, then consider a hybrid approach where objects are indexed during non-peak times. It is wasteful to have to search through low relevancy words such “the” or “because” so searching through a paraphrased version of the objects may strike a happy medium.

    Good luck and have fun!

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

Sidebar

Related Questions

I'm looking for some advice on writing some thread safe, optimized, elegant code to
I'm looking into building a distributed application and would like some advice on the
I'm looking for some advice and guidance for validating HR-XML. I've written come code
We're looking for some advice on our StarTeam configuration. We have a project that
I'm looking for some advice to how to get the indexes running better on
I'm looking for some advice on a project I'm currently working on. I need
I am looking for some advice. My situation: Application works with text local file
Looking for some advice on the best way to implement localization along with client
I am looking for some advice in regards to getting a very quick display
I'm looking for some advice on the best way to provide a single place

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.