Searching multiple fields from multiple tables

From: anssiman(at)my-deja(dot)com (A(dot) Mannisto)
To: pgsql-sql(at)postgresql(dot)org
Subject: Searching multiple fields from multiple tables
Date: 2001-07-19 08:57:37
Message-ID: 8b9752ea.0107190057.5786f869@posting.google.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Hi,

I should make search engine for psql environment.
I works so that user sets search criterias (multiple words)
and gets answers (like goooooogle does).
Let say that I have one common key (primary) which
is used as foreign key in rest of the tables.
So I have many one_to_many relations.

In this case what is the best way to implement
SQL-query. Performance of the query is the most
important thing. Should I use temporary table
and collect the keys into it one by one whit INSERT
INTO statements. Single SQL query will be quite complex and slow.

After all, what kind of SQL-query philosophy is suitable?

Browse pgsql-sql by date

  From Date Subject
Next Message Richard Huxton 2001-07-19 09:04:30 Re: pl/pgsql - code review + question
Previous Message Josh Berkus 2001-07-18 23:53:32 Re: pl/pgsql - code review + question