SAP Note 129385 - Database hints in Open SQL

Component : DB Independent Database Interface - Syntax, Compiler, Runtime

Solution : https://service.sap.com/sap/support/notes/129385 (SAP Service marketplace login required)

Summary :
This SAP Note details the integration of database hints within Open SQL statements for optimizing query execution, effective from Release 4.5. Hints allow selective influence over the database optimizer’s operations, tailored to specific database behaviors, thus not universally applicable or beneficial across different systems. They are applicable only to transparent tables or views, not affecting R/3 database buffer operations or pool/cluster table statements. Users assume responsibility for correctness and usefulness of the hint, which should be applied cautiously and ideally under consultation with seasoned developers. The note also emphasizes runtime-only hint evaluation, non-interference with functional output, and system-specific hint applicability. Additionally, database-specific guidance is referenced for further detailing.

Key words :
/3 database interface generates synthetic table aliases, sapdb / maxdb open sql notation, open sql/native sql 652096 database hints, ms sql server 150037 database hints, ]   %_hints <selector> '<text>' <selector> '<text>' [, expressly influence decisions made, database interface evaluates hint texts, database-specific notes listed, update open sql statement, database-specific note mentioned

Related Notes :

1552952Parameter maxmarkercnt increased to 10000
1367644CIC: Poor performing access to data environ. - contract data
1299736Planning: Day-Based Planning - Performance
1069739CIC: Poor performing access to data environ - bill doc data
1009808MM_MATNR: Performance problems during reading of EQUI or OBJ
998448MM_MATNR: Performance problems when reading table AFIH
972013Performance Blocked Documents Report: Database settings
942042Performance problems when rebate agreement is displayed
932243Conversion from IPPE to BOM
832544FAQ: MaxDB Hints
821722Performance of the join on MSEG and MKPF
816056Performance problems in V23 and VA14L
811852Substitute_Literals to improve access to LTAP
798360DB2 specific ABAP hints in Include RPTEXIN2
797629FAQ: Oracle histograms
772497FAQ: Oracle Hints
770471MM_MATNR: Performance problems reading AFVC
687246Move-out: Performance problems ISU_DB_EVER_SINGLE_TRANSVER
652096Database hints in Open SQL for SAPDB/MaxDB
630451MSSQL hint causes runtime error.
564019Access to VTFA for the DB2 database takes long
531337iSeries: Performance with Open SQL "FOR ALL ENTRIES"
515886REP: Optimization in reading the change pointers for DB2
515769Techn.obj.:Runtime during search for install.eqpmts (EQUZ~H)
485420iSeries: Database hints for Open SQL/Native SQL
456066Device installation: Index EQUZ~H not used
429146CC04, CC03: long runtime due to Full Table Scan
394413Long runtime when displaying shipment
380848Bad performance when archiving SD_VTTK
369658SD document flow: Long runtimes when reading transport doc.
338468REPARSE-hint does not work with FOR ALL ENTRIES
176754Problems with CBO and RBO
162034DB2/390: Database hints in Open SQL
159171Recompilation of Stored Procedures
152913Database hints in Open SQL for Informix
150037Database hints in Open SQL for DB6 (DB2 for LUW)
140825Optimizer Hints in Open SQL
131372CBO: Tuning of expensive SQL statements
130480Database Hints in Open SQL for Oracle
113008DB2/390: Maintaining Catalog Statistics