Query performance in 9.6.24 vs 14.10

Поиск
Список
Период
Сортировка
От Ron Johnson
Тема Query performance in 9.6.24 vs 14.10
Дата
Msg-id CANzqJaAzdbsUvJFStM+TRU8bCo7QXsH0nS1_vmM9=zKffEvsLg@mail.gmail.com
обсуждение исходный текст
Ответы Re: Query performance in 9.6.24 vs 14.10
Список pgsql-general
(I don't know how this will look in text mode.  Hopefully it will be comprehensible in the archives.)

This is the summary of EXPLAIN (ANALYZE) on eight frequently-run complex queries from our application, extracted from the Postgresql log because either the BIND or SELECT takes longer than 3000 ms.  I ran them each 13 times in succession, on otherwise-idle VMs with exact specifications. The 9.6 server runs RHEL6, and the 14 server runs RHEL8.

The Planning costs are so high, I think, because the tables are partitioned using Inheritance.  (This will NOT be changed, yet.)

Naturally, Your Mileage Will Vary.

    Qry
   Num
PG VersionFIRSTLASTMINMAXMEDIANSpeed-up
Pct
Planning






019.6.2417,922.48818,160.74216,695.14018,580.26117,741.328
14.1013,176.26213,483.96112,934.86613,689.54013,483.96124.00%








029.6.243,673.8054,141.2063,470.7424,141.2063,673.805
14.101,777.9581,700.2641,675.1371,777.9581,718.57153.22%








039.6.24239.675268.971225.361348.565271.909
14.10218.283220.856215.588225.895221.48518.54%








049.6.244,394.4794,111.6733,632.2974,394.4794,006.170
14.11,960.5751,937.5041,928.8162,094.3651,997.43250.14%








059.6.243,674.3143,876.5373,192.7844,105.5413,789.318
14.101,790.9751,753.9011,677.1511,846.9111,760.37253.54%








069.6.243,431.2694,026.2703,431.2694,026.2703,702.654
14.101,801.9591,876.3251,653.1441,876.3251,725.93353.39%








079.6.244,273.9174,268.9793,888.9954,553.2674,157.208
14.101,914.3812,006.0531,914.3812,042.7191,980.04352.37%








089.6.244,403.4664,338.0424,062.0994,699.2334,360.336
14.101,961.0351,866.1271,866.1272,037.4411,956.78355.12%








Execution






019.6.242,245.9962,071.4231,774.2612,245.9961,984.238
14.10540.961469.541462.658540.961469.66076.33%








029.6.2436.87537.04733.71840.29937.513
14.1031.91029.61828.38731.91030.28419.27%








039.6.24587.939553.042538.726594.222556.793
14.10172.890159.617154.603172.890162.92470.74%








049.6.241,068.2301,081.0441,022.0871,100.8841,068.230
14.10157.058161.618157.058167.006160.24385.00%








059.6.2415.60817.94915.17119.32917.211
14.109.5389.8378.92010.9179.57244.38%








069.6.2454.79653.21653.21667.37857.401
14.1060.13550.89947.10860.13548.26715.91%








079.6.241,041.9811,104.6881,031.7571,134.4551,090.329
14.10158.666159.348155.695162.539159.97285.33%








089.6.241,142.1641,160.8011,103.7161,249.8521,191.081
14.10159.354155.111155.111162.797158.15786.72%

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: field error on refreshed materialized view
Следующее
От: David Rowley
Дата:
Сообщение: Re: Query performance in 9.6.24 vs 14.10