Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id F12FD9FA6B5 for ; Wed, 4 Oct 2006 19:54:32 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 08527-06 for ; Wed, 4 Oct 2006 19:54:29 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from outland.mohawksoft.com (unknown [64.46.156.80]) by postgresql.org (Postfix) with ESMTP id 954F89F9ED1 for ; Wed, 4 Oct 2006 19:54:28 -0300 (ADT) Received: from outland.mohawksoft.com (localhost.localdomain [127.0.0.1]) by outland.mohawksoft.com (8.13.1/8.9.3) with ESMTP id k94Mvwmu011896; Wed, 4 Oct 2006 18:57:58 -0400 Received: (from mohawk@localhost) by outland.mohawksoft.com (8.13.1/8.13.3/Submit) id k94Mvwd8011895; Wed, 4 Oct 2006 18:57:58 -0400 X-Authentication-Warning: outland.mohawksoft.com: mohawk set sender to pgsql@mohawksoft.com using -f Received: from 24.91.171.78 (SquirrelMail authenticated user pgsql) by mail.mohawksoft.com with HTTP; Wed, 4 Oct 2006 18:57:58 -0400 (EDT) Message-ID: <21735.24.91.171.78.1160002678.squirrel@mail.mohawksoft.com> In-Reply-To: <21651.1159995652@sss.pgh.pa.us> References: <18350.24.91.171.78.1159994622.squirrel@mail.mohawksoft.com> <21651.1159995652@sss.pgh.pa.us> Date: Wed, 4 Oct 2006 18:57:58 -0400 (EDT) Subject: Re: Netflix Prize data From: "Mark Woodward" To: "Tom Lane" Cc: pg@mohawksoft.com, pgsql-hackers@postgresql.org User-Agent: SquirrelMail/1.4.7 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.067 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200610/258 X-Sequence-Number: 92155 > "Mark Woodward" writes: >> The one thing I notice is that it is REAL slow. > > How fast is your disk? Counting on my fingers, I estimate you are > scanning the table at about 47MB/sec, which might or might not be > disk-limited... > >> I'm using 8.1.4. The "rdate" field looks something like: "2005-09-06" > > So why aren't you storing it as type "date"? > You are assuming I gave it any thought at all. :-) I converted it to a date type (create table ratings2 as ....) markw@snoopy:~/netflix/download$ time psql -c "select count(*) from ratings" netflix count ----------- 100480507 (1 row) real 1m29.852s user 0m0.002s sys 0m0.005s That's about the right increase based on the reduction in data size. OK, I guess I am crying wolf, 47M/sec isn't all that bad for the system.