Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Does the [SELECT] data cache?

Status
Not open for further replies.

Dfly

Technical User
Oct 2, 2002
13
US
The site I'm working on today is a book shop for magicians. Fun stuff, huh? The inventory is slightly over 10,000.

The Feature Page showcases 4 items (listed below).

The "SELECT [col_names] FROM inventory" repeats in each query, basics like title, author, price; however, the "WHERE attributes" are so diverse that a subquery won't work.

Does the data cache, or will the user have to wait while the "inventory table" gets scanned 4 separate times for that one page?

Dfly

====================
Instead of writing out the all the queries, I listed the results wanted, followed by the table & the main conditional column.

#1 - certain topic in the title, item not new or on sale
inventory tbl - title col

#2 - title with large stock#, item not new or on sale
inventory tbl - stock col

#3 - lists 3 sale titles
inventory tbl / sale table join by item_id

#4 - lists 3 new arrivals
inventory tbl - date_rcvd col
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top