Advertisement
Guest User

Untitled

a guest
Apr 7th, 2020
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. EXPLAIN ANALYZE
  2. SELECT *
  3. FROM pvp_player
  4. JOIN profile_bit ON profile_bit.profile_id = pvp_player.profile_id
  5. AND profile_bit.bit_name = 'ArmyBit'
  6. WHERE pvp_player.profile_id != 'GCd67bf7370cc5d82676a5d56550273f92'
  7. AND pvp_player.state IN (2, 3)
  8. AND pvp_player.update_datetime > '2020-04-03'
  9. AND pvp_player.league = 3
  10. ORDER BY abs(pvp_player.fame - 2150) ASC
  11. LIMIT 100;
  12.  
  13.  Limit  (cost=5823.94..5824.19 rows=100 width=1081) (actual time=26.975..26.992 rows=100 loops=1)
  14.    ->  Sort  (cost=5823.94..5824.35 rows=161 width=1081) (actual time=26.974..26.980 rows=100 loops=1)
  15.          Sort Key: (abs((pvp_player.fame - 2150)))
  16.          Sort Method: top-N heapsort  Memory: 76kB
  17.          ->  Nested Loop  (cost=0.98..5818.04 rows=161 width=1081) (actual time=0.082..25.509 rows=1617 loops=1)
  18.                ->  Index Scan using pvp_player_league_fame_idx on pvp_player  (cost=0.43..5335.00 rows=173 width=193) (actual time=0.055..6.154 rows=1617 loops=1)
  19.                      Index Cond: (league = 3)
  20.                      Filter: (((profile_id)::text <> 'GCd67bf7370cc5d82676a5d56550273f92'::text) AND (state = ANY ('{2,3}'::integer[])) AND (update_datetime > '2020-04-03 00:00:00'::timestamp without time zone))
  21.                      Rows Removed by Filter: 3681
  22.                ->  Append  (cost=0.55..2.78 rows=1 width=884) (actual time=0.011..0.011 rows=1 loops=1617)
  23.                      ->  Index Scan using profile_bit_armybit_pkey on profile_bit_armybit  (cost=0.55..2.77 rows=1 width=884) (actual time=0.011..0.011 rows=1 loops=1617)
  24.                            Index Cond: (((profile_id)::text = (pvp_player.profile_id)::text) AND ((bit_name)::text = 'ArmyBit'::text))
  25.  Planning Time: 0.832 ms
  26.  Execution Time: 27.109 ms
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement