Performance Question - Mailing list pgsql-sql

From Tim Perdue
Subject Performance Question
Date
Msg-id 00c601be4fe5$a0796d10$0b8c5aa5@timnt.weather.net
Whole thread Raw
Responses Re: [SQL] Performance Question  (Viorel Anghel <vang@altavista.net>)
List pgsql-sql
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.




pgsql-sql by date:

Previous
From: "Jackson, DeJuan"
Date:
Subject: RE: Two table select (fwd)
Next
From: joop
Date:
Subject: ...