Bulk create duplicate error

Thanks @mark-piller

I created this function to update the ranking of players in my database, but when there are many players, saving individually will greatly increase the amount of API calls. Every time there is a new game result, it means hundreds of API calls due to saving one by one. Is there any other way to solve this?