My pseudo code goes something like this:
Select a list of property numbers
Loop1
Select a list of availability records
loop2
/loop2
/loop1
I need some help on properly indexing the table to work better for the SQL call. The internal loop call which I think would most benefit from the Index is:
SELECT id, day_num, prop_num, booking_id, check_in, check_out, on_hold, booked, prop_num FROM calendar WHERE prop_num = :availability_id
Any help would be appreciated. Links to Indexing tutorials, not writing the SQL code but understanding how to maximize your indexes or if someone wants to try to explain how the whole thing is supposed to work, that would be really cool!
Thanks in advance,
e


Sign In
Create Account


Back to top









