<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Alexander</title>
    <description>The latest articles on DEV Community by Alexander (@alexperezortuno).</description>
    <link>https://dev.to/alexperezortuno</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F304452%2F54c53f39-3d78-40d2-8fd0-fcd6533ceb94.png</url>
      <title>DEV Community: Alexander</title>
      <link>https://dev.to/alexperezortuno</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/alexperezortuno"/>
    <language>en</language>
    <item>
      <title>Positional Parameters</title>
      <dc:creator>Alexander</dc:creator>
      <pubDate>Mon, 30 Dec 2019 20:08:31 +0000</pubDate>
      <link>https://dev.to/alexperezortuno/positional-parameters-4ap2</link>
      <guid>https://dev.to/alexperezortuno/positional-parameters-4ap2</guid>
      <description>&lt;p&gt;&lt;a href="http://linuxcommand.org/lc3_wss0120.php"&gt;http://linuxcommand.org/lc3_wss0120.php&lt;/a&gt;&lt;/p&gt;

</description>
      <category>bash</category>
    </item>
    <item>
      <title>Rails Best Practices</title>
      <dc:creator>Alexander</dc:creator>
      <pubDate>Mon, 30 Dec 2019 20:07:57 +0000</pubDate>
      <link>https://dev.to/alexperezortuno/rails-best-practices-25dl</link>
      <guid>https://dev.to/alexperezortuno/rails-best-practices-25dl</guid>
      <description>&lt;p&gt;&lt;a href="https://rails-bestpractices.com/tag/route/"&gt;https://rails-bestpractices.com/tag/route/&lt;/a&gt;&lt;/p&gt;

</description>
      <category>rails</category>
    </item>
    <item>
      <title>10 Ruby on Rails Best Practices</title>
      <dc:creator>Alexander</dc:creator>
      <pubDate>Mon, 30 Dec 2019 20:07:19 +0000</pubDate>
      <link>https://dev.to/alexperezortuno/10-ruby-on-rails-best-practices-4cpa</link>
      <guid>https://dev.to/alexperezortuno/10-ruby-on-rails-best-practices-4cpa</guid>
      <description>&lt;p&gt;&lt;a href="https://www.sitepoint.com/10-ruby-on-rails-best-practices-3/"&gt;https://www.sitepoint.com/10-ruby-on-rails-best-practices-3/&lt;/a&gt;&lt;/p&gt;

</description>
      <category>rails</category>
    </item>
    <item>
      <title>Rails Disciplined</title>
      <dc:creator>Alexander</dc:creator>
      <pubDate>Mon, 30 Dec 2019 20:06:47 +0000</pubDate>
      <link>https://dev.to/alexperezortuno/rails-disciplined-3g56</link>
      <guid>https://dev.to/alexperezortuno/rails-disciplined-3g56</guid>
      <description>&lt;p&gt;&lt;a href="https://medium.com/@jaryl/disciplined-rails-models-controllers-the-rails-way-bbc940822136"&gt;https://medium.com/@jaryl/disciplined-rails-models-controllers-the-rails-way-bbc940822136&lt;/a&gt;&lt;/p&gt;

</description>
      <category>rails</category>
    </item>
    <item>
      <title>Answer: Django ORM and locking table</title>
      <dc:creator>Alexander</dc:creator>
      <pubDate>Mon, 30 Dec 2019 20:05:05 +0000</pubDate>
      <link>https://dev.to/alexperezortuno/answer-django-orm-and-locking-table-2fpf</link>
      <guid>https://dev.to/alexperezortuno/answer-django-orm-and-locking-table-2fpf</guid>
      <description>&lt;div class="ltag__stackexchange--container"&gt;
  &lt;div class="ltag__stackexchange--title-container"&gt;
    
      &lt;div class="ltag__stackexchange--title"&gt;
        &lt;h1&gt;
          &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--pTF_nE4a--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://practicaldev-herokuapp-com.freetls.fastly.net/assets/stackoverflow-logo-b42691ae545e4810b105ee957979a853a696085e67e43ee14c5699cf3e890fb4.svg" alt=""&gt;
            &lt;a href="https://stackoverflow.com/questions/19686204/django-orm-and-locking-table/21932781#21932781" rel="noopener noreferrer"&gt;
              &lt;span class="title-flare"&gt;answer&lt;/span&gt; re:  Django ORM and locking table
            &lt;/a&gt;
        &lt;/h1&gt;
        &lt;div class="ltag__stackexchange--post-metadata"&gt;
          &lt;span&gt;Feb 21 '14&lt;/span&gt;
        &lt;/div&gt;
      &lt;/div&gt;
      &lt;a class="ltag__stackexchange--score-container" href="https://stackoverflow.com/questions/19686204/django-orm-and-locking-table/21932781#21932781" rel="noopener noreferrer"&gt;
        &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--5MiFESHx--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://practicaldev-herokuapp-com.freetls.fastly.net/assets/stackexchange-arrow-up-eff2e2849e67d156181d258e38802c0b57fa011f74164a7f97675ca3b6ab756b.svg" alt=""&gt;
        &lt;div class="ltag__stackexchange--score-number"&gt;
          14
        &lt;/div&gt;
        &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Rk_a5QFN--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://practicaldev-herokuapp-com.freetls.fastly.net/assets/stackexchange-arrow-down-4349fac0dd932d284fab7e4dd9846f19a3710558efde0d2dfd05897f3eeb9aba.svg" alt=""&gt;
      &lt;/a&gt;
    
  &lt;/div&gt;
  &lt;div class="ltag__stackexchange--body"&gt;
    
&lt;p&gt;I think this code snippet meets your need, assuming you are using MySQL. If not, you may need to tweak the syntax a little, but the idea should still work.&lt;/p&gt;
&lt;p&gt;Source: &lt;a href="https://djangosnippets.org/snippets/833/" rel="noreferrer"&gt;Locking tables&lt;/a&gt;&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;class LockingManager(models.Manager):
    """ Add lock/unlock functionality to manager.

    Example::

        class Job(models.Model):

            manager = LockingManager()

            counter = models.IntegerField(null=True,&lt;/code&gt;&lt;/pre&gt;…
    
  &lt;/div&gt;
  &lt;div class="ltag__stackexchange--btn--container"&gt;
    
      &lt;a href="https://stackoverflow.com/questions/19686204/django-orm-and-locking-table/21932781#21932781" rel="noopener noreferrer"&gt;Open Full Answer&lt;/a&gt;
    
  &lt;/div&gt;
&lt;/div&gt;


</description>
    </item>
  </channel>
</rss>
