Magento 2 – Mass update of value of custom EAV attribute

We’ve got custom EAV attribute for product entity, which needs to be updated regurarly (once a day). We have about 1000 products for now, but amount of products will be growing up quickly.

How to mass update the value of this attribute for all products without killing the web server?

At the moment we are using $ product->setData(...,...) and save product through Product Repository. The server terminates execution after about 250 products though.