CDS Views - Performance Annotation
CDS Views - Performance Annotation
annotation
Table of Contents
Table of Contents 2
Overview 3
Performance Recommendation 5
Test result 6
Conclusion 6
2
Overview
Core data services has many complexities:
In most of the standard CDS views, there are, below, 3 annotations being
used by SAP in order to improve performance. But, mostely, they are not
used in the custom views which might impact performance while fetching
data.
3
➔ Hence it would be good practice to use these annotations properly and
@ObjectModel.usageType.serviceQuality
view.
@ObjectModel.usageType.dataClass
@ObjectModel.usageType.sizeCategory
result set.
4
Performance Recommendation
views).
when requested.
(filtering, aggregation).
5. Test performance of CDS views. Test with reasonable (= realistic) test data.
5
Test result
Conclusion
It would be good practice to use these annotations properly and benefit with performance.
1. @ObjectModel.usageType.serviceQuality
2. @ObjectModel.usageType.sizeCategory
3. @ObjectModel.usageType.dataClass