We should figure out how to batch this check _Originally posted by @lutter in https://github.com/graphprotocol/graph-node/pull/2286#r596227885_ `deployment_store.rs` relies on calls to `check_interface_entity_uniqueness` for each entity that is processed by inserts and overwrites. Maybe we can optimize database calls with a custom query.