How do I retreive text very QUICKLY from the database ? . . . - Mailing list pgsql-general

From Peter E. Chen
Subject How do I retreive text very QUICKLY from the database ? . . .
Date
Msg-id JBEOIGCPFENBBBIKPPLCKENICAAA.pchen3@jhmi.edu
Whole thread Raw
Responses Re: How do I retreive text very QUICKLY from the database
Re: How do I retreive text very QUICKLY from the database
List pgsql-general
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.

I would like to retreive a substring from this very long string.  I have
tried the built-in Postgres string functions to get a substring out from the
table, but it is too slow.  Is there a very fast way to retreive substrings
of character data from the database?

Does changing the datatype help (instead of using the "text" datatype)?

Thank you for any help.

Sincerely,
Peter


pgsql-general by date:

Previous
From: "Javier Vilarroig"
Date:
Subject: Re: Problems with initdb on Cygwin
Next
From: Jan Wieck
Date:
Subject: Fuer Fritz Lehmann