------------------------ | rls Lease | |======================| | por_s: portfolio | | com_s: company | | reg_s: region | | off_s: office | | lse_s: lease | ------------------------ | | ------------------------ | | | rar A/R | | | |======================| --------------------- | | | por_s: portfolio | | req Asset | lse_s | | p/c/r/o/lse_s | com_s: company | |===================|<---------------------+ +-------------------->| reg_s: region | | lse_s: lease | | off_s: office | | unit_s: asset | | lse_s: lease | --------------------- | invo_s: invoice | | unit_s ------------------------ | | | -------------------------------------- | | | vrtp_utax Use Tax Payable | | | |====================================| | | asset_s | invo_s: invoice | invo_s | +---------------->| asset_s: asset |<----------------+ | | st_s: state | | | | ct_s: county | | | | cy_s: city | | | -------------------------------------- | | | | | | -------------------------------------- | | | vrtp_ptax Property Tax Payable | | | |====================================| | | asset_s | invo_s: invoice | invo_s | +---------------->| asset_s: asset |<----------------+ | | st_s: state | | | | ct_s: county | | | | cy_s: city | | | -------------------------------------- | | | | | | -------------------------------------- | | | vrtp_fhut FHUT Payable | | | |====================================| | | asset_s | invo_s: invoice | invo_s | +---------------->| asset_s: asset |<----------------+ | st_s: state | | ct_s: county | | cy_s: city | --------------------------------------
A table join of the req with a vrtp* table on unit_s/asset_s is non-indexed and requires a search of the entire vrtp* table.
A table join of the rar with a vrtp* table on invo_s is indexed and does not require a search of the entire vrtp* table.