473,378 Members | 1,507 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Search Refinement

I'm working on a product search page that will allow the user to
refine their search results based on a few criteria.

The user will do a text search, which returns a set of products, and
then be presented with a series of checkboxes for product categories
and price buckets.

I have two options to do this:

Option 1 is to build a new query and go back to the database again for
the refined search.

Option 2 is to persist the original results in a DataSet and then use
the DefaultView.Filter property to restrict the data.

Option 1 will hit the DB more, and Option 2 will use more RAM. Coming
from a classic ASP background, I tend toward the first option, but the
second option seems to be a more "correct" .net technique. The number
of records returned in the original query is probably not going < 20.

Has anybody tried this and found any pros or cons either way?
Nov 18 '05 #1
2 1464
is you are using a real database (say sqlserver) than i'd use the database.
it allows better filtering, and its queries are faster.

-- bruce (sqlwork.com)
"John Hoge" <jh******@yahoo.com> wrote in message
news:d0**************************@posting.google.c om...
| I'm working on a product search page that will allow the user to
| refine their search results based on a few criteria.
|
| The user will do a text search, which returns a set of products, and
| then be presented with a series of checkboxes for product categories
| and price buckets.
|
| I have two options to do this:
|
| Option 1 is to build a new query and go back to the database again for
| the refined search.
|
| Option 2 is to persist the original results in a DataSet and then use
| the DefaultView.Filter property to restrict the data.
|
| Option 1 will hit the DB more, and Option 2 will use more RAM. Coming
| from a classic ASP background, I tend toward the first option, but the
| second option seems to be a more "correct" .net technique. The number
| of records returned in the original query is probably not going < 20.
|
| Has anybody tried this and found any pros or cons either way?
Nov 18 '05 #2
I would use the database.

"John Hoge" <jh******@yahoo.com> wrote in message
news:d0**************************@posting.google.c om...
I'm working on a product search page that will allow the user to
refine their search results based on a few criteria.

The user will do a text search, which returns a set of products, and
then be presented with a series of checkboxes for product categories
and price buckets.

I have two options to do this:

Option 1 is to build a new query and go back to the database again for
the refined search.

Option 2 is to persist the original results in a DataSet and then use
the DefaultView.Filter property to restrict the data.

Option 1 will hit the DB more, and Option 2 will use more RAM. Coming
from a classic ASP background, I tend toward the first option, but the
second option seems to be a more "correct" .net technique. The number
of records returned in the original query is probably not going < 20.

Has anybody tried this and found any pros or cons either way?

Nov 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: R. Rajesh Jeba Anbiah | last post by:
Q: Is PHP search engine friendly? Q: Will search engine spiders crawl my PHP pages? A: Spiders should crawl anything provided they're accessible. Since, nowadays most of the websites are been...
1
by: Les Juby | last post by:
A year or two back I needed a search script to scan thru HTML files on a client site. Usual sorta thing. A quick search turned up a neat script that provided great search results. It was fast,...
1
by: alex leung | last post by:
when I studing the "stl_algobase.h" (SGI Imp. of STL), I find the following defination of swap: template <class _Tp> inline void swap (_Tp& __a, _Tp& __b){ _Tp __tmp = __a; __a = __b; __b =...
5
by: George | last post by:
Hi, Anyone has the background for explaining? I have made a search on my name and I have got a link to another search engine. The link's title was the search phrase for the other search engine...
39
by: Noticedtrends | last post by:
Can inference search-engines narrow-down the number of often irrelevant results, by using specific keywords; for the purpose of discerning emerging social & business trends? For example, if...
28
by: joshc | last post by:
If I have an array of data that I know to be sorted in increasing order, and the array is less than 50 elements, and I want to find the first element greater than a certain value, is a simple...
6
by: mandibdc | last post by:
I need to extract some elements from a very large XML file. Because of the size, I'd like to work with it on my Linux machine as a text file. Basically, I am going to have a list of specific...
0
by: Richard Rosser | last post by:
Greetings. Not being used to Access, I have built a search form using the wizard but am not getting the desired results. Have tried both the 'and' and the 'or' operator but neither help. What I...
14
by: khaichiew85 | last post by:
i am trying to write a C code which request input from user and store them in array.Number of inputs is determined by the user and it is limited to 100 inputs.Then I need to pass the array to...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.