title: How to process faster on .gz files in spark scala?
body: <p>I am reading .gz file as </p>
  
  <pre><code>val df = spark.read..format("csv")
      .option("header", "true")
      .option("delimiter", "|")
      .load("filepath.gz")
  
  df.createOrReplaceTempView("df")
  </code></pre>
  
  <p>When when I am doing processing, it takes whole lot of time. 
  How it can be minimize? </p>