Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options questions only not deleted user 4403

Performance issues with PostgreSQL queries

2 votes
1 answer
275 views

How to gauge performance of switching to PostgreSQL table partitioning?

I have a table in a PostgreSQL database containing about 100m records that's mostly read-only with a few monthly writes to update new data. It has over 300 columns, and is heavily indexed for specific …
Cerin's user avatar
  • 1,385
4 votes
1 answer
4k views

How to optimize min/max queries for large tables on PostgreSQL

How do you index a table in PostgreSQL so that min/max queries return as quickly as possible? I have a large table with a couple hundred million rows. Each row as a source_id and a date when the reco …
Cerin's user avatar
  • 1,385
9 votes
1 answer
17k views

PostgreSQL not using index during count(*)

I have a COUNT(*) query in PostgreSQL that runs often, and looks like: SELECT COUNT(*) FROM customer WHERE source_id IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16); This query take …
Cerin's user avatar
  • 1,385