Hi @WZIAFP ,
Thank you for posting query in Microsoft Q&A Platform.
I seen some articles online which says working with sqlalchemy is slow.
There are several python SQL drivers available. However, Microsoft places its testing efforts and its confidence in pyodbc driver. Click here to know more about same.
Could you please try using pyodbc
driver and see how it behaves? Kindly refer below video to understand about pyodbc library on high level.
Query SQL Server DB from Spark notebook in Azure Synapse Analytics | pyodbc to query SQL server
Hope this helps. Please let me know how it goes.