Re: extending ORDER BY make query much slower
От | Stephan Szabo |
---|---|
Тема | Re: extending ORDER BY make query much slower |
Дата | |
Msg-id | 20030312134250.D56401-100000@megazone23.bigpanda.com обсуждение исходный текст |
Ответ на | extending ORDER BY make query much slower ("Dan Langille" <dan@langille.org>) |
Ответы |
Re: extending ORDER BY make query much slower
|
Список | pgsql-sql |
On Wed, 12 Mar 2003, Dan Langille wrote: > explain analyse > SELECT element.id, > commit_log.id AS my_commit_log_id, > commit_log.message_id, > to_char(commit_log.commit_date - SystemTimeAdjust(), 'DD Mon > YYYY') AS commit_date, > to_char(commit_log.commit_date - SystemTimeAdjust(), > 'HH24:MI') AS commit_time, > commit_log.committer, > commit_log.description, > commit_log.encoding_losses, > commit_log.message_subject, > element.name, > commit_log_elements.revision_name, > element_pathname(element.id) AS element_pathname > FROM commit_log, commit_log_elements, element > WHERE commit_log_elements.commit_log_id = commit_log.id > AND commit_log_elements.element_id = element.id > ORDER BY commit_log.commit_date DESC, > my_commit_log_id > LIMIT 100; As a question, is it faster if both are marked DESC?
В списке pgsql-sql по дате отправления: