Re: Performance Issues

Поиск
Список
Период
Сортировка
Искать
От
Richard Huxton
Тема
Re: Performance Issues
Дата
в 11:24:11
Msg-id
44731B01.6070003@archonet.com
Ответ на
Performance Issues (Dhanaraj M)
Список
Дерево обсуждения
Performance Issues Dhanaraj M <Dhanaraj.M@Sun.COM>
Re: Performance Issues Richard Huxton <dev@archonet.com>
Re: Performance Issues "Mark Woodward" <pgsql@mohawksoft.com>
Re: Performance Issues Dhanaraj M <Dhanaraj.M@Sun.COM>
Re: Performance Issues Christopher Kings-Lynne <chris.kings-lynne@calorieking.com>
Re: Performance Issues Tom Lane <tgl@sss.pgh.pa.us>
Re: Performance Issues Dave Cramer <pg@fastcrypt.com>
Re: Performance Issues Douglas McNaught <doug@mcnaught.org>
Dhanaraj M wrote:
> I have the following doubts.
> 
> 1. Does postgres create an index on every primary key?  Usually, queries 
> are performed against a table on the primary key, so, an index on it 
> will be very useful.

Yes, a unique index is used to enforce the primary-key.

> 2. If 'm executing a complex query and it takes 10 seconds to return the 
> results -- it takes 10 seconds to execute the next time also.  I'm 
> wondering if there's any kind of caching that can be enabled -- so, the 
> next time it takes <10 seconds to return the results.

Not of query results. Obviously data itself might be cached. You might 
want to look at memcached for this sort of thing.

--   Richard Huxton  Archonet Ltd

В списке pgsql-hackers по дате отправления
От: Tom Lane
Дата:
От: Simon Riggs
Дата:
FAQ