add missing indices on crawls
This commit is contained in:
parent
992ed6b9bb
commit
144a6e842f
|
@ -17,6 +17,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|
||||||
|
- Added missing indices on crawls and crawl_interactions tables.
|
||||||
|
|
||||||
### Security
|
### Security
|
||||||
|
|
||||||
## [2.6.0 - 2019-08-10]
|
## [2.6.0 - 2019-08-10]
|
||||||
|
|
|
@ -0,0 +1,9 @@
|
||||||
|
defmodule Backend.Repo.Migrations.AddCrawlsIndex do
|
||||||
|
use Ecto.Migration
|
||||||
|
|
||||||
|
def change do
|
||||||
|
create index(:crawls, [:instance_domain])
|
||||||
|
create index(:crawl_interactions, [:source_domain])
|
||||||
|
create index(:crawl_interactions, [:target_domain])
|
||||||
|
end
|
||||||
|
end
|
Loading…
Reference in a new issue