I used below query to increase max query store size:
> ALTER DATABASE [QueryStoreDB] SET QUERY_STORE (MAX_STORAGE_SIZE_MB = 1024);
But after SQL DevOps deployment, it was getting reverted to default 100 MB.
How to keep it always at 1000 MB and stop getting reverted?
You need to open SQL project in Visual Studio.
Right-click on project and select 'properties'.
Click on database settings as shown below:
In 'operational', you need to tweak the 'Max Storage Size (MB)' value from 100 to 1000.
Save Project and commit .sqlproj file.
You would see new line like below added to your .sqlproj: