Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id E2A8E1259186 for ; Fri, 27 Jan 2012 05:52:04 -0400 (AST) Received: from lo.gmane.org ([80.91.229.12]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1RqiTT-0004Yl-O1 for pgsql-performance@postgresql.org; Fri, 27 Jan 2012 09:52:05 +0000 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1RqiTC-0007ui-T9 for pgsql-performance@postgresql.org; Fri, 27 Jan 2012 10:51:46 +0100 Received: from 217.110.94.67 ([217.110.94.67]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 27 Jan 2012 10:51:46 +0100 Received: from spam_eater by 217.110.94.67 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 27 Jan 2012 10:51:46 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: pgsql-performance@postgresql.org From: Thomas Kellerer Subject: Re: PostgreSQL Parallel Processing ! Date: Fri, 27 Jan 2012 10:52:44 +0100 Lines: 32 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 217.110.94.67 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.23) Gecko/20090812 Thunderbird/2.0.0.23 Mnenhy/0.7.6.666 In-Reply-To: X-Pg-Spam-Score: -3.0 (---) X-Archive-Number: 201201/83 X-Sequence-Number: 46095 sridhar bamandlapally, 27.01.2012 05:31: > SQL> explain plan for select * from hr.emp ; > Explained. > PLAN > -------------------------------------------------------------------------- > | Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time | > -------------------------------------------------------------------------- > | 0 | SELECT STATEMENT | | 7444K| 944M| 16077 (4)| 00:03:13 | > | 1 | TABLE ACCESS FULL| EMP | 7444K| 944M| 16077 (4)| 00:03:13 | > -------------------------------------------------------------------------- > *WITH PARALLEL Option* > SQL> explain plan for select /*+parallel(emp,4)*/ * from hr.emp ; > Explained. > PLAN > --------------------------------------------------------------------------------- > | Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time | > --------------------------------------------------------------------------------- > | 0 | SELECT STATEMENT | | 7444K| 944M| 4442 (3)| 00:00:54 | > | 1 | PX COORDINATOR | | | | | | > | 2 | PX SEND QC (RANDOM)| :TQ10000 | 7444K| 944M| 4442 (3)| 00:00:54 | > | 3 | PX BLOCK ITERATOR | | 7444K| 944M| 4442 (3)| 00:00:54 | > | 4 | TABLE ACCESS FULL| EMP | 7444K| 944M| 4442 (3)| 00:00:54 | > --------------------------------------------------------------------------------- > > In the above plan ( WITH PARALLEL Option ) > 1. "Cost" has been nearly reduced to 1/4th > 2. "CPU" has been reduced > 3. "Time" has been nearly reduced to 1/3rd I have *never* seen the "time" column in the explain plan output come anywhere near the actual execution time in Oracle.