spark-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Louis Hust <>
Subject Spark is much slower than direct access MySQL
Date Sun, 26 Jul 2015 07:47:37 GMT
Hi, all,

I am using spark DataFrame to fetch small table from MySQL,
and i found it cost so much than directly access MySQL Using JDBC.

Time cost for Spark is about 2033ms, and direct access at about 16ms.

Code can be found at:

So If my configuration for spark is wrong? How to optimise Spark to achieve
the similar performance like direct access?

Any idea will be appreciated!

View raw message