Re: [HACKERS] Declarative partitioning optimization for large amountof partitions

Поиск
Список
Период
Сортировка
Искать
От
Amit Langote
Тема
Re: [HACKERS] Declarative partitioning optimization for large amountof partitions
Дата
Msg-id
b2d42c6f-2bcb-fb13-9c1c-0cf333a50571@lab.ntt.co.jp
Ответ на
Список
Дерево обсуждения
[HACKERS] Declarative partitioning optimization for large amount of partitions Aleksander Alekseev <a.alekseev@postgrespro.ru>
Re: [HACKERS] Declarative partitioning optimization for large amountof partitions Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>
Re: [HACKERS] Declarative partitioning optimization for large amountof partitions Aleksander Alekseev <a.alekseev@postgrespro.ru>
Re: [HACKERS] Declarative partitioning optimization for large amountof partitions Andres Freund <andres@anarazel.de>
Re: [HACKERS] Declarative partitioning optimization for large amountof partitions Aleksander Alekseev <a.alekseev@postgrespro.ru>
Re: [HACKERS] Declarative partitioning optimization for large amountof partitions "Tels" <nospam-pg-abuse@bloodgate.com>
Re: [HACKERS] Declarative partitioning optimization for large amountof partitions "Tels" <nospam-abuse@bloodgate.com>
Re: [HACKERS] Declarative partitioning optimization for large amountof partitions Aleksander Alekseev <a.alekseev@postgrespro.ru>
[HACKERS] Re: Declarative partitioning optimization for large amount ofpartitions David Steele <david@pgmasters.net>
[HACKERS] Re: Declarative partitioning optimization for large amount ofpartitions Anastasia Lubennikova <lubennikovaav@gmail.com>
Re: Re: Declarative partitioning optimization for largeamount of partitions Aleksander Alekseev <a.alekseev@postgrespro.ru>
Re: Re: Declarative partitioning optimization for largeamount of partitions Aleksander Alekseev <a.alekseev@postgrespro.ru>
Re: Re: Declarative partitioning optimization for largeamount of partitions Teodor Sigaev <teodor@sigaev.ru>
Re: Re: Declarative partitioning optimization for largeamount of partitions Teodor Sigaev <teodor@sigaev.ru>
Re: Re: Declarative partitioning optimization for largeamount of partitions Aleksander Alekseev <a.alekseev@postgrespro.ru>
Re: [HACKERS] Declarative partitioning optimization for large amountof partitions Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>
Re: [HACKERS] Declarative partitioning optimization for large amountof partitions Aleksander Alekseev <a.alekseev@postgrespro.ru>
Re: Declarative partitioning optimization for large amountof partitions Simon Riggs <simon@2ndquadrant.com>
Re: Declarative partitioning optimization for large amountof partitions Aleksander Alekseev <a.alekseev@postgrespro.ru>
Re: Declarative partitioning optimization for large amountof partitions Amit Langote <amitlangote09@gmail.com>
Hi Aleksander,

On 2017/03/07 0:22, Aleksander Alekseev wrote:
> Hello.
> 
> OK, here is a patch.
> 
> Benchmark, before:
> 
> ```
> number of transactions actually processed: 1823
> latency average = 1153.495 ms
> latency stddev = 154.366 ms
> tps = 6.061104 (including connections establishing)
> tps = 6.061211 (excluding connections establishing)
> ```
> 
> Benchmark, after:
> 
> ```
> number of transactions actually processed: 2462
> latency average = 853.862 ms
> latency stddev = 112.270 ms
> tps = 8.191861 (including connections establishing)
> tps = 8.192028 (excluding connections establishing)
> ```
> 
> +35% TPS, just as expected. Feel free to run your own benchmarks on
> different datasets and workloads. `perf top` shows that first bottleneck
> is completely eliminated.

That seems like a good gain.

> I did nothing about the second bottleneck
> since as Amit mentioned partition-pruning should solve this anyway and
> apparently any micro-optimizations don't worth an effort.

Sorry, I didn't mean to dissuade you from trying those
micro-optimizations.  If general inheritance cases can benefit from it
(which, until we have a different method, will be used by partitioned
tables as well), I think we should try it.

Thanks,
Amit




В списке pgsql-hackers по дате отправления
От: Michael Paquier
Дата:
От: Amit Langote
Дата:
FAQ