[공학] Database Tuning Loop constructs (압축파일)
- 작성일
- 2014-04-15
- 등록자
- 채희준
- 조회수
- 230
첨부파일(0)
[공학] Database Tuning Loop constructs (압축파일)
첨부파일 : 공학 Database Tuning Loop constructs.ppt
다운경로 : http://www.jisik114.net/search/detail.asp?pk=11044756&sid=korea072
[공학] Database Tuning Loop constructs
Database Tuning Loop constructs
목 차
배경 및 목적
구현 내용
구현 환경
준비 작업
프로그래밍
실험결과
결론
배경 및 목적
Database Tuning을 효과적으로 하는 방법중하나
Application 과 Database server 사이의 round-trips 의 수를 최소로 함
구현 내용
P173, 그림 5.3 Loop constructs
세개의 프로그램밍
Database Connection를 200번 수행하여 200개의 데이타를 가져온 시간측정
Database Connection시 하나의 명령문안에 200개의 질문을 넣어 수행한 시간 측정
Database Connection시 하나의 명령문안에 한 개의 질문을 넣어 200개의 데이타를 가져오는 시간측정
세개의 프로그램을 비교하여 성능 평가
구현 환경 [1/2]
Server 환경
Hardware
CPU : AMD Duron 1.6@2.0 Ghz
MEMORY : PC 2700 512 DDR MB
HDD : Segate 160GB 7200rpm
Software
OS: MS Windows XP Professional SP1
DBMS : Oracle 9i
구현 환경 [2/2]
클라이언트 환경
Hardware
CPU : 펜티엄 3700 Mhz
MEMORY : 384 MB
HDD : 12GB
Software
OS: MS Windows 2000 Professional
준비 작업
Create Table
SQL> create table employee(
2 employee_name varchar2(10),
3 employee_num number(8),
4 employee_age number(3),
5 employee_dept varchar2(10),
6 );
테이블이 생성 되었습니다.
JDBC를 사용하여 Insert
20000개의 tuples Insert
프로그래밍 [1/3]
Database Connection를 200번 수행한 프로그램 (Connection.java)
for(int i=1; i<201; i++)
{
Connection conn=DriverManager.getConnection(url,\"pjh\",\"abc1234\");
Statement stmt;
ResultSet result;
stmt = conn.createStatement();
result = stmt.executeQuery(\"SELECT student_name FROM student where student_num=\"+i);
while(result.next())
{
String temp_name = result.getString(1);
}
프로그래밍 [2/3]
하나의 명령문안에 200개의 질문을 넣어 수행한 프로그램 (noloop.java)
long start_sec = 0;
long end_sec = 0;
Date T_time = new Date();
start_sec = T_time.getTime();
result = stmt.executeQuery(\"SELECT employee_name FROM employee where employee.. (압축파일)
..... (중략)
제목 : [공학] Database Tuning Loop constructs (압축파일)
출처 : 지식114 자료실
[문서정보]
문서분량 : 14 Page
파일종류 : PPT 파일
자료제목 : [공학] Database Tuning Loop constructs
파일이름 : 공학 Database Tuning Loop constructs.ppt
키워드 : 공학,Database,Tuning,Loop,constructs
문서종류 : PPT 파일
다운받기 : http://www.jisik114.net/search/detail.asp?pk=11044756&sid=korea072