Lots of errors while executing:
INSERT INTO `wb_entity_per_page` (epp_entity_id,epp_entity_type,epp_page_id,epp_redirect_target) VALUES ('25615547','item','27568157',NULL) Wikibase\Repo\Store\SQL\EntityPerPageTable::{closure} 10.64.16.144 1213 Deadlock found when trying to get lock; try restarting transaction
https://logstash.wikimedia.org/#dashboard/temp/AVXGj9flc8qLrUhXb891
This was an excessive usage of the API (T139618), but maybe there is room for improvement?