tmcgrath / gatling-sql

Gatling Extension for JDBC or Spark Thrift Server stress tests
https://supergloo.com/spark/apache-spark-thrift-server-load-testing-example/
Apache License 2.0
6 stars 8 forks source link

Support prepared statements etc. #1

Closed reftel closed 3 years ago

reftel commented 6 years ago

Hi,

small PR to add prepared statements etc., in case you're interested. I'm still a beginner at Scala, so there are probably things that could be done better that what I've done here. I'd be happy to get feedback! =)

One thing I'm not happy with is the synchronization in SqlAction.execute. Any ideas on how one could do that better?

reftel commented 6 years ago

Seems hive-jdbc accidentally got a version that we have in our local nexus server. Fixing...

reftel commented 6 years ago

synchronized removed in favor of preparing a statement per session. Builds on Travis now, so there are no longer any dependencies on local versions.