<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Python on Sreevardhan Reddy — Software Developer</title><link>https://sreevardhanreddi.github.io/categories/python/</link><description>Recent content in Python on Sreevardhan Reddy — Software Developer</description><generator>Hugo -- gohugo.io</generator><language>en-us</language><lastBuildDate>Thu, 12 Aug 2021 16:26:31 +0530</lastBuildDate><atom:link href="https://sreevardhanreddi.github.io/categories/python/index.xml" rel="self" type="application/rss+xml"/><item><title>Faster Reads With Materialized Views</title><link>https://sreevardhanreddi.github.io/blogs/faster-reads-with-materialized-views/</link><pubDate>Thu, 12 Aug 2021 16:26:31 +0530</pubDate><guid>https://sreevardhanreddi.github.io/blogs/faster-reads-with-materialized-views/</guid><description>This Blog aims to give you a gist of Views in PostgreSQL and how to integrate in Django.
PostgreSQL Views are quite handy, think of Views as wrapping(abstracting) your complex queries and assigning a name to them.
They are several benifits of using Views, here are few
Views hide the complexity
if you have a query that requires aggregating or joining multiple tables and has complex logic, you can code all that logic into a view and then retreive data from it as if it were a normal table.</description></item><item><title>Concurrency in Python</title><link>https://sreevardhanreddi.github.io/blogs/concurrency-in-python/</link><pubDate>Sat, 15 Aug 2020 15:06:51 +0530</pubDate><guid>https://sreevardhanreddi.github.io/blogs/concurrency-in-python/</guid><description>Concurrency is the ability of different parts or units of a program, algorithm, or problem to be executed out-of-order or in a partial order, without affecting the final outcome. This allows for parallel execution of the concurrent units, which can significantly improve the overall speed of the execution.
Let&amp;rsquo;s look at an example code, which is not concurrent.
import requests urls = [ &amp;#34;https://docs.python.org/3/&amp;#34;, &amp;#34;https://github.com/trending/&amp;#34;, &amp;#34;https://www.youtube.com/feed/trending/&amp;#34;, &amp;#34;https://stackoverflow.com/questions/&amp;#34;, &amp;#34;https://docs.djangoproject.com/en/3.0/&amp;#34;, &amp;#34;https://requests.readthedocs.io/en/master/&amp;#34;, &amp;#34;https://docs.</description></item><item><title>Deploying Django Project</title><link>https://sreevardhanreddi.github.io/blogs/deploying-django-project/</link><pubDate>Wed, 15 Jul 2020 17:33:22 +0530</pubDate><guid>https://sreevardhanreddi.github.io/blogs/deploying-django-project/</guid><description>This is a summarized document from this digital ocean doc
Any commands with &amp;ldquo;$&amp;rdquo; at the beginning run on your local machine and any &amp;ldquo;#&amp;rdquo; run when logged into the server
Security &amp;amp; Access Creating SSH keys (Optional) You can choose to create SSH keys to login if you want. If not, you will get the password sent to your email to login via SSH
To generate a key on your local machine</description></item></channel></rss>