Any side-effects/implications of changing time_zone config in MySQL from SYSTEM to +00:00?

Hi Folks,

We have a date time column defined as datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6).

We use UTC on our machines. We found that changing the value of @@session.time_zone from SYSTEM to +00:00 reduced kernel calls and gave better performance in use cases that do lot of inserts/updates.

In both cases (ie +00:00 or SYSTEM) it should be using UTC time zone, right? Are there any side-effects/implications of changing the value from SYSTEM to +00:00 that I need to be aware of?

We are thinking of changing @@global.time_zone as well to +00:00.

Thanks,
Vamsi

1 Like

Hello @Vamsi,
If your system/OS timezone is currently UTC, changing MySQL to +00:00 should be the same thing as UTC. Very interesting that this saves resources. I guess because using SYSTEM causes MySQL to make a request to the OS vs just calculating itself.

1 Like

ok, thank you!
Vamsi

1 Like

I know I’m late to the party, but this forum topic was third in a google search for mysql time zone system calls; The issue is possibly related to https://bugzilla.redhat.com/show_bug.cgi?id=1244585
There was a good article here MySQL time_zone and CPU Spike another performance troubleshooting

1 Like