Skip to content

Commit

Permalink
set defaults for query insights
Browse files Browse the repository at this point in the history
  • Loading branch information
fredzqm committed May 10, 2024
1 parent d2e1172 commit 19f2e0a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/gcp/cloudsql/cloudsqladmin.ts
Expand Up @@ -51,6 +51,8 @@ export async function createInstance(
userLabels: { "firebase-data-connect": "ft" },
insightsConfig: {
queryInsightsEnabled: true,
queryPlansPerMinute: 5, // Match the default settings
queryStringLength: 1024, // Match the default settings
},
},
});
Expand Down
2 changes: 2 additions & 0 deletions src/gcp/cloudsql/types.ts
Expand Up @@ -56,6 +56,8 @@ export interface DatabaseFlag {

interface InsightsConfig {
queryInsightsEnabled: boolean;
queryPlansPerMinute: number;
queryStringLength: number;
}

// TODO: Consider splitting off return only fields and input fields into different types.
Expand Down

0 comments on commit 19f2e0a

Please sign in to comment.