Created
January 26, 2013 05:47
-
-
Save james4k/4640436 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
EXPLAIN ANALYZE | |
SELECT appid, max(time) AS maxtime FROM game_players | |
WHERE | |
appid != 0 AND time < date_trunc('hour', CURRENT_TIMESTAMP) | |
GROUP BY appid; | |
QUERY PLAN | |
----------------------------------------------------------------------------------------------------------------------------------- | |
HashAggregate (cost=488892.89..488930.88 rows=3799 width=12) (actual time=11097.638..11098.185 rows=3855 loops=1) | |
-> Seq Scan on game_players (cost=0.00..410984.68 rows=15581643 width=12) (actual time=0.209..7370.670 rows=15581143 loops=1) | |
Filter: ((appid <> 0) AND ("time" < date_trunc('hour'::text, now()))) | |
Rows Removed by Filter: 4461 | |
Total runtime: 11098.476 ms | |
(5 rows) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment