Without these indexes the query can not be finished. But on staging requests for `tokenURI` are timing out. That's why we have so many records with empty metadata.pull/2761/head
parent
766abfc82d
commit
2de98bf627
@ -0,0 +1,8 @@ |
||||
defmodule Explorer.Repo.Migrations.AddIndexesForTokenInstrancesQuery do |
||||
use Ecto.Migration |
||||
|
||||
def change do |
||||
create_if_not_exists(index(:token_instances, [:token_id])) |
||||
create_if_not_exists(index(:tokens, [:type])) |
||||
end |
||||
end |
Loading…
Reference in new issue