I'm building a model, and would like to build it in smaller blocks. That is, I'd like to build an AT view that represents Billing (VRBK, VRBP), and another that represents shipping/deliveries (LIPS/LIKP/VEPO/VEKP). When I run a native SQL query screening on Invoice Number (VBRK.VBELN), the query works perfectly. However, if I join the two AT's in the same manner in which the query is written, performance is crazy, as the execution plan indicates that the shipping AT is bringing back 31M records. How can I build this such that I can continue to build modularly, while getting the performance I need?
↧