From oracle-l-bounce@freelists.org Fri May 21 05:17:51 2004 Return-Path: Received: from air189.startdedicated.com (root@localhost) by orafaq.com (8.11.6/8.11.6) with ESMTP id i4LAHah00407 for ; Fri, 21 May 2004 05:17:46 -0500 X-ClientAddr: 206.53.239.180 Received: from turing.freelists.org (freelists-180.iquest.net [206.53.239.180]) by air189.startdedicated.com (8.11.6/8.11.6) with ESMTP id i4LAHQ600362 for ; Fri, 21 May 2004 05:17:36 -0500 Received: from localhost (localhost [127.0.0.1]) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 93A6872C198; Fri, 21 May 2004 05:05:57 -0500 (EST) Received: from turing.freelists.org ([127.0.0.1]) by localhost (turing [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 04352-34; Fri, 21 May 2004 05:05:57 -0500 (EST) Received: from turing (localhost [127.0.0.1]) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id E0AA272C11C; Fri, 21 May 2004 05:05:56 -0500 (EST) Received: with ECARTIS (v1.0.0; list oracle-l); Fri, 21 May 2004 05:04:43 -0500 (EST) X-Original-To: oracle-l@freelists.org Delivered-To: oracle-l@freelists.org Received: from localhost (localhost [127.0.0.1]) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 32E8572C162 for ; Fri, 21 May 2004 05:04:43 -0500 (EST) Received: from turing.freelists.org ([127.0.0.1]) by localhost (turing [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 03402-100 for ; Fri, 21 May 2004 05:04:42 -0500 (EST) Received: from web20723.mail.yahoo.com (web20723.mail.yahoo.com [216.136.226.77]) by turing.freelists.org (Avenir Technologies Mail Multiplex) with SMTP id D562C72C185 for ; Fri, 21 May 2004 05:04:41 -0500 (EST) Message-ID: <20040521102100.6161.qmail@web20723.mail.yahoo.com> Received: from [212.20.241.39] by web20723.mail.yahoo.com via HTTP; Fri, 21 May 2004 03:21:00 PDT Date: Fri, 21 May 2004 03:21:00 -0700 (PDT) From: Charlotte Hammond Subject: Re: Performance of DBMS_STATS vs ANALYZE To: ORACLE-L MIME-Version: 1.0 Content-type: text/plain X-Virus-Scanned: by amavisd-new at freelists.org Content-Transfer-Encoding: 8bit X-archive-position: 1036 X-ecartis-version: Ecartis v1.0.0 Sender: oracle-l-bounce@freelists.org Errors-To: oracle-l-bounce@freelists.org X-original-sender: charlottejanehammond@yahoo.com Precedence: normal Reply-To: oracle-l@freelists.org X-list: oracle-l X-Virus-Scanned: by amavisd-new at freelists.org Hi Connor --- Connor McDonald wrote: > Notice that your analyze command did not calculate column stats, but the dbms_stats did. You'll get a "fairer" assessment if you analyze command is: ANALYZE TABLE myschema. ESTIMATE STATISTICS SAMPLE <> PERCENT FOR TABLE FOR ALL INDEXES for all columns size 1; -- Thanks for the suggestion - if I gather columns stats using ANALYZE it does slow things down a bit. It is still 2x faster than DBMS_STATS, but not 3 or 4x as it was before. But ideally I'd like make DBMS_STATS faster, not ANALYZE slower :-) Are these 1-bucket histograms on each column useful to the CBO? If not, can they be turned off (METHOD_OPT=>'FOR ALL COLUMNS SIZE 0' doesn't do anything). As Jonathan Lewis also suggested, perhaps I'm dwelling on this more than I need to - but I'm curious! Thanks - Charlotte --------------------------------- Do you Yahoo!? Yahoo! Domains - Claim yours for only $14.70/year ---------------------------------------------------------------- Please see the official ORACLE-L FAQ: http://www.orafaq.com ---------------------------------------------------------------- To unsubscribe send email to: oracle-l-request@freelists.org put 'unsubscribe' in the subject line. -- Archives are at http://www.freelists.org/archives/oracle-l/ FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html -----------------------------------------------------------------