question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Very slow performance

See original GitHub issue

Hi All,

Config - Databricks 6.6 (Spark 2.45) Target - Azure SQL DB Premium P4

This connector , code

FLOC_VW.write \ .format("com.microsoft.sqlserver.jdbc.spark") \ .mode("overwrite") \ .option("url", url) \ .option("dbtable", tableName) \ .option("user", Username) \ .option("password", Password) \ .option("BEST_EFFORT","true") \ .option("tabLock","true") \ .save()

Minutes taken - 53 on Average

Same configuration but - spark connector - Performance 4x faster <10 mins of average

Any suggestions where it could be going wrong?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:19 (6 by maintainers)

github_iconTop GitHub Comments

3reactions
ankitbkocommented, Sep 3, 2020

I ran a benchmark comparing timing by inserting 50 million records in databases with different indexing strategy. You can find it here. Scroll down to the bottom so see comparison between old and new connector.

0reactions
ankitbkocommented, Nov 2, 2020

After disabling the schema check both of the connectors are comparable in performance. Thanks @shivsood for helping out. I will update my blog during this weekend.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why Your Computer Is So Slow and How To Fix It - Crucial.com
1. Identify programs that slow down your computer. 2. Check your web browser and internet connection. 3. Defragment your hard disk drive
Read more >
My Computer is Running Slow, What Steps Can I Do to Fix It?
My computer is running slow, what steps can I do to fix it? · Reboot · Background programs · Delete temp files ·...
Read more >
PC running slow? Here's how to speed things up - CNET
Three more common reasons for a slow PC · Antivirus scans · Too many apps are running at login · Some web browsers...
Read more >
15 Reasons Your Computer Is Slow & How to Fix It! [Vintage]
15 Reasons Your Computer Is Running Slow & What You Can Do to Fix It · 1. Need To Restart · 2. Too...
Read more >
Why your PC is so slow... and how you can speed it up
Why is my computer so slow? · Running out of RAM (Random Access Memory) · Running out of disk drive space (HDD or...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found