I'm trying to access to a sql database using JdbcRDD. I would like to do "paging" in my query using ROW_NUMBER() and OVER (ORDER BY...). Knowing the maxBound of my query I would like to run for instance 1 query per page on one executor. I thought the numPartitions of the jdbcRdd constructor would do that for me. But It does not run queries in parallel but in sequence ... which is longer ...
any idea .. or just hints to do that would be appreciated !
Thx