Use indexed column in count

pull/339/head
Tim Mecklem 7 years ago
parent 694a89ed93
commit 3ab9033c3f
  1. 2
      apps/explorer/lib/explorer/chain/statistics.ex

@ -30,7 +30,7 @@ defmodule Explorer.Chain.Statistics do
"""
@block_velocity_query """
SELECT count(blocks.hash)
SELECT count(blocks.inserted_at)
FROM blocks
WHERE blocks.inserted_at > NOW() - interval '1 minute'
"""

Loading…
Cancel
Save