Search Results
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 |
Performance issues with PostgreSQL queries
0
votes
1
answer
122
views
Index for a Postgres query with a sort and an equality
This query is very slow:
EXPLAIN (ANALYZE, buffers) SELECT *
FROM
"Follows" AS "Follow"
INNER JOIN "Users" AS "followee" ON "Follow"."followeeId" = "followee"."id"
WHERE
"Follow"."followerId" …
2
votes
2
answers
152
views
How can one optimize a query involving a sort and a LIKE?
Here is the query:
EXPLAIN ANALYZE SELECT
*
FROM
"Users" AS "User"
WHERE
"User"."name" LIKE 'garr%'
AND "User"."id" NOT IN (2449214)
AND "User"."hellbanned" IS NULL
AND "User"."hellbanPos …
70
votes
3
answers
117k
views
Optimizing a Postgres query with a large IN
This query gets a list of posts created by people you follow. You can follow an unlimited number of people, but most people follow < 1000 others.
With this style of query, the obvious optimization wo …
0
votes
2
answers
8k
views
What indexes should one use to optimize a PostgreSQL query with a JOIN depth of 2?
Disclaimer: I am relatively new to PostgreSQL.
I'm wondering how to optimize a query that does 2 INNER JOINs. My scenario is fairly simple:
Select Posts with a photo (Posts.photo IS NOT NULL) and a …