Oracle Parallel Execution of SQL Statements

oracle 當查詢比較慢的時候,能夠考慮併發查詢,能夠很快出結果,預計比以前不加快2-4倍。併發

Parallel Query Intra- and Inter-Operation Example

As an example of parallel query with intra- and inter-operation parallelism, consider a more complex query:

SELECT /*+ PARALLEL(employees 4) PARALLEL(departments 4) USE_HASH(employees) 
ORDERED */
       MAX(salary), AVG(salary) 
FROM employees, departments
WHERE employees.department_id = departments.department_id 
GROUP BY employees.department_id;

http://docs.oracle.com/cd/B10500_01/server.920/a96524/c20paral.htmoracle

相關文章
相關標籤/搜索