# High CPU usage on Mysql on Segments - how to do a negative -i flag

**URL:** <https://forum.mautic.org/t/high-cpu-usage-on-mysql-on-segments-how-to-do-a-negative-i-flag/20962>\
**Category:** Product Support\
**Created:** [September 22, 2021, 1:27pm UTC](https://forum.mautic.org/t/high-cpu-usage-on-mysql-on-segments-how-to-do-a-negative-i-flag/20962 "2021-09-22T13:27:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mikew](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mikew/32/5156_2.png) [@mikew](https://forum.mautic.org/u/mikew)\
**Post date:** [September 22, 2021, 1:27pm UTC](https://forum.mautic.org/t/high-cpu-usage-on-mysql-on-segments-how-to-do-a-negative-i-flag/20962/1 "2021-09-22T13:27:07Z")

</div>

We are seeing a terribly high CPU usage on some of our really big servers, and the main issue IMO is very big segments, we do however have dynamic segments that need to be run more often.

I have written in the past about using the -I flag with segment number to update a specific segment, the question is how would I tell the segment:update to update all segments except for a specific one ? considering in the future there may be more segments made that will need to be updated

---

<div class="post-metadata">

**Author:** ![mikew](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mikew/32/5156_2.png) [@mikew](https://forum.mautic.org/u/mikew)\
**Post date:** [September 26, 2021, 10:00am UTC](https://forum.mautic.org/t/high-cpu-usage-on-mysql-on-segments-how-to-do-a-negative-i-flag/20962/2 "2021-09-26T10:00:23Z")

</div>

Anyone have any creative ida on how to better set up something like this ?
