<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Hema Sai Sindhu Yerramsetti on Medium]]></title>
        <description><![CDATA[Stories by Hema Sai Sindhu Yerramsetti on Medium]]></description>
        <link>https://medium.com/@hemaytech?source=rss-2ba67c53e22e------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*QRej8lFCa9C5lK_ThrscEw.jpeg</url>
            <title>Stories by Hema Sai Sindhu Yerramsetti on Medium</title>
            <link>https://medium.com/@hemaytech?source=rss-2ba67c53e22e------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 02:12:18 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@hemaytech/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Elevating the Generative AI Experience: A Deep Dive into SageMaker’s [New Feature] Streaming…]]></title>
            <link>https://hemaytech.medium.com/elevating-the-generative-ai-experience-a-deep-dive-into-sagemakers-new-feature-streaming-a45bf17af1bc?source=rss-2ba67c53e22e------2</link>
            <guid isPermaLink="false">https://medium.com/p/a45bf17af1bc</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[learning]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Hema Sai Sindhu Yerramsetti]]></dc:creator>
            <pubDate>Mon, 04 Sep 2023 18:54:10 GMT</pubDate>
            <atom:updated>2023-09-06T15:04:32.662Z</atom:updated>
            <content:encoded><![CDATA[<h3>Elevating the Generative AI Experience: A Deep Dive into SageMaker’s [New Feature] Streaming Support for Real-time Inference</h3><p>In the ever-evolving landscape of machine learning and artificial intelligence, real-time inference plays a pivotal role. Whether you’re developing recommendation systems, natural language processing models, or generative AI applications, the ability to make predictions in real-time is a game-changer. Amazon SageMaker has been at the forefront of simplifying the machine learning workflow, and now it takes a giant leap forward with the introduction of streaming support for real-time inference.</p><h3>Understanding Real-time Inference</h3><p>Real-time inference, in the context of machine learning, refers to the process of making predictions or decisions instantly, often in milliseconds, as new data becomes available. It’s a critical component of many applications, including fraud detection, personalized content recommendations, and autonomous systems. The key challenge in real-time inference is achieving low-latency, high-throughput predictions without compromising on model accuracy.</p><h3>The Evolution of Amazon SageMaker</h3><p>Amazon SageMaker, AWS’s fully managed machine learning service, has been empowering data scientists and machine learning engineers to build, train, and deploy models with ease. Its comprehensive suite of tools covers every step of the machine learning lifecycle, from data preprocessing to model deployment and monitoring.</p><h3>Introducing SageMaker’s Streaming Support</h3><p>The latest update to Amazon SageMaker introduces a groundbreaking feature: “SageMaker Real-time Inference now supports response streaming.” This feature revolutionizes the way real-time predictions are made, especially in the realm of generative AI. Let’s delve into why this is such a significant development.</p><p><strong>Key Benefits of Response Streaming:</strong></p><ul><li><strong>Reduced Latency:</strong> Response streaming in SageMaker significantly reduces latency when making predictions. This is particularly crucial for applications where rapid responses are essential, such as chatbots or autonomous vehicles.</li><li><strong>Cost Efficiency:</strong> By streaming responses as they are generated, you can save on compute resources. You no longer need to wait for the entire response before sending it to the user, resulting in cost savings.</li><li><strong>Enhanced User Experience: </strong>Response streaming enhances the user experience by providing partial results in real-time. Users can start consuming predictions while the model is still processing, making applications feel more responsive.</li></ul><h3>Real-life Example</h3><p>To illustrate the power of response streaming in SageMaker, let’s consider a real-life scenario: a language translation service. Imagine a user entering a long text to be translated. Without response streaming, the user would have to wait until the entire translation is complete before receiving any output.</p><p>With SageMaker’s new feature, response streaming allows us to start sending translated segments of the text as they become available. This means the user can begin reading and understanding the translation immediately, even before the entire text is processed. Here’s a visual representation of how this works:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4NRINy7eueWNYqEFrv-iyg.gif" /></figure><p>In this example, you can see how the translation service progressively provides translations in real-time, significantly improving the user experience.</p><h3>Step-by-Step Implementation</h3><p>Implementing response streaming in SageMaker is a straightforward process. Below are the steps to get started:</p><ol><li><strong>Prepare Your Model: </strong>Ensure your model is compatible with response streaming. This typically involves breaking down the prediction process into smaller, incremental steps.</li><li><strong>Configure SageMaker:</strong> Set up your SageMaker endpoint with response streaming enabled. You can specify the chunk size and other parameters according to your application’s requirements.</li><li><strong>Deploy Your Model:</strong> Deploy your model on the SageMaker endpoint with the chosen configuration.</li><li><strong>Invoke the Endpoint:</strong> When making predictions, make sure to set up your client application to handle streaming responses. You can start processing the predictions as they arrive.</li><li><strong>Handle Errors and Completion:</strong> Implement error handling and completion logic to ensure a seamless user experience even in case of unexpected issues.</li></ol><h3>Best Practices</h3><p>While response streaming in SageMaker offers numerous advantages, it’s essential to follow best practices to make the most of this feature:</p><ul><li>Optimize the chunk size based on your application’s needs and the size of the predictions.</li><li>Implement graceful error handling to handle unexpected interruptions in the streaming process.</li><li>Monitor your endpoints to ensure they are performing optimally and adjust configurations as needed.</li><li>Consider the security implications of streaming responses and implement appropriate access controls.</li></ul><h3>Conclusion</h3><p>Amazon SageMaker’s introduction of streaming support for real-time inference marks a significant milestone in the world of machine learning and generative AI. This feature not only reduces latency and improves cost efficiency but also enhances the user experience in real-time applications.</p><p>As the field of machine learning continues to advance, SageMaker remains at the forefront, empowering data professionals like you to build cutting-edge AI solutions. Whether you’re developing chatbots, recommendation engines, or any other real-time application, response streaming in SageMaker is a powerful tool to have in your arsenal.</p><p>For more details on how to implement response streaming in SageMaker, refer to the <a href="https://docs.aws.amazon.com/sagemaker/latest/dg/real-time-inference.html">official documentation</a>.</p><p><em>Thank you for spending your valuable time reading this blog. I am open to any data-related conversations that will help us grow together.</em></p><p>Follow us on <strong>Medium</strong> <a href="https://medium.com/cloudnloud">CloudnLoud</a> and <a href="http://hemaytech.medium.com/">Hema Yerramsetti</a> for more interesting information and great learnings!!!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a45bf17af1bc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Unlocking Data Superhighways: Building Scalable Data Pipelines with Kubernetes]]></title>
            <link>https://hemaytech.medium.com/unlocking-data-superhighways-building-scalable-data-pipelines-with-kubernetes-927d7c96fdbe?source=rss-2ba67c53e22e------2</link>
            <guid isPermaLink="false">https://medium.com/p/927d7c96fdbe</guid>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[data]]></category>
            <category><![CDATA[future]]></category>
            <category><![CDATA[learning]]></category>
            <dc:creator><![CDATA[Hema Sai Sindhu Yerramsetti]]></dc:creator>
            <pubDate>Mon, 28 Aug 2023 22:29:41 GMT</pubDate>
            <atom:updated>2023-08-30T16:32:05.017Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FvUIQBJ1cfhWVOjipcXONw.gif" /><figcaption>Building Scalable Data Pipelines using Kubernetes</figcaption></figure><p>In today’s data-driven world 🌎, the efficient management of data pipelines is crucial. Data pipelines are the backbone of data analytics and machine learning processes, enabling organizations to turn raw data into valuable insights. However, building and managing data pipelines can be challenging. In this article, we will explore how Kubernetes, a powerful container orchestration platform, can revolutionize the way we build and manage data pipelines.</p><p>⭐ <strong>Understanding Data Pipelines</strong></p><p>Data pipelines are a series of data processing steps that transform raw data into a usable format for analysis or machine learning. They are like the superhighways that connect data sources to data consumers within an organization. However, building and maintaining these pipelines can be complex and time-consuming.</p><p>🚀 <strong>Enter Kubernetes</strong></p><p>Kubernetes, often abbreviated as K8s, was originally designed for managing containerized applications. Its ability to automate the deployment, scaling, and operation of application containers has made it a game-changer in the world of data pipeline management.</p><p>🌠<strong>Building Data Pipelines with Kubernetes</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/862/1*a3Ty2Mw84SxRQQW4P2-jDg.png" /><figcaption>Kubernetes in Data Pipelines</figcaption></figure><p>Here’s a step-by-step guide on how to set up data pipelines using Kubernetes:</p><ol><li><strong>Containerization:</strong> Package your data processing tasks into containers. This ensures consistency and portability.</li><li><strong>Cluster Deployment:</strong> Deploy a Kubernetes cluster. You can use managed Kubernetes services like Google Kubernetes Engine (GKE) or Amazon EKS.</li><li><strong>Pods and Deployments:</strong> Define Kubernetes Pods and Deployments to run your data processing containers. Pods are the smallest deployable units in Kubernetes, and Deployments manage the lifecycle of Pods.</li><li><strong>Scaling:</strong> Kubernetes allows you to scale your data processing tasks horizontally by simply adjusting the number of replicas in your Deployment.</li><li><strong>Service Discovery:</strong> Use Kubernetes Services to enable service discovery and load balancing for your data processing tasks.</li></ol><p>📌 <strong>Benefits of Kubernetes in Data Pipelines</strong></p><p>The advantages of using Kubernetes for data pipelines are numerous:</p><ul><li><strong>Scalability:</strong> Easily scale your data pipelines to handle increased data loads.</li><li><strong>Fault Tolerance:</strong> Kubernetes ensures high availability, automatically replacing failed containers or nodes.</li><li><strong>Resource Efficiency:</strong> Optimize resource usage by managing container placement effectively.</li></ul><p>🎯<strong>Future Trends</strong></p><p>The world of data pipelines and Kubernetes is continuously evolving. Stay updated with emerging trends like serverless data processing and machine learning orchestration.</p><p><em>Thank you for spending your valuable time in reading this blog. I am open to any data-related conversations that will help us grow together.</em></p><p>Follow us on <strong>Medium</strong> and <strong>LinkedIn</strong> for more interesting information and great learnings!!!</p><p><strong>Medium:</strong> <a href="https://medium.com/cloudnloud">CloudnLoud</a> and <a href="http://hemaytech.medium.com/">Hema Yerramsetti</a></p><p><strong>LinkedIn: </strong><a href="https://www.linkedin.com/company/cloudnloud/">CloudnLoud</a> and <a href="https://www.linkedin.com/in/hemaytech/">Hema Yerramsetti</a></p><p><strong>Github: </strong><a href="https://github.com/hemaytech">Hema Yerramsetti</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=927d7c96fdbe" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SQL Series | How to optimize the SQL queries]]></title>
            <link>https://hemaytech.medium.com/sql-series-how-to-optimize-the-sql-queries-3012f5d64a46?source=rss-2ba67c53e22e------2</link>
            <guid isPermaLink="false">https://medium.com/p/3012f5d64a46</guid>
            <category><![CDATA[optimization]]></category>
            <category><![CDATA[learning]]></category>
            <category><![CDATA[data]]></category>
            <category><![CDATA[query]]></category>
            <category><![CDATA[sql]]></category>
            <dc:creator><![CDATA[Hema Sai Sindhu Yerramsetti]]></dc:creator>
            <pubDate>Sun, 25 Jun 2023 20:58:33 GMT</pubDate>
            <atom:updated>2023-06-26T05:22:58.319Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>Enhancing Performance and Efficiency in SQL</blockquote><p>Hey there, SQL enthusiasts! 👋</p><p>Have you ever wondered how you can optimize your queries to achieve lightning-fast results? Well, you’re in the right place! In this blog, we’ll explore some tips and tricks to optimize your SQL queries.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/891/1*r8ybDf7SZb1UaHziI6nQDQ.png" /></figure><blockquote><strong>Let’s jump into the SQL world </strong>🌏<strong>!</strong></blockquote><h4><strong>1. </strong>Analyzing Query Execution Plans</h4><p>Execution plans provide insights into how the database engine processes and retrieves data. By examining these plans, you can identify potential bottlenecks, such as missing indexes or inefficient joins. Utilize tools like EXPLAIN or SQL Server Management Studio to visualize and analyze the execution plans, empowering you to make informed optimization decisions.</p><h4><strong>2. Use Column names</strong></h4><p>Instead of relying on the wildcard (*) to fetch all columns from a table, list the column names you require. This way, you only retrieve the necessary data and minimize the strain on your database and speed up the retrieval process.</p><h4>❌ Not a best practice</h4><pre>SELECT * FROM employee;</pre><h4>✅ Best Practice</h4><pre>SELECT emp_id,first_name, last_name, dept_id, salary FROM employee;</pre><h4>3. Use filters when necessary</h4><p>To narrow down your results effectively, ensure you use appropriate conditions and indexes. This enables the database engine to quickly locate and retrieve the desired data in lesser time.</p><h4>❌ Not a best practice</h4><pre>--Query to view the employees for a specific department<br><br>SELECT emp_id, first_name .... FROM employee; <br><br>--OR<br><br>SELECT * FROM employee;</pre><h4>✅ Best Practice</h4><pre>--Always good to specify the filter conditions if we have any<br><br>SELECT emp_id,first_name, last_name, dept_id, salary FROM employee <br>WHERE dept_id = 10;</pre><h4>4. Limit the results</h4><p>Fetching a large number of rows when you only need a handful of records can be a waste of resources. To fine-tune your queries, use LIMIT or TOP clauses to restrict the number of returned rows.</p><h4>❌ Not a best practice</h4><pre>-- Avoid fetching all records if we want to view the sample 5 or 10 records<br><br>SELECT emp_id, first_name .... FROM employee; <br><br>--OR<br><br>SELECT * FROM employee;</pre><h4>✅ Best Practice</h4><pre>-- Fetching only a few records will always be a good option for a sample view<br><br>SELECT TOP 10 * FROM employee;<br><br>--OR<br><br>SELECT * FROM employee LIMIT 10;</pre><h4>5. Create indexes</h4><p>Indexes are like a guidebook for the database to quickly find and fetch data. They create a map of the table’s contents, making it easier for the database to search for specific information. By choosing the right columns to index, you can greatly improve the speed of your queries.</p><blockquote>A well-designed index can do wonders in making your queries run faster.</blockquote><h4>6. Writing JOINS efficiently</h4><p>Joining tables in SQL is important for combining data, but it’s essential to optimize your joins to avoid slow query execution. To do this, choose the right join types (like INNER JOIN, LEFT JOIN, or RIGHT JOIN) and make sure that the columns used for joining are indexed properly.</p><h4><strong>6. Avoid Unnecessary distinct conditions</strong></h4><p>DISTINCT keyword will help us in retrieving the duplicate records. However, it will unnecessarily consume more computing power to perform this operation. If we add the primary key and other columns to our query, it will naturally give us non-duplicated records.</p><h4>❌ Not a best practice</h4><pre>-- Without a primary key<br><br>SELECT DISTINCT first_name, last_name, salary FROM employee;</pre><h4>✅ Best Practice</h4><pre>-- Adding primary and other columns produce more distinct records<br><br>SELECT emp_id, first_name, last_name, dept_id, salary FROM employee;</pre><h4>7. Avoid subquery if join is possible</h4><p>Using joins instead of subqueries leads to more efficient execution and more effective computation.</p><h4>❌ Not a best practice</h4><pre>SELECT * FROM products p WHERE p.prod_id = (SELECT s.prod_id<br>FROM sales s WHERE s.cust_id = 100 <br>AND s.quantity_sold = 1 );</pre><h4>✅ Best Practice</h4><pre>SELECT p.* FROM products p, sales s WHERE p.prod_id = s.prod_id <br>AND s.cust_id = 100 AND s.quantity_sold = 1; </pre><h4>8. Avoid using OR in JOIN conditions</h4><p>If we use OR in our JOIN conditions, the query gets slowed down by a factor of 2.</p><h4>❌ Not a best practice</h4><pre>SELECT * FROM costs c INNER JOIN products p <br>ON c.unit_price = p.prod_min_price OR c.unit_price = p.prod_list_price; </pre><h4>✅ Best Practice</h4><pre>SELECT * FROM costs c INNER JOIN products p ON c.unit_price = p.prod_min_price <br>UNION ALL <br>SELECT * FROM costs c INNER JOIN products p ON c.unit_price = p.prod_list_price;</pre><h4>9. Try to use UNION ALL in place of UNION</h4><p>UNION ALL is faster than UNION as UNION ALL does not consider duplicates but UNION will look for duplicate records whether they exist or not.</p><h4>❌ Not a best practice</h4><pre>SELECT customer_id FROM sales<br>UNION<br>SELECT customer_id FROM customers;</pre><h4>✅ Best Practice</h4><pre>SELECT customer_id FROM sales<br>UNION ALL<br>SELECT customer_id FROM customers;</pre><h4>10. Avoid any functions on the right-hand side of the operator</h4><p>The query performance will increase greatly if we avoid using the functions on the right-hand side of the operator.</p><h4>❌ Not a best practice</h4><pre>SELECT * FROM sales<br>WHERE EXTRACT (YEAR FROM TO_DATE (time_id, ‘DD-MON-YYYY’)) = 2021 <br>AND EXTRACT (MONTH FROM TO_DATE (time_id, ‘DD-MON-YYYY’)) = 2002;</pre><h4>✅ Best Practice</h4><pre>SELECT * FROM sales<br>WHERE TRUNC (time_id) BETWEEN TRUNC(TO_DATE(‘12/01/2001’, ’mm/dd/yyyy’)) <br>AND TRUNC (TO_DATE (‘12/30/2001’,’mm/dd/yyyy’));</pre><p>Thanks for joining me on this thrilling SQL journey! Until next time, happy learning and keep SQL-ing! 😊✨</p><p>Follow us on <strong>Medium</strong> and <strong>LinkedIn</strong> for more interesting information and great learnings!!!</p><p><strong>Medium:</strong> <a href="https://medium.com/cloudnloud">CloudnLoud</a> and <a href="https://medium.com/@hemayerramsetti9">Hema Yerramsetti</a></p><p><strong>LinkedIn: </strong><a href="https://www.linkedin.com/company/cloudnloud/">CloudnLoud</a> and <a href="https://www.linkedin.com/in/hemay/">Hema Yerramsetti</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3012f5d64a46" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SQL Series | Why the difference in Counts?]]></title>
            <link>https://hemaytech.medium.com/sql-series-why-the-difference-in-counts-13f87f8d5eaf?source=rss-2ba67c53e22e------2</link>
            <guid isPermaLink="false">https://medium.com/p/13f87f8d5eaf</guid>
            <category><![CDATA[careers]]></category>
            <category><![CDATA[analytics]]></category>
            <category><![CDATA[learning]]></category>
            <category><![CDATA[data]]></category>
            <category><![CDATA[sql]]></category>
            <dc:creator><![CDATA[Hema Sai Sindhu Yerramsetti]]></dc:creator>
            <pubDate>Wed, 07 Jun 2023 20:02:59 GMT</pubDate>
            <atom:updated>2023-06-07T23:02:53.505Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>In this blog, I would like to show a SQL example to show the right usage of an aggregate function</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/735/0*P1IOI3MBGWIQuiny" /><figcaption>Image Source: Google</figcaption></figure><p>Have you ever observed the difference in the count of the records when you apply different column conditions?</p><p>Let us see sample data in a SQL table and understand this.</p><p>We have a table called ‘Emp’ and it has 5 records as shown below.</p><pre>SELECT * FROM Emp;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/397/1*fWGsgl8tbIejD3ofi4olvQ.png" /></figure><p>Let’s take the count of records using the ‘emp_id’ column.</p><pre>SELECT COUNT(emp_id) AS total_record_count FROM Emp;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/652/1*ca61UrJDhhvy7RNMPDUSVw.png" /><figcaption>Count Query using Emp_Id column</figcaption></figure><p>Now, let’s observe the count of records using the ‘middle_name’ column.</p><pre>SELECT COUNT(middle_name) AS total_record_count FROM Emp;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/711/1*YdNwYzK44H6fTo8wF9ZXyw.png" /></figure><p>Did you observe the difference in counts??? 🧐🧐🧐</p><p>The reason behind this is, SQL while counting the number of rows using a column name will ignore the NULL field values.</p><p><em>( ** NULL indicates an unknown value )</em></p><h3>How to get the count of records with NULL values?</h3><p>Using count(*) or count(1) will count the number of null and non-null items.</p><pre>SELECT count(*) AS total_record_count, count(1) AS total_count FROM Emp;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/783/1*hYBK-JCAPeykdULGWB7GBw.png" /></figure><p>Both give the same results with no DIFFERENCE.</p><p>We can also count on a column with non-null values such as the <strong><em>Primary Key</em></strong> of the table to get the right counts.</p><p><em>Sometimes, count(*) will impact the query performance if it is dealing with millions of records, using count(1) or counting on the primary key will be the best approach in such cases.</em></p><p>Happy Learning!!! ☺️☺️☺️</p><p>Thanks for reading this article!!!</p><p>Follow <a href="https://medium.com/cloudnloud">Cloudnloud Community</a> and <a href="https://hemayerramsetti9.medium.com/">Hema Sai Sindhu Yerramsetti</a> for more learnings!!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=13f87f8d5eaf" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>