I have developed a system to manage hotel rates, allotments and bookings using php and mysql for a travel agent with round 150 hotels. As the hotel room rates differ by date table design is as follows roughly
hotel_tbl{
hotel_id,
hotel_name
}
room_type_tbl{
room_type_id,
room_type_name,
hotel_id
}
room_rates_tbl{
room_type_id,
**from_date,
**till_date,
meal_basis,//(Breakfast,halfboard,fullboard) BB,HB,FB
sleeps,//(Single,Double,Triple) SGL,DBL,TPL
currency,
room_rate
}
As the hotel rates fluctuate by date i noticed when I query the table for complex tour package calculations(involving multiple hotels) the performance is slow than expected. My question is do you think the performance can improve if I have a rate row for each date instead of using a date range (my system contains around 150 hotels) something like below:
room_rates_tbl { // A row for each day as opposed to using a date range
room_type_id,
**date,
meal_basis,//(Breakfast,halfboard,fullboard) BB,HB,FB
sleeps,//(Single,Double,Triple) SGL,DBL,TPL
currency,
room_rate}
希望问题足够明确......
我已更新了我的问题,使之更加清楚。 会议室 比如,“Standard Room”或“Delosse Room”或“Family Room”,睡觉会包含其单一、Double Etc。 我已经从问题中删除了市场类型,因为这一问题与市场集团(如国家)的意思无关。 我的问题是,在提出费率表时,如果采用日期范围,那么迄今的仓储率会比使用日期范围更有成效。