출처: https://yosiah.tistory.com/562
DB Link 속도 저하의 문제
소결론
네트워크 퍼포먼스를 고려하여 설계하면
유용한 네트워크 연결된 DB구조로 잘 활용할 수 있다~~
---------------------------------------------------------------
▣ 속도에 영향을 주는 요소
1. 네트워크 퍼포먼스
2. 읽기 성능 문제 - select 쿼리 성능
3. 쓰기 성능 문제 - insert 시에 발생하는 redo log 쓰기에 따른 문제
▣ 속도개선을 위한 방안.
네트워크 퍼포먼스에 대해서는 패스.
읽기 성능 문제 : 힌트를 통해 읽기성능 해결 - parallel (병렬처리), full (full Scan) 힌트 사용
비추 XX - 쓰기 성능 문제 : redo log 쓰기를 무시하는 append 옵션 사용 - append (redo log 미사용)
참고 자료 분석
기본적인 DB Link 전략
+ tnsnames.ora (jumbo Ethernet frames)
I would use Jumbo Frames to scale better, since it saves CPU and reduces network traffic and this way leaves space for growth.
+ Pull
In general, performance can be faster if you "pull" the data (calling the remote table from the master instance)
+ driving_site hint
we use the driving_site hint to force the "work" to be done on the site where the huge table resides:
+ Views
Some recommend creating a view on the remote site referencing the local tables and calling the remote table via the local view.
+ Sorting
be aware that the sort will be performed on the LOCAL database.
+ Parallelism
Parallel query across a database link can be quite complex.
자료를 루프를 돌리면서 읽으면서 넣는 것이 아니라,
루프 말고 조인쿼리로 한방에 인서트 하는 방식이 빠르다. (정말 일반적인 DB 튜닝 상식이 되었다.)
insert - select 문 성능 향상 방법 (힌트사용)
예제) insert /*+ append */ into emp select /*+ parallel(a,8) full(a) */ * from emp@LinkedDB a;
*참고 자료
db link 시 속도 저하 문제 (한방 쿼리 작성)
- http://www.gurubee.net/article/55195
DB 링크를 통해 SELECT 자료를 입력 시 속도 개선
- http://blog.naver.com/neostar01/40088495545
DB LINK를 통한 쿼리시 속도 문제(DB Link 테이블과 조인 주의)
- http://www.dator.co.kr/63967
Oracle SQL performance with database links - db link
- http://www.dba-oracle.com/t_sql_dblink_performance.htm
Jumbo Frames for RAC Interconnect
- https://blogs.oracle.com/XPSONHA/entry/jumbo_frames_for_rac_interconn_1
- https://en.wikipedia.org/wiki/Jumbo_frame
출처: https://yosiah.tistory.com/562 [요시아:티스토리]
'컴퓨터 활용(한글, 오피스 등) > 기타' 카테고리의 다른 글
10 Top Free and Open Source C++ Web Frameworks (1) | 2025.02.27 |
---|---|
Top 10 best applications written in C/C++ (0) | 2025.02.27 |
Tibero6 설치 (0) | 2025.02.26 |
Windows PowerShell 글꼴, 배경, 글자 색 변경 방법 (0) | 2025.02.26 |
ZFS 의 주요기능(cow, checksum, RAID-Z..등등) (0) | 2025.02.26 |