Database objects such as tables, views, and functions are presently schema-qualified specifically with the schema name Gradebook, which requires each tenant to unnecessarily use a dedicated database for each tenant.
The better approach is to not schema-qualify object names and execute various object-creation and alteration scripts in the context of a tenant-specific schema.
The proposed revision also makes dev and testing easy because database objects can easily be created in temporary schemas.
The required change is rather simple: simply remove schema name from database object names. For example, replace all instances of the names Gradebook.Instructor and Gradebook.getScheduleDates with just Instructor and getScheduleDates, respectively.
Database objects such as tables, views, and functions are presently schema-qualified specifically with the schema name
Gradebook
, which requires each tenant to unnecessarily use a dedicated database for each tenant.The better approach is to not schema-qualify object names and execute various object-creation and alteration scripts in the context of a tenant-specific schema.
The proposed revision also makes dev and testing easy because database objects can easily be created in temporary schemas.
The required change is rather simple: simply remove schema name from database object names. For example, replace all instances of the names
Gradebook.Instructor
andGradebook.getScheduleDates
with justInstructor
andgetScheduleDates
, respectively.