0% found this document useful (0 votes)
41 views

DB SAP Tuning & Performance

This document discusses techniques for tuning and optimizing SQL databases. It covers: 1. Tuning at the high level database design, system parameters, and hardware levels to minimize disk I/O and address bottlenecks. 2. Index tuning including creating indexes on specified values or ranges and using ordered indexes like B+ trees to improve search performance. 3. Measuring and addressing bottlenecks like CPU usage, memory utilization, and disk service time to improve database job performance.

Uploaded by

x Support
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
41 views

DB SAP Tuning & Performance

This document discusses techniques for tuning and optimizing SQL databases. It covers: 1. Tuning at the high level database design, system parameters, and hardware levels to minimize disk I/O and address bottlenecks. 2. Index tuning including creating indexes on specified values or ranges and using ordered indexes like B+ trees to improve search performance. 3. Measuring and addressing bottlenecks like CPU usage, memory utilization, and disk service time to improve database job performance.

Uploaded by

x Support
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 3

Sql Database Tuning & Optimization

Ckp, 06 Maret 2023

1. Tuning
# Index Tuning

#Schema Tuning

Tuning levels :
a. High Level Database Design
Phisical, Logical, View

b. Database System Parameters


Buffer RAM, to minimize Disk I/O untuk menghindari boothleneck
c. Hardware
Add Disk to speed up I/O, Add memory

Random Block read time


Database performance tuning is generally targeted to minimizes disk i/o
Clustering

# 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

B+tres Index banyak digunakan di RDBMS


Hash index

SAP Tuning ::
Measure job performance

a. CPU
Cek CPU usage

b. CPU Bootleneck factor


c. Memory

d. Utilize Memory

e. Change Default paging limits

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

Cache Data sources

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.

Keep your SQL Server environment up-to-date.

Action ::

Tuning Database/Query/ indexes (tidak mungkin)


Query
o Cek dan Hindari penggunaan Select *
o Ganti NOT IN dengan NOT EXISTS
o Batasai jumlah pengambilan data dalam query
o Gunakan WITH (NOLOCK) pada Perintah Select jika menginginkan akses yang
cepat
o JOIN lebih baik dari Subquery
Hardware
o Cek Bootleneck :
o Bottleneck network

Setting Network Load balancing > 2 Network load...

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

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy