Achieve sub-millisecond query performance on SAP S/4HANA application servers. Master Single-Record, Generic, and Full table buffering, DDLOG synchronization, and buffer-bypass avoidance.
Deep architectural blueprints for SQL tuning, table buffering, and CDS optimization in The SAP Clean Core & ABAP Cloud Handbook.
A common misconception in SAP S/4HANA projects is that because SAP HANA is an in-memory database, application server table buffering is obsolete. This assumption is dangerously false:
Choose the buffering strategy based on data volume and access pattern:
#SINGLE):
#GENERIC):
#FULL):
SELECT.In a scaled-out SAP landscape with multiple application server instances (PAS and AAS), modifying a buffered table requires cache synchronization:
DDLOG.DDLOG (governed by profile parameter rdisp/bufreftime, typically every 1 to 2 minutes) and purge invalid entries.Developers must structure ABAP SQL carefully to avoid unintentional buffer bypasses:
" ❌ Bypasses buffer: Aggregate function
SELECT COUNT(*) FROM zclean_config INTO @DATA(lv_cnt).
" ❌ Bypasses buffer: Incomplete primary key on single-record table
SELECT SINGLE config_value FROM zclean_config WHERE company_code = '1010' INTO @DATA(val).
" ✅ Hits buffer: Full primary key provided
SELECT SINGLE config_value FROM zclean_config
WHERE config_id = 'TAX_RATE' AND company_code = '1010'
INTO @DATA(val).
Get complete blueprints for performance tuning, database optimization, and Clean Core architecture in The SAP Enterprise Architecture Suite.