Skip to content
This repository has been archived by the owner on Oct 4, 2024. It is now read-only.

Commit

Permalink
Temporarily hardcode entities count to improve index performance (#268)
Browse files Browse the repository at this point in the history
  • Loading branch information
jrchatruc authored Sep 26, 2023
1 parent 0d34575 commit 57dce98
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions lib/starknet_explorer/data.ex
Original file line number Diff line number Diff line change
Expand Up @@ -237,10 +237,11 @@ defmodule StarknetExplorer.Data do
[]
end

def get_entity_count(network) do
def get_entity_count(_network) do
Map.new()
|> Map.put(:message_count, Message.get_total_count(network))
|> Map.put(:events_count, Events.get_total_count(network))
|> Map.put(:transaction_count, Transaction.get_total_count(network))
# |> Map.put(:message_count, Message.get_total_count(network))
|> Map.put(:message_count, 21021)
|> Map.put(:events_count, 6_030_904)
|> Map.put(:transaction_count, 1_209_670)
end
end

0 comments on commit 57dce98

Please sign in to comment.