{"title":"Performance of Business Central on-premises installations","url":"https://jonas-paprotka.de/docs/dev-itpro/performance/performance-onprem/","by":"JOP-AL","license":"Copyright (c) Microsoft Corporation. CC BY 4.0, https://creativecommons.org/licenses/by/4.0/; code samples MIT. From https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/performance/performance-onprem, MicrosoftDocs/dynamics365smb-devitpro-pb at 828b6ee (2026-11-19). Changed: includes filled in, links to this site, and for agents shortened without dropping a fact.","credit":"Microsoft Corporation, CC BY 4.0","origin":"https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/performance/performance-onprem","source":{"name":"Business Central developer and IT pro docs","repo":"https://github.com/MicrosoftDocs/dynamics365smb-devitpro-pb","commit":"828b6ee72fcd75755627cd6011f3d20899217ab2","date":"2026-11-19"},"checked":"2026-11-19","description":"Learn how to tune the technology stack, scale components, and measure performance for Business Central on-premises installations.","date":"2021-04-01","meta":{"topic":"reference"},"outline":[{"level":1,"title":"Performance of Business Central on-premises installations","slug":"performance-of-business-central-on-premises-installations","at":0,"chars":11974},{"level":2,"title":"Performance tuning the technology stack","slug":"performance-tuning-the-technology-stack","at":556,"chars":9106},{"level":3,"title":"Client","slug":"client","at":775,"chars":333},{"level":3,"title":"Web Server","slug":"web-server","at":1108,"chars":226},{"level":3,"title":"Business Central Server (service-tier)","slug":"business-central-server-service-tier","at":1334,"chars":4149},{"level":4,"title":"Web service limits","slug":"web-service-limits","at":4871,"chars":327},{"level":4,"title":"Task Scheduler","slug":"task-scheduler","at":5198,"chars":285},{"level":3,"title":"Database (SQL Server or Azure SQL Database)","slug":"database-sql-server-or-azure-sql-database","at":5483,"chars":4179},{"level":4,"title":"Tune data access","slug":"tune-data-access","at":5877,"chars":303},{"level":4,"title":"Manage database indexes","slug":"manage-database-indexes","at":6180,"chars":983},{"level":4,"title":"SQL Server vs. Azure SQL Database","slug":"sql-server-vs-azure-sql-database","at":7163,"chars":229},{"level":4,"title":"Using Read Scale-Out","slug":"using-read-scale-out","at":7392,"chars":671},{"level":4,"title":"Troubleshooting database performance issues","slug":"troubleshooting-database-performance-issues","at":8063,"chars":580},{"level":4,"title":"Performance of BACPAC generation","slug":"performance-of-bacpac-generation","at":8643,"chars":552},{"level":4,"title":"Performance impact on setting up CDC on SQL Server","slug":"performance-impact-on-setting-up-cdc-on-sql-server","at":9195,"chars":233},{"level":4,"title":"Performance impact of enabling Transparent Data Encryption (TDE)","slug":"performance-impact-of-enabling-transparent-data-encryption-tde","at":9428,"chars":234},{"level":2,"title":"Scaling Business Central","slug":"scaling-business-central","at":9662,"chars":1398},{"level":2,"title":"Measure and monitor performance","slug":"measure-and-monitor-performance","at":11060,"chars":633},{"level":2,"title":"Related information","slug":"related-information","at":11693,"chars":281}],"text":"# Performance of Business Central on-premises installations\nIn this section, we highlight many resources that might be useful when doing performance investigations and tuning of on-premises installations. On-premises, in this context, means deployment to any environment that isn't the Business Central service. Running Business Central on Azure resources is also considered on-premises.\nContent is ordered into the following groups:\n Tuning the technology stack<#tuningstack>\n Scaling Business Central<#scaling>\n Measure and monitor performance<#measure>\n## Performance tuning the technology stack\nA Business Central installation typically consists of the following components, which can be tuned to improve performance:\n Client\n Web Server\n Server (service-tier)\n Database\n### Client\nThere are three things of importance when dealing with client performance:\n Hardware of the computer running the client\n Choice of browser\n Network bandwidth and latency between the client and the data center running Business Central\nThese subjects are described in Performance tips for business users<performance-users>.\n### Web Server\nYou can improve web server performance by configuring Kernel-mode authentication:\n Configuring Kernel Mode Authentication on the Business Central Web Server<../deployment/configure-delegation-web-server#Kernel>\n### Business Central Server (service-tier)\nYou can adjust the following Business Central Server settings related to database performance.\nServer setting|Description|Read more\nBufferedInsertEnabled|Disabling bulk inserts can be helpful when you're troubleshooting failures that occur when inserting records.|Disabling Bulk Inserts<../administration/optimize-sql-bulk-inserts>\nDisableQueryHintForceOrder|Check if this setting is set to true.|Configuring Query Hints for Optimizing SQL Server Performance with Business Central<../administration/sql-server-query-hints>\nDisableQueryHintLoopJoin|Check if this setting is set to true.|Configuring Query Hints for Optimizing SQL Server Performance with Business Central<../administration/sql-server-query-hints>\nDisableSmartSql|If the performance of loading a page that contains FlowFields in Business Central is bad, you might want to try isolating and testing FlowField queries separately.|Troubleshooting: Long Running SQL Queries Involving FlowFields by Disabling SmartSQL<../administration/troubleshooting-queries-involving-flowfields-by-disabling-smartsql>\nEnableCloudReplicationMaintenance|Specifies whether to keep the cloud replication status in the database up to date. When enabled, synchronize operations on tenants and extensions will update records in the Intelligent Cloud Status table, and set change tracking on tables that are configured to replicate data<../developer/properties/devenv-replicatedata-property>.<br /><br />Enabling this setting isn't required for migrating most on-premises solutions to the cloud, and you'll improve synchronization and upgrade performance by disabling it.|Configuring Business Central Server - EnableCloudReplicationMaintenance<../administration/server-instance-settings#preserve-compatibility-and-manage-upgrades>\nEnableProfileCacheSynchronization|Specifies whether profile cache synchronization across multiple server instances is enabled. However, enabling this setting may lower the tenant performance.|Configuring Business Central Server - EnableProfileCacheSynchronization<../administration/server-instance-settings#manage-extensions-and-development>\nSqlBulkImportBatchSize|Specifies how many SQL memory chunks that a data import must be distributed across. Lowering the value increases the number of network transfers and decreases performance. But it also lowers the amount of memory that the server instance consumes.|../administration/server-instance-settings#tune-database-execution\nSessionEventTableRetainInterval<br /><br /> NonInteractiveSessionsLogRetainInterval<br /><br /> SessionEventTablePurgeLookupPeriod|The system table 2000000111 Session Event stores information about sessions between Business Central Server instances and clients. Entries are recorded for various events, for example, when a user signs in or out of the client, or when a web service request starts or stops.<br /><br />It's a good idea to limit the number of entries in this table because performance can be adversely affected as the table size grows. Under normal conditions, you shouldn't experience any problems. But there might be situations or periods, typically dealing with web service calls, during which a high number of session events occur. <br /><br />These three settings enable you to control the table size by specifying how long to keep entries in the table before they're automatically deleted.|Configuring Business Central Server - Session Event Table<../administration/server-instance-settings#maintain-sessions-and-company-data>\n#### Web service limits\nYou can adjust server instance settings related to web service calls to implement resource governance (and avoid resource starvation on the server instances) here:\n ../administration/server-instance-settings#expose-soap-services\n ../administration/server-instance-settings#expose-odata-and-api-services\n#### Task Scheduler\nYou can adjust server instance settings related to the task scheduler to implement resource governance (and avoid resource starvation on the server instances) here:\n Maximum Concurrent Running Tasks<../administration/server-instance-settings#schedule-server-tasks>\n### Database (SQL Server or Azure SQL Database)\nFirst of all, make sure that you avoid common pitfalls in your SQL Server setup:\n Installation Considerations for Microsoft SQL Server and Business Central<../deployment/installation-considerations-for-microsoft-sql-server>\n Setting SQL Compatibility Level to Optimize Database Performance<../administration/optimize-sql-set-compatibility-level>\n#### Tune data access\nThese articles describe how you can use SQL Server table partitioning and data compression to get faster data retrieval:\n Using SQL Server table partitioning<../administration/optimize-sql-data-access>\n Using SQL Server data compression<../administration/optimize-sql-data-access>\n#### Manage database indexes\nDatabase indexes significantly affect performance. While indexes speed up read operations (find, filter, sort, aggregate), they require storage and can slow down write operations because the index must be kept up to date.\nBusiness Central provides tools to view index usage statistics and selectively disable low-use indexes to improve write performance and reduce storage costs. This capability is beneficial for:\n Optimizing tables with high transaction volumes where write performance is critical\n Reducing database storage costs by removing indexes that aren't being used\n Identifying which indexes are actually being used by queries\nYou can view detailed index usage statistics from the Table Information page, including index storage size and query usage metrics. Turn off nonessential indexes while protecting unique indexes, primary keys, SIFT indexes, and $systemid indexes from being disabled.\nSee Manage database index usage</manage-indexes>.\n#### SQL Server vs. Azure SQL Database\nRead more about the difference between SQL Server and Azure SQL Database performance:\n ../deployment/deploy-database-azure-sql-database#differences-between-azure-sql-database-and-sql-server\n#### Using Read Scale-Out\nIf you run the Business Central database in a High Availability architecture, you can use the built-in Read Scale-Out feature in Azure SQL Database or SQL Server to load-balance read-only workloads. Read Scale-Out uses read-only replicas instead of sharing the primary database. This way, read-only workloads (reports, queries, API pages, and OData GET requests) will be isolated from the main read-write workload (codeunits). They won't affect the performance of business processes.\nLearn more about using Read Scale-Out for better performance in Using Read Scale-Out for Better Performance<../administration/database-read-scale-out-overview>.\n#### Troubleshooting database performance issues\nThese articles can be useful when troubleshooting database performance issues:\n Troubleshooting: Long Running SQL Queries Involving FlowFields by Disabling SmartSQL<../administration/troubleshooting-queries-involving-flowfields-by-disabling-smartsql>\n Configuring Query Hints for Optimizing SQL Server Performance with Business Central<../administration/sql-server-query-hints>\n Troubleshooting: Using Query Store to Monitor Query Performance in Business Central<../administration/troubleshoot-query-performance-using-query-store>\n#### Performance of BACPAC generation\nThe sqlpackage is the command-line tool used to generate BACPAC/DACPAC files. The February 2019 update of sqlpackage solved a significant schema-compare performance issue that occurred when generating scripts. Make sure you use version 18.1 or later if you experience issues in BACPAC generation performance.\nYou can also limit the amount of SQL schema to restore from a BACPAC. On tables used only with temporary record variables and pages, set the ../developer/properties/devenv-tabletype-property to Temporary.\n#### Performance impact on setting up CDC on SQL Server\nThere's a performance impact if you set up CDC on the database. SQL Server will be slower (depending on the retention period used). You'll also need storage for the extra data.\n#### Performance impact of enabling Transparent Data Encryption (TDE)\nEnabling Transparent Data Encryption (TDE) has a slight performance degradation on SQL Server because it needs CPU resources for the encryption/decryption of data.\n## Scaling Business Central\nOn compute (Business Central Server and Web servers), it's possible to scale horizontally by separating Business Central Server instances and Web servers on different nodes. Learn more about configuring Business Central Server in Configuring Business Central Server<../administration/configure-server-instance>.\nIt's also common on larger installations to separate traffic based on client type (direct UI and OData traffic to different Business Central Server instances); possibly cohosting Business Central Server instances and Web servers on the same nodes.\nThe Business Central Server has a built-in thread dispatcher for AL execution. If you have more cores available, then the dispatcher allows for more parallel execution. But keep in mind that AL execution is single-threaded until the Business Central 2019 release wave 2 (when we introduced async processing). For long running operations, such as heavy reports, using faster CPUs will give better performance.\nOn the database side, make sure SQL Server has enough resources for sessions (both CPU and memory) and try to optimize the setup of SQL Server to Business Central. Learn more about installation considerations for Microsoft SQL Server and Business Central in Installation Considerations for Microsoft SQL Server and Business Central<../deployment/installation-considerations-for-microsoft-sql-server>.\n## Measure and monitor performance\nThe following resources describe ways that you measure and monitor performance in your Business Central on-premises installation:\n Monitoring Business Central Server Events<../administration/monitor-server-events>\n ../administration/tools-monitor-performance-counters-and-events\n Troubleshooting: Using the Event Viewer to Monitor Long Running SQL Queries in Business Central<../administration/troubleshoot-long-running-queries-using-event-log>\n Troubleshooting: Using Query Store to Monitor Query Performance in Business Central<../administration/troubleshoot-query-performance-using-query-store>\n## Related information\nperformance-overview\nPerformance articles for developers<performance-developer>\nPerformance tips for business users<performance-users>\nHow application configurations affect performance<performance-application>\nperformance-online\nperformance-work-perf-problem"}