[HACKERS] patch: optimize information_schema.constraint_column_usage

Поиск
Список
Период
Сортировка
От Alexey Bashtanov
Тема [HACKERS] patch: optimize information_schema.constraint_column_usage
Дата
Msg-id 2d533e5b-687a-09fa-a772-dac9e6cf9dd4@imap.cc
обсуждение исходный текст
Ответы Re: [HACKERS] patch: optimize information_schema.constraint_column_usage  (Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>)
Re: [HACKERS] patch: optimizeinformation_schema.constraint_column_usage  (Peter Eisentraut <peter.eisentraut@2ndquadrant.com>)
Список pgsql-hackers
Hello hackers,

The view information_schema.constraint_column_usage becomes slow when 
the number of columns and constraints raise to substantial values.
This is because of a join condition that allows only join filter to 
enforce. The patch is to optimize it.
See many_constraints.sql file attached for a performance test: create 
3000 tables with 10 columns and a PK each and select * from the view.
The last statement works for 22 seconds on master branch, 34 
milliseconds optimized on my laptop.

Best Regards,
   Alexey Bashtanov

-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

Вложения

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

Предыдущее
От: Ruben Buchatskiy
Дата:
Сообщение: [HACKERS] Non-deterministic behavior with floating point in parallel mode
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: [HACKERS] Patch: Write Amplification Reduction Method (WARM)