Top "Postgresql-performance" questions

About PostgreSQL query optimisation.

PostgreSQL query taking too long

I have database with few hundred millions of rows. I'm running the following query: select * from "Payments" as p inner …

performance postgresql postgresql-performance
Postgres NOT IN performance

Any ideas how to speed up this query? Input EXPLAIN SELECT entityid FROM entity e LEFT JOIN level1entity l1 …

performance postgresql postgresql-performance
Optimize Postgres timestamp query range

I have the following table and indices defined: CREATE TABLE ticket ( wid bigint NOT NULL DEFAULT nextval('tickets_id_seq'::…

postgresql indexing query-optimization database-partitioning postgresql-performance
Postgres: Optimizing querying by datetime

I have a table that has a datetime field "updated_at". A lot of my queries will be querying on …

sql performance postgresql postgresql-performance
Improve performance on SQL query with Nested Loop - PostgreSQL

I am using PostgreSQL and I have a weird problem with my SQL query. Depending on wich date paramter I'm …

sql postgresql postgresql-performance
Vacuum tables in postgresql

Using postgresql-9.2,at this moment am finding the tables that have dead_tuples using the following query select relname from …

sql postgresql postgresql-performance vacuum
Postgres slow running delete query

We have a table which has just over 62k rows. We are running a very simple delete query on it …

postgresql foreign-keys sql-delete postgresql-performance
Configuration parameter work_mem in PostgreSQL on Linux

I have to optimize queries by tuning basic PostgreSQL server configuration parameters. In documentation I've came across the work_mem …

postgresql postgresql-performance server-configuration
How to force PostgreSQL to use my index?

CREATE TABLE product ( product_id SERIAL, factory_key VARCHAR(60), relevant BOOLEAN ) Indexes: "product_factory_key_key" btree (factory_key); "product_…

postgresql indexing postgresql-performance
Any downsides of using data type "text" for storing strings?

According to the PostgreSQL Documentation, they support 3 data-types for character data: character varying(n), varchar(n) variable-length with limit character(…

sql postgresql types postgresql-performance