Received: from slip3.raccoon.com (slip3.raccoon.com [165.90.134.130]) by hub.org (8.9.2/8.9.1) with ESMTP id VAA17040 for ; Wed, 3 Feb 1999 21:27:37 -0500 (EST) (envelope-from tim@directricity.com) Received: from timnt (tim.desmoinesnet.com [165.90.140.11]) by slip3.raccoon.com (8.8.7/8.8.7) with SMTP id UAA02236 for ; Wed, 3 Feb 1999 20:33:05 -0600 Message-ID: <00c601be4fe5$a0796d10$0b8c5aa5@timnt.weather.net> From: "Tim Perdue" To: Subject: Performance Question Date: Wed, 3 Feb 1999 20:25:25 -0600 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 4.72.3110.5 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Please email directly to tim@dmcity.net. Some of you may have followed the thread about my mailing archive system that uses PostgreSQL. The database is growing quickly and I want to make sure the performance is going to be OK, so here's a question: I have a table with records like this: fld_mail_list (int) | etc | etc | fld_mail_body 1 x x x <----big TEXT Field -----> 2 x x x <----big TEXT Field -----> 1 x x x <----big TEXT Field -----> 4 x x x <----big TEXT Field -----> 1 x x x <----big TEXT Field -----> 1 x x x <----big TEXT Field -----> 7 x x x <----big TEXT Field -----> 1 x x x <----big TEXT Field -----> 1 x x x <----big TEXT Field -----> 7 x x x <----big TEXT Field -----> 1 x x x <----big TEXT Field -----> 8 x x x <----big TEXT Field -----> Essentially, I have a several different mailings lists being archived into 1 big table, and the key to accessing them is using the fld_mail_list key. Am I going to run into huge performance problems on this? Should each mailing list be archived in its own table?? When I do a SELECT * FROM tbl_mail_archive WHERE fld_mail_list=1 AND fld_mail_body~~'%keyword%'; am I going to get killed with a performance hit?? It's running OK now, with the table at 20MB, but I have 100MB more worth of letters to drop into the table..... 8-) Please email directly to tim@dmcity.net.