일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | |||||
3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 | 25 | 26 | 27 | 28 | 29 | 30 |
- java
- Tomcat
- 엑셀
- Report Designer
- oracle
- 자바
- Book
- 태그를 입력해 주세요.
- 톰캣
- DB
- 함수
- 도서
- Eclipse
- 기타소득
- Excel
- 데이터베이스
- JavaScript
- 오류
- JEUS
- 회계
- 오라클
- 마이플랫폼
- 에러
- error
- MIP
- 성능
- 튜닝
- 이클립스
- 한글
- miplatform
- Today
- Total
어느 가을날의 전환점
ORACLE|오라클 Pipelined Table Functions 본문
Pipelined Table Functions
Pipelining negates the need to build huge collections by piping rows out of the function as they are created, saving memory and allowing subsequent processing to start before all the rows are generated.
Pipelined table functions include the PIPELINED
clause and use the PIPE ROW
call to push rows out of the function as soon as they are created, rather than building up a table collection. Notice the empty RETURN
call, since there is no collection to return from the function.
-- Build a pipelined table function. CREATE OR REPLACE FUNCTION get_tab_ptf (p_rows IN NUMBER) RETURN t_tf_tab PIPELINED AS BEGIN FOR i IN 1 .. p_rows LOOP PIPE ROW(t_tf_row(i, 'Description for ' || i)); END LOOP; RETURN; END; / -- Test it. SELECT * FROM TABLE(get_tab_ptf(10)) ORDER BY id DESC; ID DESCRIPTION ---------- -------------------------------------------------- 10 Description for 10 9 Description for 9 8 Description for 8 7 Description for 7 6 Description for 6 5 Description for 5 4 Description for 4 3 Description for 3 2 Description for 2 1 Description for 1 10 rows selected. SQL>
Once you start working with large warehousing ETL operations the performance improvements can be massive, allowing data loads from external tables via table functions directly into the warehouse tables, rather than loading via a staging area.
#출처: http://oracle-base.com/articles/misc/pipelined-table-functions.php
'Database > Oracle' 카테고리의 다른 글
ORACLE|오라클 레코드 한 문자열로 만들기(XMLAGG, LISTAGG 사용) (0) | 2015.03.11 |
---|---|
ORACLE|오라클 힌트(Hint) (0) | 2015.02.16 |
ORACLE|오라클 11g New Feature - Virtual Columns (가상 컬럼) (0) | 2014.12.02 |
ORACLE|오라클에서 숫자 한글(국문) 표기하기 (0) | 2014.11.27 |
ORACLE|임시 테이블(Temp Table) (0) | 2014.10.23 |