Improve get mined blocks query performance: remove grouping by number, timestamp

pull/3203/head
Victor Baranov 4 years ago
parent 0952185891
commit abc381af58
  1. 2
      apps/explorer/lib/explorer/etherscan.ex

@ -271,8 +271,6 @@ defmodule Explorer.Etherscan do
b in Block,
where: b.miner_hash == ^address_hash,
order_by: [desc: b.number],
group_by: b.number,
group_by: b.timestamp,
limit: ^merged_options.page_size,
offset: ^offset(merged_options),
select: %{

Loading…
Cancel
Save