DB SAP Tuning & Performance
DB SAP Tuning & Performance
1. Tuning
# Index Tuning
#Schema Tuning
Tuning levels :
a. High Level Database Design
Phisical, Logical, View
# Index Tuning
Specified Values or Range of Values
select * from t1 where id=001
Ordered Index = Index dimana urutan search berdasarkan urutan
tertentu..
- Primary index
- Secondary index
Index method :
Ordered Index (Index - Sequential File)
B+Free
Has Index
Bitmap Index
Multiple :
** SPARSE INDEX, DENS INDEX,Primary and secondary Indices ??
Outer index
Inner Index
SAP Tuning ::
Measure job performance
a. CPU
Cek CPU usage
d. Utilize Memory
f. Disk
disk services time
Disk service time should be below 15 milliseconds. Consult
your server documentation for methods of improving per
formance based on disk service time. For example, the fol
lowing factors may improve disk service time
Hindari :
* Retrieve only the fields you need and avoid using SELECT * in your queries.
* Include the schema name when calling a database object.
* Include the SET NOCOUNT ON clause in your queries unless you need to know the
number of rows affected by a query.
* Avoid implicit conversions that cause the query engine to convert data
unnecessarily.
* Reduce the number of queries per session, where possible, and keep
transactions short.
* Understand the differences between temporary tables, table variables, and
common table expressions, and know when to use one over the other.
* Use joins instead of correlated subqueries.
Action ::
o Bottleneck Memory
If the available memory percentage drops below 20%, users will start
encountering issues in performance
Existing sampai 85% usage
Bottleneck I/O
Bootleneck CPU