Re: Potential performance issues

2021-03-01 Thread Hannu Krosing
... * Remove `LIMIT` to prevent any non-deterministic behaviors This seems counterproductive, as for example PostgreSQL has special handling of "fast start" queries which is triggered by presence of LIMIT or OFFSET, so this will miss some optimisations. Also,it is not like removing LIMIT is some

Re: Postgres performance comparing GCP and AWS

2021-03-01 Thread Hannu Krosing
Have you tried to set the instance running on GCP to have similar shared_buffers as the AWS database ? What you described has a much lower cache hit rate on GCS and 2X the shared buffers on AWS which could well explain much of the difference in execution times. DETAILS: Query explain for Postgres

Re: Potential performance issues

2021-03-01 Thread Pavel Stehule
Hi po 1. 3. 2021 v 15:59 odesílatel Jung, Jinho napsal: > Andrew, Bob, Michael > > Thanks for the valuable feedback! Even with the default setting, > PostgreSQL mostly showed good performance than other DBMSs. The reported > queries are a very tiny portion among all executed queries (e.g., <0.00

Re: Potential performance issues

2021-03-01 Thread Jung, Jinho
Andrew, Bob, Michael Thanks for the valuable feedback! Even with the default setting, PostgreSQL mostly showed good performance than other DBMSs. The reported queries are a very tiny portion among all executed queries (e.g., <0.001%). As you guided, we will make the follow-up report after we te

Re: Potential performance issues

2021-03-01 Thread Rick Otten
On Mon, Mar 1, 2021 at 8:44 AM Bob Jolliffe wrote: > Was just about to reply similarly. Mind you it perhaps does raise the > question : are the default postgresql settings perhaps too > conservative or too static. For example, in the absence of other > explicit configuration, might it make more

Re: Potential performance issues

2021-03-01 Thread Thomas Kellerer
Jung, Jinho schrieb am 28.02.2021 um 16:04: > # Performance issues discovered from differential test > > For example, the below query runs x1000 slower than other DBMSs from > PostgreSQL. > >     select ref_0.ol_amount as c0 >     from order_line as ref_0 >         left join stock as ref_1 >      

Re: Potential performance issues

2021-03-01 Thread Bob Jolliffe
Was just about to reply similarly. Mind you it perhaps does raise the question : are the default postgresql settings perhaps too conservative or too static. For example, in the absence of other explicit configuration, might it make more sense for many use cases for postgres to assess the physical

Re: Potential performance issues

2021-03-01 Thread MichaelDBA
Ha, Andrew beat me to the punch! Andrew Dunstan wrote on 3/1/2021 7:59 AM: On 2/28/21 10:04 AM, Jung, Jinho wrote: # install DBMS sudo su make install adduser postgres rm -rf /usr/local/pgsql/data mkdir /usr/local/pgsql/data chown -R postgres /usr/local/pgsql/data su - postgres /usr/local/pgsql

Re: Potential performance issues

2021-03-01 Thread MichaelDBA
Hi, It is worthy work trying to compare performance across multiple database vendors, but unfortunately, it does not really come across as comparing apples to apples. For instance, configuration parameters:  I do not see where you are doing any modification of configuration at all.  Since DB

Re: Potential performance issues

2021-03-01 Thread Andrew Dunstan
On 2/28/21 10:04 AM, Jung, Jinho wrote: > # install DBMS > sudo su > make install > adduser postgres > rm -rf /usr/local/pgsql/data > mkdir /usr/local/pgsql/data > chown -R postgres /usr/local/pgsql/data > su - postgres > /usr/local/pgsql/bin/initdb -D /usr/local/pgsql/data > /usr/local/pgsql/bin

Potential performance issues

2021-03-01 Thread Jung, Jinho
# Performance issues discovered from differential test Hello. We are studying DBMS from GeorgiaTech and reporting interesting queries that potentially show performance problems. To discover such cases, we used the following procedures: * Install four DBMSs with the latest version (PostgreSQL, S