%pip install semantic-link-labs
import sempy_labs as labs
dataset = '' # Enter your dataset name
workspace = None # Enter your workspace name (if set to None it will use the workspace in which the notebook is running)
labs.list_qso_settings(dataset=dataset, workspace=workspace )
Setting 'auto_sync' to True will ensure that the semantic model automatically syncs read-only replicas. Setting this to False will necessitate syncing the replicas (i.e. via the qso_sync function).
The 'max_read_only_replicas' is the maximum number of read-only replicas for the semantic model (0-64, -1 for automatic number of replicas).
labs.set_qso(dataset=dataset, auto_sync=False, max_read_only_replicas=-1, workspace=workspace)
labs.qso_sync(dataset=dataset, workspace=workspace)
dfA, dfB = labs.qso_sync_status(dataset=dataset, workspace=workspace)
display(dfA)
display(dfB)
labs.disable_qso(dataset=dataset, workspace=workspace)
labs.set_semantic_model_storage_format(dataset=dataset, storage_format='Large', workspace=workspace)
labs.set_semantic_model_storage_format(dataset=dataset, storage_format='Small', workspace=workspace)