Re: How do I retreive text very QUICKLY from the database

From: Neil Conway <nconway(at)klamath(dot)dyndns(dot)org>
To: "Peter E(dot) Chen" <pchen3(at)jhmi(dot)edu>
Cc: "Postgres (General)" <pgsql-general(at)postgresql(dot)org>
Subject: Re: How do I retreive text very QUICKLY from the database
Date: 2002-01-24 19:09:00
Message-ID: 1011899340.387.4.camel@jiro
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Thu, 2002-01-24 at 11:42, Peter E. Chen wrote:
> Hey All,
>
> I am trying to find a way to retreive character data from a table very
> quickly. My data is a large string (about 250 MB worth of text) of DNA
> sequence. I am currently storing the data as a Postgres "text" datatype.
> The character data is in its own table and occupies one row and one column.

That sounds like a bad candidate for storage in an RDBMS. If you need a
lot of speed, perhaps it would be better to store it on the file system
(reading using mmap() perhaps?), in a DBM-style database, or in shared
memory. If necessary, you could then store the access info for this
storage (e.g. the filename) in the RDBMS.

Alternatively, try using PostgreSQL's large objects support. I don't
know if it would be any faster though...

Cheers,

Neil

--
Neil Conway <neilconway(at)rogers(dot)com>
PGP Key ID: DB3C29FC

In response to

Browse pgsql-general by date

  From Date Subject
Next Message John Gray 2002-01-24 19:28:22 Re: How do I retreive text very QUICKLY from the database
Previous Message Jan Wieck 2002-01-24 18:06:07 Re: Problems with initdb on Cygwin