Update all segments at all sites to "segmented reports are pre-processed (faster, requires cron)"

I saw we have a significant amount of segments set to “segmented reports are processed in real time” and I wanna update all via CLI or SQL to “segmented reports are pre-processed (faster, requires cron)” (latest matomo version).

What is the best way to go?

It looks like in the table SEGMENT the field auto_archive should be set to 1.

Anyone can confirm this?