Searching multiple fields from multiple tables

Поиск
Список
Период
Сортировка
От anssiman@my-deja.com (A. Mannisto)
Тема Searching multiple fields from multiple tables
Дата
Msg-id 8b9752ea.0107190057.5786f869@posting.google.com
обсуждение исходный текст
Список 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?


В списке pgsql-sql по дате отправления:

Предыдущее
От: "Magnus Landahl"
Дата:
Сообщение: Re: Get the tables names?
Следующее
От: Bhuvan A
Дата:
Сообщение: how can we get total records in pg server?