in reply to OT: Scalable web application architecture
It sounds like you want to be able to do a query something like:
select room from search_table where max_capacity >= ? and pack_guests >= ? and pack_guests <= ? and valued_guest=? and agent=? and referral=?
The idea is to turn things around so instead of trying to apply a set of rules to a table of data you put the rules in a table and use it to look up the data.
In my case I was trying to process orders taking into account available stock, order payment, dispatch option selected by customer etc, etc. So to do a search for orders ready to be processed there were lots of lookups and calculating here there and everywhere to collect all the data needed for each order. I re-organised the order data so each order record had everything I needed and allowed me to do a single (although not simple) query to get all the orders ready to be processed. Once I had the data laid out correctly the database could easily and quickly process the query.
On the database config side of things.. have you modified your mysql config to allow it to use as much memory as you think it has available? Tuning Server Parameters
cheers,
J
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: OT: Scalable web application architecture
by badaiaqrandista (Pilgrim) on Dec 07, 2005 at 15:10 UTC | |
by jhourcle (Prior) on Dec 07, 2005 at 15:48 UTC | |
Re^2: OT: Scalable web application architecture
by crouchingpenguin (Priest) on Dec 08, 2005 at 00:38 UTC |