(cost=18592595.99..20378820.29 rows=34023320 width=44)
-> Sort (cost=18592595.99..18677654.29 rows=34023320 width=40)
Sort Key: lst.devtodev_id, ((timezone('UTC'::text, to_timestamp(((lst.time_)::integer)::double precision)))::date), lst.player_level, (timezone('UTC'::text, to_timestamp(((lst.time_)::integer)::double precision))) DESC
-> WindowAgg (cost=9759066.85..11545291.15 rows=34023320 width=40)
-> Sort (cost=9759066.85..9844125.15 rows=34023320 width=36)
Sort Key: lst.devtodev_id, ((timezone('UTC'::text, to_timestamp(((lst.time_)::integer)::double precision)))::date), lst.player_level, (timezone('UTC'::text, to_timestamp(((lst.time_)::integer)::double precision)))
-> Hash Join (cost=5877.87..2711762.02 rows=34023320 width=36)
Hash Cond: (lst.devtodev_id = ut.devtodev_id)
-> Seq Scan on level_start_tbl lst (cost=0.00..903219.20 rows=34023320 width=23)
-> Hash (cost=4130.83..4130.83 rows=100483 width=16)
-> Seq Scan on users_tbl ut (cost=0.00..4130.83 rows=100483 width=16)
Индексы на level_start_tbl.devtodev_id и users_tbl.devtodev_id отсутствуют?)
Обсуждают сегодня