September 21, 2023

Key causes of performance differences between SQL managed instance and SQL Server and recommended solutions.

 Migrating to a Microsoft Azure SQL Database managed instance provides performance benefits. In many cases, you might get better results on the on-premises SQL Server database because a SQL Database managed instance introduces some overhead for manageability and high availability. In other cases, you might get better results on a SQL Database managed instance because the latest version of the database engine has improved query processing and optimization features compared to older versions of SQL Server.


This article will help you understand the underlying factors that can cause performance differences and the recommended solutions to improve Azure SQL Database performance like changing default MAXDOP, improve performance of your workload by increasing the file size, backup schedule, etc.




Creating DataFrames from CSV in Apache Spark

 from pyspark.sql import SparkSession spark = SparkSession.builder.appName("CSV Example").getOrCreate() sc = spark.sparkContext Sp...