<?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 Re: Should I use Dirty Reads? Will it improve performance or eliminate locking? in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/Should-I-use-Dirty-Reads-Will-it-improve-performance-or/m-p/160937#M2990</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for a (great?) tip and the quick guide. Please get back to us if you test this!&lt;/P&gt;&lt;P&gt;For your question however, is aquite SQL Server specific, and I blieve that you might find a better respone in such a forum.&lt;/P&gt;&lt;P&gt;Br&lt;/P&gt;&lt;P&gt;Linus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Dec 2013 09:12:24 GMT</pubDate>
    <dc:creator>LinusH</dc:creator>
    <dc:date>2013-12-02T09:12:24Z</dc:date>
    <item>
      <title>Should I use Dirty Reads? Will it improve performance or eliminate locking?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Should-I-use-Dirty-Reads-Will-it-improve-performance-or/m-p/160936#M2989</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Tahoma; text-align: -webkit-auto; font-size: medium;"&gt;I am thinking of changing the read isolation level for our SQL Server libraries to Read Uncommitted. This means that it will not lock the database when reading, but may read dirty data. In our case the timing of our overnight run means that there should not be any dirty data at that time to be read. I have heard that this change is likely to provide a performance boost.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Tahoma; text-align: -webkit-auto; font-size: medium;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Tahoma; text-align: -webkit-auto; font-size: medium;"&gt;Can anyone advise whether this is likely to provide any performance boost? I know it all depends on what we are doing.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Tahoma; text-align: -webkit-auto; font-size: medium;"&gt;Also, is it likely to help with locking problems which we are also having at times? It seems to me like it would help since there would be no need to lock tables any more.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Tahoma; text-align: -webkit-auto; font-size: medium;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Tahoma; text-align: -webkit-auto; font-size: medium;"&gt;We are using SQL Server on a Windows 2008 R2 platform, which is accessed via OLEDB since there is no Access to SQL Server on Windows (for some strange reason). If anyone wants to do this then the following instructions can be used to change a library to use uncommitted reads.&lt;/SPAN&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;SPAN style="color: #000000; font-family: Tahoma; text-align: -webkit-auto; font-size: medium;"&gt;Open SAS Management Console&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: #000000; font-family: Tahoma; text-align: -webkit-auto; font-size: medium;"&gt;Go to Data Library Manager&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: #000000; font-family: Tahoma; text-align: -webkit-auto; font-size: medium;"&gt;Select Libraries&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: #000000; font-family: Tahoma; text-align: -webkit-auto; font-size: medium;"&gt;Locate the desired library of type OLEDB (e.g. IDM) and double click&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: #000000; font-family: Tahoma; text-align: -webkit-auto; font-size: medium;"&gt;Select Options tab&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: #000000; font-family: Tahoma; text-align: -webkit-auto; font-size: medium;"&gt;Press the Advanced Options button&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: #000000; font-family: Tahoma; text-align: -webkit-auto; font-size: medium;"&gt;Select Locking tab&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: #000000; font-family: Tahoma; text-align: -webkit-auto; font-size: medium;"&gt;Select Isolation Level for Reading&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: #000000; font-family: Tahoma; text-align: -webkit-auto; font-size: medium;"&gt;Set to RU (Read Uncommitted)&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;If you are using your own libname statements then you would use the read_isolation_level parameter ... &lt;A href="http://support.sas.com/documentation/cdl/en/acreldb/63647/HTML/default/viewer.htm#a001478055.htm" title="http://support.sas.com/documentation/cdl/en/acreldb/63647/HTML/default/viewer.htm#a001478055.htm"&gt;SAS/ACCESS(R) 9.2 for Relational Databases: Reference, Fourth Edition&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;Beware though that this might not perform well if you are joining data from some libraries that use this and some that dont... &lt;/SPAN&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/acreldb/65247/HTML/default/viewer.htm#p09d6exac0kna4n1fecnx0knv96u.htm" title="http://support.sas.com/documentation/cdl/en/acreldb/65247/HTML/default/viewer.htm#p09d6exac0kna4n1fecnx0knv96u.htm"&gt;&lt;SPAN style="font-size: 12pt;"&gt;SA&lt;/SPAN&gt;S/ACCESS(R) 9.3 for Relational Databases: Reference, Second Edition&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;Phil Mason&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Dec 2013 07:57:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Should-I-use-Dirty-Reads-Will-it-improve-performance-or/m-p/160936#M2989</guid>
      <dc:creator>cabot_financial</dc:creator>
      <dc:date>2013-12-02T07:57:02Z</dc:date>
    </item>
    <item>
      <title>Re: Should I use Dirty Reads? Will it improve performance or eliminate locking?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Should-I-use-Dirty-Reads-Will-it-improve-performance-or/m-p/160937#M2990</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for a (great?) tip and the quick guide. Please get back to us if you test this!&lt;/P&gt;&lt;P&gt;For your question however, is aquite SQL Server specific, and I blieve that you might find a better respone in such a forum.&lt;/P&gt;&lt;P&gt;Br&lt;/P&gt;&lt;P&gt;Linus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Dec 2013 09:12:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Should-I-use-Dirty-Reads-Will-it-improve-performance-or/m-p/160937#M2990</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2013-12-02T09:12:24Z</dc:date>
    </item>
    <item>
      <title>Re: Should I use Dirty Reads? Will it improve performance or eliminate locking?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Should-I-use-Dirty-Reads-Will-it-improve-performance-or/m-p/160938#M2991</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;At one place I've worked in the past dirty reading was used for querying a data warehouse in DB2. I don't remember the details but the performance improvements were quite significant and also reduced workload for the DB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would have thought that multiple parallel reads shouldn't cause table locking issues. So if there are such issues does this mean there are also write operations happening at the same time? If so then you could actually get "dirty data" and you would need to find a way to control the job flow and only read if no write operations to the tables are happening.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the DB2 warehouse example:&lt;/P&gt;&lt;P&gt;There had been several cases where a SAS EG user locked a table overnight. As this was a corporate warehouse and a failed overnight batch had quite an impact, one other measure which had been taken was to lock-out all SAS users during the overnight batch window for loading the database (by revoking the grants and then re-establish them after the load). - This was years ago and I'm sure with a current DB2 version there are better means available to avoid that "normal" users lock tables.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Dec 2013 20:24:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Should-I-use-Dirty-Reads-Will-it-improve-performance-or/m-p/160938#M2991</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2013-12-02T20:24:27Z</dc:date>
    </item>
  </channel>
</rss>

