<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>Snipplr</title>
    <description>Recent snippets posted on Snipplr.com</description>
    <link>https://snipplr.com/</link>
    <lastBuildDate>Tue, 09 Jun 2026 10:27:38 +0000</lastBuildDate>
    <item>
      <title>(PHP) list-&gt;mysql query iteration for cron job - cori</title>
      <link>https://snipplr.com/view/12507/listmysql-query-iteration-for-cron-job</link>
      <description>&lt;p&gt;I needed to have a cron job that did some MySQL work iterating through a long list of items based on the content of a table in MySQL.  I wanted each item in the table to be iterated over roughly once every 5 minutes, but building up the in-memory list of items to be processed based on the full contents of the table (~100 rows) was killing server memory and the process was dying.  I wanted to find a way to, based on the time, only process a segment of the table's results, and to be reasonable confident that they would all be processed approximately every 5 minutes.&#13;
&#13;
Really simple problem, actually, but it took me a while to find the right logic...&lt;/p&gt;</description>
      <pubDate>Mon, 23 Feb 2009 11:27:35 UTC</pubDate>
      <guid>https://snipplr.com/view/12507/listmysql-query-iteration-for-cron-job</guid>
    </item>
    <item>
      <title>(PHP) another (wp 2.3.3) custom loop query example - cori</title>
      <link>https://snipplr.com/view/7173/another-wp-233-custom-loop-query-example</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Tue, 08 Jul 2008 13:26:51 UTC</pubDate>
      <guid>https://snipplr.com/view/7173/another-wp-233-custom-loop-query-example</guid>
    </item>
    <item>
      <title>(PHP) custom loop query example - cori</title>
      <link>https://snipplr.com/view/6002/custom-loop-query-example</link>
      <description>&lt;p&gt;the above url has some helpful parameters&lt;/p&gt;</description>
      <pubDate>Sat, 26 Apr 2008 00:12:35 UTC</pubDate>
      <guid>https://snipplr.com/view/6002/custom-loop-query-example</guid>
    </item>
  </channel>
</rss>
