Set Wifi As Metered Connection
This feature is not implemented yet. It is drafted in the wiki, to not check for updates when a connection is detected as a mobile broadband connection.
For now, you should disable auto-updates or check for updates, if you use your mobile connection too often, to save bandwitdh, then re-enable it when you connect to wifi.
In Ubuntu 20.04 They added metered connection option.
GUI:
In Wifi setting click on the gear icon next to your wifi ssid. At the bottom you will see the checkbox for metered connection.
Terminal:
Turn on:
nmcli connection modify YOUR_WIFI_SSID connection.metered yes
Show current status:
nmcli -f connection.metered connection show YOUR_WIFI_SSID