add database index for node ids to increase performance
This commit is contained in:
@ -36,6 +36,7 @@ model Node {
|
||||
|
||||
@@index(created_at)
|
||||
@@index(updated_at)
|
||||
@@index(node_id)
|
||||
@@map("nodes")
|
||||
}
|
||||
|
||||
@ -77,6 +78,7 @@ model NeighbourInfo {
|
||||
|
||||
@@index(created_at)
|
||||
@@index(updated_at)
|
||||
@@index(node_id)
|
||||
@@map("neighbour_infos")
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user