Question : The following examples have been tested in PostgreSQL versions 11 and 12. A few of the tables involved […]
Tag: postgresql-performance
How to reduce the required frequency of ANALYSE on a postgres table?
Question : I have a Postgres database into which about 20 million rows are inserted every day. The records are […]
How to prevent seek pagination from doing sequential scan over entire table
Question : I have 3 tables and a materialized view: resource_categories contains all category names and metadata create table if […]
Performance issue during count Postresql 9.4 – Creating index on pivot table key…?
Question : Disclaimer: I am new to Postgres, I need some advice… I have a huge table, with full of […]
Use BIGINT and twice the storage space or INTEGER but with extra operations?
Question : Suppose I’ve a table named agency with some columns: internal_id(integer, unique) , external_id(bigint, unique) , name, location, created_at, […]
PostgreSql subquery evaluated without filtering
Question : I am struggling to optimize the following query: SELECT tbA.id, tbB.createDate FROM tbA LEFT OUTER JOIN (SELECT id, […]
Autocomplete using Postgres Optimization
Question : I’m trying to build an autocomplete feature using postgres. Here’s the steps that I followed: Since the autocomplete […]
Best index for case insensitive match on one field and ordering by another field
Question : I want to run a query like this: SELECT * FROM “core_user” WHERE UPPER(“core_user”.”email”::text) = UPPER(’emailsearch@example.com’) ORDER BY […]
What’s the (Big O) computational complexity of a PostgreSQL recursive common table expression?
Question : For example, taking this StackOverflow #44620695 question, recursive path aggregation and CTE query for top-down tree postgres as […]
Unix timestamp vs timestamptz index performance [closed]
Question : Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this question? […]