spark read from mongodb
<p>is there a better option to read from mongodb via spark? currently I use <a href="https://github.com/Stratio/Spark-MongoDB" rel="nofollow">https://github.com/Stratio/Spark-MongoDB</a></p>

<p>Do I understand correctly that </p>

<pre><code>val mongoRDD = sql.fromMongoDB(mongoConfigurationData)
    mongoRDD.registerTempTable("myTable")
</code></pre>

<p>is so slow because a lot of the data is scanned initially?
How can it be that </p>

<pre><code>sql.sql("CREATE TEMPORARY TABLE myTable USING mongoConfigurationData)") seems to be slower?
</code></pre>