<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Converting from RDD to Dataset, and unit test takes 3x slower. (but prod is faster) in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/converting-from-rdd-to-dataset-and-unit-test-takes-3x-slower-but/m-p/29374#M21104</link>
    <description>&lt;P&gt;I converted a data job fro RDD to Dataset, and I've found that, in prod, the data job runs faster, which is nice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But unit test runs 3x slower than before.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My best guess is that Dataset spends time doing a lot of stuffs like encoding, optimizing, querying planning. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wonder if there's a way to disable most of this in unit test since all of these don't matter in a local test.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alternatively, is there a way to cache the plan, so it doesn't need to be recomputed on each test?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
    <pubDate>Sun, 06 Feb 2022 08:49:08 GMT</pubDate>
    <dc:creator>tanin</dc:creator>
    <dc:date>2022-02-06T08:49:08Z</dc:date>
    <item>
      <title>Converting from RDD to Dataset, and unit test takes 3x slower. (but prod is faster)</title>
      <link>https://community.databricks.com/t5/data-engineering/converting-from-rdd-to-dataset-and-unit-test-takes-3x-slower-but/m-p/29374#M21104</link>
      <description>&lt;P&gt;I converted a data job fro RDD to Dataset, and I've found that, in prod, the data job runs faster, which is nice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But unit test runs 3x slower than before.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My best guess is that Dataset spends time doing a lot of stuffs like encoding, optimizing, querying planning. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wonder if there's a way to disable most of this in unit test since all of these don't matter in a local test.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alternatively, is there a way to cache the plan, so it doesn't need to be recomputed on each test?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Sun, 06 Feb 2022 08:49:08 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/converting-from-rdd-to-dataset-and-unit-test-takes-3x-slower-but/m-p/29374#M21104</guid>
      <dc:creator>tanin</dc:creator>
      <dc:date>2022-02-06T08:49:08Z</dc:date>
    </item>
  </channel>
</rss>

