pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: anssiman@my-deja.com
To: pgsql-sql@postgresql.org
Subject: Searching multiple fields from multiple tables
Date: 19 Jul 2001 01:57:37 -0700
Message-ID: <8b9752ea.0107190057.5786f869@posting.google.com> (raw)

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?



Message-ID: <8b9752ea.0107190057.5786f869@posting.google.com>
Permalink:  ../8b9752ea.0107190057.5786f869@posting.google.com/
Also on:    postgresql.org/message-id/8b9752ea.0107190057.5786f869@posting.google.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: anssiman@my-deja.com
  Subject: Re: Searching multiple fields from multiple tables
  In-Reply-To: <8b9752ea.0107190057.5786f869@posting.google.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox