This page describes how to enable or disable the columnar engine on an AlloyDB for PostgreSQL instance. It also covers how to configure an appropriate initial size for its column store.
Each of these actions involves changing the value of a database flag on one of your AlloyDB instances. For more information about setting database flags, see Configure an instance's database flags.
Enable the columnar engine
To enable columnar engine on the primary instance or a read pool
instance, set the instance's
After you set this flag, the instance automatically restarts.
Configure the size of the column store
While the columnar engine is enabled on an instance, AlloyDB allocates a portion of the instance's memory to store its columnar data. Dedicating high-speed RAM to your column store ensures that AlloyDB can access the columnar data as rapidly as possible.
If the column store becomes larger than the allocated portion of your instance's memory, AlloyDB automatically uses the instance's underlying cache layer to store the additional columnar data.
By default, AlloyDB allocates 30% of the instance's memory to the column store, and automatically adjusts the total allocation if you resize the instance.
If you instead want to set the allocation to a fixed and specific size,
To have AlloyDB return to proportional allocation after
that, delete the flag from the instance.
For more information on setting or deleting flags, see Configure an instance's database flags.
Disable the columnar engine
To disable the columnar engine on the primary instance or a read pool
instance, set that instance's
AlloyDB automatically restarts the instance after you update this flag.
Learn about auto-columnarization.