mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-06 06:48:21 +00:00
chore: update comment
This commit is contained in:
parent
ae0d92ead0
commit
2cd0cacb33
1 changed files with 3 additions and 4 deletions
|
|
@ -73,11 +73,10 @@ export function findTenantSchema(organisationId: string): string {
|
|||
return `workspace_${organisationId}`;
|
||||
}
|
||||
|
||||
// TODO: Cloud TJDB SQL mode is disabled: Use public schema for cloud edition
|
||||
// This is because Postgrest doesn't handle loading large amount of schemas in memory
|
||||
// We need to migrate to use Table based access control instead of schema based access control
|
||||
export function isSQLModeDisabled(): boolean {
|
||||
// Cloud TJDB SQL mode disabled: Use public schema for cloud edition
|
||||
// This is because Postgrest doesn't handle loading large amount of schemas in memory
|
||||
// This is required to expose SQL mode on cloud edition
|
||||
// For CE/EE, we use tenant-specific schema with SQL mode
|
||||
return process.env.TJDB_SQL_MODE_DISABLE === 'true' || getTooljetEdition() === TOOLJET_EDITIONS.Cloud;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue