那里我想调音
用于PostgreSQL的Google云SQL
例子目前,我正在努力消除分拣速度下降:
Sort Method: external merge Disk: 39592kB
马上
work_mem
设置为
4MB
,看起来太小了。阅读文档后,我没有找到如何更改此设置的方法。通过Web GUI和命令行是不可能的:
$ gcloud sql instances patch reporting-dev --database-flags work_mem=128MB
The following message will be used for the patch API method.
{"project": "xxx-153410", "name": "reporting-dev", "settings": {"databaseFlags": [{"name": "work_mem", "value": "128MB"}]}}
WARNING: This patch modifies a value that requires your instance to be
restarted. Submitting this patch will immediately restart your
instance if it's running.
Do you want to continue (Y/n)? Y
ERROR: (gcloud.sql.instances.patch) HTTPError 404: Flag requested cannot be set.
有什么想法吗?