Hi,
We have plans to write ABAP CDS views to standardize business logic/data extraction so that development team can make simple queries on CDS views. So we are writing generic CDS views means without many "WHERE" conditions.
I'm trying to understand how it works and impact on the performance when these CDS views are consumed for any particular Plant or Company code.
Let us say I have below CDS view called "ZCDSV_TEST"
select * from vbak inner join vbap on vbak.vbeln = vbap.vbeln { <fields> }.
I would like to understand when it is consumed in 2 ways in terms of performance (SQL)
Select * from ZCDSV_TEST <<<< 1M records
Select * from ZCDSV_TEST WHERE Vkorg = '0001' <<<< 25K records.( Does this extract 1M records first and then apply WHERE condition to get to 25K.
Would like to understand these type of technical details. Appreciate your inputs.
Cheers.
Laks