<?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: Req advice re using fast-delete on indexed files in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/req-advice-re-using-fast-delete-on-indexed-files/m-p/5276230#M41322</link>
    <description>Ketan,&lt;BR /&gt;&lt;BR /&gt;the poster was inquiring about the RMS fast delete record option within indexed files.&lt;BR /&gt;&lt;BR /&gt;Your reply refers to a utility used to delete files (not records) from a large directory.&lt;BR /&gt;&lt;BR /&gt;FDEL (Fast File Delete) performs a fast delete for directories&lt;BR /&gt;that have large numbers of files.&lt;BR /&gt;&lt;BR /&gt;Duncan</description>
    <pubDate>Thu, 10 Mar 2011 11:33:45 GMT</pubDate>
    <dc:creator>Duncan Morris</dc:creator>
    <dc:date>2011-03-10T11:33:45Z</dc:date>
    <item>
      <title>Req advice re using fast-delete on indexed files</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/req-advice-re-using-fast-delete-on-indexed-files/m-p/5276227#M41319</link>
      <description>What exactly does the fast-delete option (RAB$V_FDL) do on records in indexed files?  The Guide to File Operations is a bit vague on the residual work that is done the next time the record is accessed on any key other than the primary.  It looks like the internal pointers for non-primary keys are reset when the record is accessed, but is this for all keys or only the current key of access?&lt;BR /&gt;&lt;BR /&gt;I get the impression that the guide is hinting that it's not a good idea to use fast-delete, so I'd be interested in any recommendations too.  (A ballpark figure for the files we're considering this for is about 2 million blocks and let's say 1024 bytes per record and 4 keys.)&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 10 Mar 2011 03:48:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/req-advice-re-using-fast-delete-on-indexed-files/m-p/5276227#M41319</guid>
      <dc:creator>John McL</dc:creator>
      <dc:date>2011-03-10T03:48:13Z</dc:date>
    </item>
    <item>
      <title>Re: Req advice re using fast-delete on indexed files</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/req-advice-re-using-fast-delete-on-indexed-files/m-p/5276228#M41320</link>
      <description>Hello again John!&lt;BR /&gt;&lt;BR /&gt;I think that fast delete is a great option in general.&lt;BR /&gt;It speeds things up when one often needs it, and it barely slows down at cleanup time.&lt;BR /&gt;&lt;BR /&gt;What happens is &lt;BR /&gt;- a program goes looking for a record by a specific alternate key&lt;BR /&gt;- finds a SIDR pointer (RRV) to a potential data record &lt;BR /&gt;- then finds that record marked as deleted, or simply not there.&lt;BR /&gt;- Now it goes back to the SIDR bucket and removes the stale pointer.&lt;BR /&gt;&lt;BR /&gt;The goodness is that&lt;BR /&gt;- 100% overhead avoided if the pointer is never used, or the file is converted. &lt;BR /&gt;- The fixup is a relatively small cost&lt;BR /&gt;--- fruitless excursion to a data bucket&lt;BR /&gt;--- extra re-lock and write on sidr bucket which is already in memory with NL lock&lt;BR /&gt;- If one considers 2 or 3 locks and IOs to get to the SIDR bucket in the first place, then that's not much incremental cost.&lt;BR /&gt;&lt;BR /&gt;The badness might be&lt;BR /&gt;- the cost moved from  being predictable resources at a predictable time to a small but unknown resources at an unpredictable time.&lt;BR /&gt;- read programs may unexpectedly write to the file&lt;BR /&gt;&lt;BR /&gt;Using fast delete might be the only way to make a bulk delete job tolerable in the permissible batch window.&lt;BR /&gt;&lt;BR /&gt;IF the deleted records are logged, then for extreme case you could at a 'slow' time and perhaps at a slow pace 'touch' the alternate keys.&lt;BR /&gt;&lt;BR /&gt;If there are 4 keys, then not using fast delete typically makes each delete 4x slower.&lt;BR /&gt;Probably more due to increased randomness in the access pattern and buffer cache usage.&lt;BR /&gt;&lt;BR /&gt;An other important heuristic would be the percentage of records to be deleted. If it is more then 5% - 10% of the file, then an extract of the records to be retained + convert becomes desirable and me be faster.&lt;BR /&gt;&lt;BR /&gt;Let's do some experiments together at some point!&lt;BR /&gt;&lt;BR /&gt;Hint... for an experiment just use 10 or 100 record but be sure to have RMS STATS enabled on the file, and use my RMS_STATS tool, or ANALYZE/SYSTEM ... SHOW PROC/RMS=FSB to get a clean count on LOCK and IO resources used per iteration.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Hein&lt;BR /&gt;</description>
      <pubDate>Thu, 10 Mar 2011 05:32:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/req-advice-re-using-fast-delete-on-indexed-files/m-p/5276228#M41320</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2011-03-10T05:32:20Z</dc:date>
    </item>
    <item>
      <title>Re: Req advice re using fast-delete on indexed files</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/req-advice-re-using-fast-delete-on-indexed-files/m-p/5276229#M41321</link>
      <description>Hi John,&lt;BR /&gt;&lt;BR /&gt;There is a utility by name FDEL (Fast File Delete) in the VMS freeware web page. Though may be helpful. Please refer the USER_DOC.TXT file available in the zip file from the below link for more details on the utility.&lt;BR /&gt;Below is the link to VMS freeware.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://h71000.www7.hp.com/openvms/freeware/freeware_index.html#OSF" target="_blank"&gt;http://h71000.www7.hp.com/openvms/freeware/freeware_index.html#OSF&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Ketan&lt;BR /&gt;</description>
      <pubDate>Thu, 10 Mar 2011 05:50:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/req-advice-re-using-fast-delete-on-indexed-files/m-p/5276229#M41321</guid>
      <dc:creator>Shriniketan Bhagwat</dc:creator>
      <dc:date>2011-03-10T05:50:27Z</dc:date>
    </item>
    <item>
      <title>Re: Req advice re using fast-delete on indexed files</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/req-advice-re-using-fast-delete-on-indexed-files/m-p/5276230#M41322</link>
      <description>Ketan,&lt;BR /&gt;&lt;BR /&gt;the poster was inquiring about the RMS fast delete record option within indexed files.&lt;BR /&gt;&lt;BR /&gt;Your reply refers to a utility used to delete files (not records) from a large directory.&lt;BR /&gt;&lt;BR /&gt;FDEL (Fast File Delete) performs a fast delete for directories&lt;BR /&gt;that have large numbers of files.&lt;BR /&gt;&lt;BR /&gt;Duncan</description>
      <pubDate>Thu, 10 Mar 2011 11:33:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/req-advice-re-using-fast-delete-on-indexed-files/m-p/5276230#M41322</guid>
      <dc:creator>Duncan Morris</dc:creator>
      <dc:date>2011-03-10T11:33:45Z</dc:date>
    </item>
    <item>
      <title>Re: Req advice re using fast-delete on indexed files</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/req-advice-re-using-fast-delete-on-indexed-files/m-p/5276231#M41323</link>
      <description>&lt;BR /&gt;&lt;BR /&gt;Now please be aware, about a little known fact is that Fast Delete is only effective for alternate keys which allow duplicates.&lt;BR /&gt;&lt;BR /&gt;So if, for example, you have alternate keys defined with the primary key in the final segment to force a predictable sort order making them unique in the process and enforcing that, then RAB$V_FDL does nothing for that key.&lt;BR /&gt;&lt;BR /&gt;Now one could probably just flip the duplicates allowed to YES on the next convert (or flip the bit on the fly?!) that is unlikely to change the application functionality.&lt;BR /&gt;&lt;BR /&gt;The reason duplicates have to be allowed it that RMS does not want to refuse a fresh insert when it sees that a key value already exists when the underlying record is perhaps deleted. &lt;BR /&gt;Now what they _should_ have done is to just follow the pointer, like they would for a GET, and do the clean up if need be.&lt;BR /&gt;IMHO that would be a reasonable 'overhead' when you are about to return a dupliate key error. So it is NOT happening for normal inserts/updates.&lt;BR /&gt;&lt;BR /&gt;The RMS REF manual entry for RAB$V_FDL  is also not entirely correct IMHO. I think there will be a normal record-not-found returned when deleted, which would be the expected thing no? Maybe more on that an other time.&lt;BR /&gt;&lt;BR /&gt;Hein&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 10 Mar 2011 15:11:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/req-advice-re-using-fast-delete-on-indexed-files/m-p/5276231#M41323</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2011-03-10T15:11:39Z</dc:date>
    </item>
    <item>
      <title>Re: Req advice re using fast-delete on indexed files</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/req-advice-re-using-fast-delete-on-indexed-files/m-p/5276232#M41324</link>
      <description>Thanks Hein.  That's useful info.</description>
      <pubDate>Sun, 20 Mar 2011 20:14:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/req-advice-re-using-fast-delete-on-indexed-files/m-p/5276232#M41324</guid>
      <dc:creator>John McL</dc:creator>
      <dc:date>2011-03-20T20:14:41Z</dc:date>
    </item>
  </channel>
</rss>

