Poor performance on a PostgreSQL query

半腔热情 提交于 2019-12-01 21:44:05

To get execution time on the server without data transfer to the client, use EXPLAIN ANALYZE.

Or use the keyboard shortcut in the pgAdmin query tool: SHIFTF7 (depending on your OS and version, check the query menu for keyboard shortcut).

BTW, if you consult the pgAdmin manual, use the current release - 1.18 as of now:
http://www.pgadmin.org/docs/1.18/query.html

You are measuring the time it takes to transfer the rows to pgAdmin:

http://www.pgadmin.org/docs/1.4/query.html

" If a dataset was returned, not only the elapsed time for server execution is displayed, but also the time to retrieve the data from the server to the Data Output page."

If you try a "select count(*) from sometable" it will as fast as the old pc.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!