<?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 Ishini Dimani on Medium]]></title>
        <description><![CDATA[Stories by Ishini Dimani on Medium]]></description>
        <link>https://medium.com/@amarasinghaishini?source=rss-e80173a5f399------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*noVKRveBNQKxed1fzJFzSg.png</url>
            <title>Stories by Ishini Dimani on Medium</title>
            <link>https://medium.com/@amarasinghaishini?source=rss-e80173a5f399------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 17:30:21 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@amarasinghaishini/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[Understanding ACID Principles in Database Management Systems]]></title>
            <link>https://medium.com/@amarasinghaishini/understanding-acid-principles-in-database-management-systems-32cfa62705cd?source=rss-e80173a5f399------2</link>
            <guid isPermaLink="false">https://medium.com/p/32cfa62705cd</guid>
            <category><![CDATA[dbms]]></category>
            <category><![CDATA[acid-principles]]></category>
            <dc:creator><![CDATA[Ishini Dimani]]></dc:creator>
            <pubDate>Tue, 30 Jul 2024 13:01:41 GMT</pubDate>
            <atom:updated>2024-07-30T13:20:10.687Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Zk3GCsgRhfRyL-mTChJffA.png" /></figure><p>In the world of databases, ensuring the reliability and integrity of data is paramount. This is achieved through transactions, which are single logical units of work that access and possibly modify the contents of a database. Transactions access data using read and write operations. In order to maintain consistency in a database, before and after the transaction, certain properties are followed. These are called ACID properties. ACID stands for Atomicity, Consistency, Isolation, and Durability. Together, these principles guarantee that database transactions are processed reliably and ensure data integrity even in the event of errors, power failures, or other unexpected issues.</p><h3>Atomicity</h3><p><strong>Definition:</strong> Atomicity ensures that a series of database operations within a transaction are treated as a single, indivisible unit. This means that either all operations within the transaction are completed successfully, or none of them are. There is no partial completion. Atomicity is also known as the ‘All or nothing rule’.</p><p><strong>Operations:</strong></p><ul><li><strong>Commit:</strong> If all operations within a transaction are completed successfully, the transaction is committed, meaning the changes are saved permanently to the database.</li><li><strong>Abort:</strong> If any operation within the transaction fails, the transaction is aborted, meaning all changes made during the transaction are rolled back to ensure the database remains in its original state.</li></ul><p><strong>Example:</strong> Consider a banking application where you transfer money from Account A to Account B. The transaction involves two operations:</p><ol><li>Deducting the amount from Account A.</li><li>Adding the amount to Account B.</li></ol><p>If the transaction fails after deducting the amount from Account A but before adding it to Account B, the system must ensure that the deduction is rolled back, leaving both accounts unchanged.</p><blockquote><strong>Importance:</strong> Atomicity prevents data corruption by ensuring that incomplete transactions do not affect the database’s state.</blockquote><h3>Consistency</h3><p><strong>Definition:</strong> Consistency ensures that a transaction brings the database from one valid state to another, maintaining the database’s predefined rules and constraints. A transaction must adhere to all the integrity constraints (such as foreign keys, unique constraints) defined in the database schema.</p><p><strong>Example:</strong> Suppose a database has a rule that the balance of any account cannot be negative. If a transaction attempts to withdraw more money than is available in an account, consistency ensures that the transaction fails and the database state remains unchanged.</p><blockquote><strong>Importance:</strong> Consistency ensures that the database remains in a valid state before and after a transaction, thus maintaining data integrity.</blockquote><h3>Isolation</h3><p><strong>Definition:</strong> Isolation ensures that the concurrent execution of transactions leaves the database in the same state as if the transactions were executed sequentially. Each transaction must be isolated from others, preventing concurrent transactions from interfering with each other.</p><p><strong>Example:</strong> If two users simultaneously attempt to update the same record, isolation ensures that one transaction completes before the other begins, preventing data anomalies.</p><blockquote><strong>Importance:</strong> Isolation prevents data inconsistencies and race conditions that can occur when multiple transactions are executed concurrently.</blockquote><h3>Durability</h3><p><strong>Definition:</strong> Durability guarantees that once a transaction has been committed, it will remain committed even in the case of a system failure. The changes made by the transaction are permanently recorded in the database.</p><p><strong>Example:</strong> After a banking transaction completes and the changes are committed (e.g., money transferred between accounts), those changes must not be lost, even if the system crashes immediately after.</p><blockquote><strong>Importance:</strong> Durability ensures that the effects of a committed transaction are never lost, providing reliability and data integrity.</blockquote><h3>Advantages of ACID Properties</h3><ol><li><strong>Data Integrity:</strong> ACID properties ensure that data remains accurate and consistent across transactions.</li><li><strong>Error Recovery:</strong> Atomicity and Durability help in recovering from errors and failures without losing data.</li><li><strong>Concurrency Control:</strong> Isolation allows multiple transactions to be executed concurrently without leading to data inconsistency.</li><li><strong>Reliability:</strong> Consistent and reliable transaction processing leads to increased trust in the database system.</li></ol><h3>Disadvantages of ACID Properties</h3><ol><li><strong>Performance Overhead:</strong> Ensuring ACID properties can introduce performance overhead, especially with Isolation, which can slow down transaction processing.</li><li><strong>Complexity:</strong> Implementing and managing ACID properties can add complexity to the database management system.</li><li><strong>Resource Intensive:</strong> Durability and Isolation require additional resources, such as disk space for logging and mechanisms for locking data, which can increase costs.</li><li><strong>Scalability Issues:</strong> Maintaining ACID properties in distributed databases can be challenging and may affect scalability.</li></ol><h4>Conclusion</h4><p>The ACID principles are crucial for ensuring the reliability, integrity, and consistency of data in a DBMS. By adhering to these principles, database systems can handle transactions in a manner that safeguards against errors, crashes, and concurrent access issues, thus maintaining the trustworthiness of the data they manage. Understanding and implementing ACID principles is essential for database administrators and developers to design robust and reliable database systems. While there are some disadvantages, the benefits of maintaining data integrity and reliability often outweigh the challenges.</p><p><strong>Resources :</strong></p><p><a href="https://www.geeksforgeeks.org/acid-properties-in-dbms/">ACID Properties in DBMS - GeeksforGeeks</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=32cfa62705cd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[JavaScript ES6: The ‘Write Less, Do More’ Revolution]]></title>
            <link>https://medium.com/@amarasinghaishini/javascript-es6-the-write-less-do-more-revolution-02b22252985f?source=rss-e80173a5f399------2</link>
            <guid isPermaLink="false">https://medium.com/p/02b22252985f</guid>
            <category><![CDATA[es6-js]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[ecmascript2015]]></category>
            <dc:creator><![CDATA[Ishini Dimani]]></dc:creator>
            <pubDate>Thu, 04 Jul 2024 07:30:41 GMT</pubDate>
            <atom:updated>2024-07-04T07:30:41.496Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FcEZVbmdFTE6Uar3aru2rg.png" /></figure><p>JavaScript ES6, also known as ECMAScript 2015, brought significant improvements and new features to the JavaScript language. These features improve the readability, maintainability, and functionality of JavaScript code, making development more efficient. This article delves into some of the most impactful features introduced in ES6, along with simple code examples to illustrate their functionality.</p><h3>Arrow Functions</h3><p>Arrow functions provide a concise syntax for writing functions, especially useful for short, one-line operations. We don’t need the function keyword, the return keyword, and the <strong>curly brackets</strong>. And also arrow functions are not hoisted, <strong>they must be defined before they are used.</strong></p><pre>// Traditional function<br>function add(a, b) {<br>  return a + b;<br>}<br><br>// Arrow function<br>const add = (a, b) =&gt; a + b;</pre><p>Arrow functions are not only shorter but also handle the this keyword differently, making them suitable for use in callbacks and array methods.</p><h3>Template Literals</h3><p>Template literals allow embedding variables and expressions inside strings, providing a cleaner and more readable way to concatenate strings. We denote regular strings in JavaScript using double quotes &quot;&quot; or single quotes &#39;&#39;. But <strong>with template literals, we denote strings using backticks </strong><strong>``.</strong></p><pre>const name = &#39;John&#39;;<br>const greeting = `Hello, ${name}!`; // Template literal<br>console.log(greeting); // Output: Hello, John!</pre><p>Template literals can span multiple lines, making string manipulation easier.</p><h3>Destructuring Assignment</h3><p>Destructuring assignment simplifies the extraction of values from objects or arrays into individual variables. In Destructuring Assignment on the left-hand side defined that which value should be unpacked from the sourced variable.</p><pre>// Array destructuring<br>var names = [&quot;anne&quot;, &quot;alex&quot;, &quot;rose&quot;, &quot;kevin&quot;]; <br><br>var firstName = names[0]; <br>var secondName = names[1]; <br><br>console.log(firstName);//&quot;anne&quot; <br>console.log(secondName);//&quot;alex&quot;<br><br>// Object destructuring<br>const person = { name: &#39;Alice&#39;, age: 25 };<br>const { name, age } = person;<br>console.log(name); // Output: Alice<br>console.log(age); // Output: 25</pre><p>Destructuring makes it easy to extract and use multiple values from arrays and objects.</p><h3>Rest Parameter</h3><p>The rest parameter is an improved way to handle function parameters, allowing us to more easily handle various inputs as parameters in a function. <strong>The rest parameter syntax allows us to represent an indefinite number of arguments as an array. </strong>With the help of a rest parameter, a function can be called with any number of arguments, no matter how it was defined.</p><pre>function sum(...numbers) {<br>  return numbers.reduce((total, num) =&gt; total + num, 0);<br>}<br><br>console.log(sum(1, 2, 3, 4)); // Output: 10</pre><p>The rest parameter gathers all remaining arguments into an array, making it easier to work with variable numbers of arguments.</p><h3>Spread Operator (...)</h3><p>The spread operator allows for the<strong> expansion of elements</strong>, making it handy for creating new arrays or objects based on existing ones. This operator provides the convenience of easily extracting a list of parameters from an array, making our code more versatile and readable.</p><pre>const numbers = [1, 2, 3];<br>const moreNumbers = [...numbers, 4, 5];<br>console.log(moreNumbers); // Output: [1, 2, 3, 4, 5]<br><br>const obj1 = { a: 1, b: 2 };<br>const obj2 = { ...obj1, c: 3 };<br>console.log(obj2); // Output: { a: 1, b: 2, c: 3 }</pre><p><em>Important : Spread syntax looks exactly like rest syntax. In a way, spread syntax is the opposite of rest syntax. Spread syntax “expands” an array into its elements, while rest syntax collects multiple elements and “condenses” them into a single element.</em></p><h3>Async/Await</h3><p>Async/await is a syntax for <strong>handling asynchronous code</strong> more concisely, providing a cleaner alternative to working with promises. Async functions implicitly return promises, while Await pauses the execution until the promise is resolved.</p><pre>function fetchData() {<br>  return new Promise((resolve) =&gt; {<br>    setTimeout(() =&gt; resolve(&#39;Data fetched&#39;), 1000);<br>  });<br>}<br><br>async function getData() {<br>  const data = await fetchData();<br>  console.log(data); // Output: Data fetched<br>}<br><br>getData();</pre><p>Async/await makes asynchronous code look synchronous, simplifying error handling and readability.</p><h3>Map &amp; Set</h3><p>Map and Set are new data structures introduced in ES6. Map is an ordered collection of key-value pairs, and Set is a collection of unique values.</p><pre>// Map example<br>const map = new Map();<br>map.set(&#39;name&#39;, &#39;Alice&#39;);<br>map.set(&#39;age&#39;, 25);<br>console.log(map.get(&#39;name&#39;)); // Output: Alice<br><br>// Set example<br>const set = new Set([1, 2, 3, 3, 4]);<br>console.log(set); // Output: Set { 1, 2, 3, 4 }</pre><h3>Default Parameters</h3><p>Default parameters provide values for function parameters if none are provided or undefined is passed, improving flexibility and reducing the need for explicit checks.</p><pre>function welcome(name = &#39;Guest&#39;) {<br>  console.log(`Hello, ${name}!`);<br>}<br><br>welcome(); // Output: Hello, Guest!<br>welcome(&#39;Alice&#39;); // Output: Hello, Alice!</pre><p>In this example, the welcome() function has a default parameter name with the string value Guest. Since we have not passed any argument to the function, it uses the default value.</p><h3>Modules</h3><p>ES6 modules provide a clean and organized way to structure and import/export code, improving maintainability and reusability. We can create modules to better organize and structure our codebase and use them to break down large programs into smaller, more manageable, and more independent chunks of code which carry out a single or a couple of related tasks.</p><pre>// Math.js<br><br>export const add = (a, b) =&gt; a + b;<br>export const subtract = (a, b) =&gt; a - b;</pre><pre>// Main.js<br><br>import { add, subtract } from &#39;./math.js&#39;;<br><br>console.log(add(5, 3)); // Output: 8<br>console.log(subtract(5, 3)); // Output: 2</pre><p>Modules help organize code by separating functionality into different files.</p><h3>Array Methods: Map, Filter, and Reduce</h3><p>Map, reduce, and filter are all array methods in JavaScript. Each one will iterate over an array and perform a transformation or computation. Each will return a new array based on the result of the function.</p><h4>Map Method</h4><p>The map method creates a new array by applying a provided function to each element of an existing array.</p><pre>const numbers = [1, 2, 3];<br>const squares = numbers.map(num =&gt; num * num);<br>console.log(squares); // Output: [1, 4, 9]</pre><p>The map method transforms each element in an array and returns a new array with the transformed values.</p><h4>Filter Method</h4><p>The filter method creates a new array containing only the elements that satisfy a specified condition. If this conditional returns true, the element gets pushed to the output array. If the condition returns false, the element does not get pushed to the output array.</p><pre>const numbers = [1, 2, 3, 4, 5];<br>const evenNumbers = numbers.filter(num =&gt; num % 2 === 0);<br>console.log(evenNumbers); // Output: [2, 4]</pre><p>The filter method is useful for extracting elements that meet specific criteria.</p><h4>Reduce Method</h4><p>The reduce method accumulates the elements of an array into a single value.</p><pre>const numbers = [1, 2, 3, 4];<br>const sum = numbers.reduce((total, num) =&gt; total + num, 0);<br>console.log(sum); // Output: 10</pre><p>The reduce method combines all elements in an array into a single result, such as a sum or product.</p><h3>Conclusion</h3><p>JavaScript ES6 introduces a wealth of features that make coding more efficient, readable, and maintainable. From arrow functions to async/await, each feature addresses common programming challenges, making it easier for developers to write clean and effective code. By mastering these ES6 features, we can greatly improve your JavaScript programming skills and build more robust applications.</p><p><strong>Resources :</strong></p><ul><li><a href="https://www.w3schools.com/js/js_es6.asp">W3Schools.com</a></li><li><a href="https://www.freecodecamp.org/news/write-less-do-more-with-javascript-es6-5fd4a8e50ee2/">JavaScript ES6 - write less, do more</a></li><li><a href="https://www.geeksforgeeks.org/introduction-to-es6/">Introduction to ES6 - GeeksforGeeks</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=02b22252985f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SQL vs. NoSQL: Choosing the Right Database for Your Needs]]></title>
            <link>https://medium.com/@amarasinghaishini/sql-vs-nosql-choosing-the-right-database-for-your-needs-b3ea2530ac27?source=rss-e80173a5f399------2</link>
            <guid isPermaLink="false">https://medium.com/p/b3ea2530ac27</guid>
            <category><![CDATA[database]]></category>
            <category><![CDATA[nosql]]></category>
            <category><![CDATA[sql]]></category>
            <dc:creator><![CDATA[Ishini Dimani]]></dc:creator>
            <pubDate>Mon, 24 Jun 2024 17:02:57 GMT</pubDate>
            <atom:updated>2024-06-24T17:07:49.391Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eUc72yn1mFeLHA5LBmPceg.png" /></figure><p>In today’s data-driven world, choosing the right database technology is crucial for building efficient and scalable applications. There are two main types of databases: SQL (Structured Query Language) and NoSQL (Not Only SQL). This article delves into the core differences between these approaches, their strengths and weaknesses, and helps you decide which one best suits your project requirements.</p><h3>Understanding SQL Databases</h3><p>SQL databases, also known as Relational Databases (RDBMS), have been the cornerstone of data storage for decades. They are based on the relational model, which organizes data into structured tables with rows and columns. Each table represents a specific entity, and columns define the attributes of that entity.</p><p><strong>Key characteristics of SQL databases:</strong></p><ul><li><strong>Structured Data:</strong> Data is organized into predefined tables with a fixed schema. This schema defines the data types, relationships between tables, and constraints on the data.</li><li><strong>ACID Properties:</strong> SQL databases ensure Atomicity (transactions are all-or-nothing), Consistency (data remains consistent after transactions), Isolation (transactions don’t interfere with each other), and Durability (committed transactions are permanent).</li><li><strong>SQL Language:</strong> Data manipulation and retrieval are performed using the Structured Query Language (SQL). SQL provides a powerful and flexible way to interact with the database.</li></ul><p><strong>Strengths of SQL databases:</strong></p><ul><li><strong>Data Integrity:</strong> The relational model enforces data consistency and minimizes redundancy.</li><li><strong>Strong Query Capabilities:</strong> SQL offers a wide range of querying options for complex data analysis and manipulation.</li><li><strong>Transactions:</strong> ACID properties guarantee data consistency, especially crucial for financial and other mission-critical applications.</li></ul><p><strong>Weaknesses of SQL databases:</strong></p><ul><li><strong>Schema Rigidity:</strong> A predefined schema can be inflexible for evolving data models. Adding new data types or modifying existing ones requires schema changes, potentially impacting existing applications.</li><li><strong>Scalability:</strong> Scaling a relational database can be complex, often requiring vertical scaling (upgrading hardware) or horizontal scaling (sharding data across multiple servers).</li><li><strong>Performance for Unstructured Data:</strong> SQL databases are optimized for structured data. Storing and querying unstructured data like JSON documents can be less efficient.</li></ul><h3>Understanding NoSQL Databases</h3><p>NoSQL databases offer a more flexible alternative to the relational model. They are designed to handle large volumes of diverse data, including structured, semi-structured, and unstructured data. Unlike SQL, NoSQL databases don’t adhere to a single data model, allowing for greater flexibility in how data is stored and accessed.</p><p><strong>Common types of NoSQL databases:</strong></p><ul><li><strong>Document stores:</strong> Store data in JSON-like documents, ideal for storing complex and hierarchical data. (e.g., MongoDB, CouchDB)</li><li><strong>Key-value stores:</strong> Store data as key-value pairs, offering fast retrieval based on the unique key. (e.g., Redis, Memcached)</li><li><strong>Graph databases:</strong> Represent data as nodes and edges, ideal for modeling relationships between entities. (e.g., Neo4j, InfiniteGraph)</li></ul><p><strong>Strengths of NoSQL databases:</strong></p><ul><li><strong>Flexibility:</strong> NoSQL databases can accommodate a wider variety of data formats, including evolving data models.</li><li><strong>Scalability:</strong> NoSQL databases often scale horizontally by adding more servers, making them well-suited for big data applications.</li><li><strong>Performance for Unstructured Data:</strong> NoSQL databases are optimized for storing and querying unstructured data efficiently.</li></ul><p><strong>Weaknesses of NoSQL databases:</strong></p><ul><li><strong>Data Integrity:</strong> NoSQL databases may not enforce the same level of data integrity as SQL databases.</li><li><strong>Transactions:</strong> ACID transactions may not be guaranteed in all NoSQL databases.</li><li><strong>Querying:</strong> Querying capabilities can vary depending on the NoSQL database type. Some may require learning a new query language specific to the database.</li></ul><h3>Choosing Between SQL and NoSQL</h3><p>The decision between SQL and NoSQL depends on several factors:</p><ul><li><strong>Data Structure:</strong> If your data is highly structured with well-defined relationships, SQL might be a better choice. For unstructured or semi-structured data, NoSQL offers more flexibility.</li><li><strong>Scalability Needs:</strong> If you anticipate massive data growth, NoSQL’s horizontal scalability might be advantageous.</li><li><strong>Query Complexity:</strong> If your application requires complex data analysis with frequent joins between tables, SQL’s querying power might be preferred.</li><li><strong>Performance Requirements:</strong> For real-time applications or those dealing with large amounts of unstructured data, NoSQL might deliver better performance.</li></ul><p><strong>In some cases, you might even consider using a hybrid approach, leveraging both SQL and NoSQL databases for different aspects of your application.</strong></p><h3>Conclusion</h3><p>SQL and NoSQL databases each have their strengths and weaknesses. Understanding these differences and your specific project requirements is crucial for making an informed decision. By carefully evaluating your data model, scalability needs, and querying complexity, you can choose the database technology that best empowers your application to thrive.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b3ea2530ac27" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Mastering MongoDB Aggregation: Unleashing Power Through Pipelines]]></title>
            <link>https://medium.com/@amarasinghaishini/mastering-mongodb-aggregation-unleashing-power-through-pipelines-11c38e3817e4?source=rss-e80173a5f399------2</link>
            <guid isPermaLink="false">https://medium.com/p/11c38e3817e4</guid>
            <category><![CDATA[mongodbaggregation]]></category>
            <category><![CDATA[mongodb]]></category>
            <category><![CDATA[aggregation-pipeline]]></category>
            <dc:creator><![CDATA[Ishini Dimani]]></dc:creator>
            <pubDate>Sat, 18 May 2024 15:42:06 GMT</pubDate>
            <atom:updated>2024-05-18T15:42:06.476Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jebCP_X_g7fFqerrEzWM1g.png" /></figure><h3>What is the Aggregation Framework?</h3><p>The Aggregation Framework in MongoDB is a powerful and versatile tool designed to perform complex data analysis directly within the database. Unlike basic query methods such as find and findOne, which retrieve documents based on simple criteria, the Aggregation Framework allows for the transformation and combination of documents using a sequence of stages. These stages can filter, group, sort, reshape, and modify data in various ways, enabling sophisticated data processing and aggregation operations. The framework is built to handle large volumes of data efficiently, making it ideal for applications that require complex reporting and analytics.</p><p>Before diving into the Aggregation Pipeline, let’s discuss some of the essential stages of the Aggregation Framework, including `$match`, `$group`, `$sort`, `$project`, `$convert`, `$isoWeek`, `$unwind`, `$filter`, and `$bucket`, along with suitable examples.</p><h4>$match</h4><p>The `$match` stage filters documents based on specified criteria. It is similar to the `find` method but used within an aggregation pipeline to filter documents before further processing.</p><p>Suppose we have a collection `sales` and want to filter documents where the `category` is “electronics”:</p><pre>db.sales.aggregate([<br> { $match: { category: &quot;electronics&quot; } }<br>])</pre><h4>$group</h4><p>The `$group` stage groups documents by a specified identifier and performs aggregations on the grouped data. This stage is essential for operations like summing values, calculating averages, and counting documents.</p><p>To group sales by `product` and calculate the total sales amount for each product:</p><pre>db.sales.aggregate([<br> { $group: { _id: &quot;$product&quot;, totalSales: { $sum: &quot;$amount&quot; } } }<br>])</pre><h4>$sort</h4><p>The `$sort` stage sorts documents in the order specified by the user. Sorting can be done in ascending (`1`) or descending (`-1`) order.</p><p>To sort sales documents by the `amount` field in descending order:</p><pre>db.sales.aggregate([<br> { $sort: { amount: -1 } }<br>])</pre><h4>$project</h4><p>The `$project` stage is used to include, exclude, and add new fields to the documents that pass through the pipeline. It allows for reshaping documents by specifying which fields to keep or modify.</p><p>To reshape documents to include only the `product` and `totalSales` fields, and to add a new field `discountedAmount` which is 90% of `amount`:</p><pre>db.sales.aggregate([<br> { $project: { product: 1, amount: 1, discountedAmount: { $multiply: [&quot;$amount&quot;, 0.9] } } }<br>])</pre><p><strong><em>Important: While `$group` and `$project` stages in MongoDB’s aggregation framework may appear similar, they serve distinct purposes.</em></strong></p><ul><li><strong><em>$group</em></strong><em> aggregates multiple documents into one based on specified criteria, allowing for operations like summing, averaging, and counting within each group.</em></li><li><strong><em>$project</em></strong><em> transforms individual documents by reshaping fields, including/excluding them, or adding new ones. It operates on a one-to-one basis, modifying document structure based on specified transformations.</em></li></ul><p><em>Understanding these differences is crucial for efficiently leveraging MongoDB’s aggregation capabilities for data processing and analysis.</em></p><h4>$convert</h4><p>The `$convert` operator converts a value to a specified type. This is useful for ensuring data type consistency across documents.</p><p>To convert a string date `orderDate` to an ISO date:</p><pre>db.orders.aggregate([<br> { <br> $project: { <br> orderDate: { $convert: { input: &quot;$orderDate&quot;, to: &quot;date&quot;, onError: null, onNull: null } },<br> amount: 1 <br> }<br> }<br>])</pre><h4>$isoWeek</h4><p>The `$isoWeek` operator extracts the ISO week number from a date. The ISO week date system starts weeks on Monday, and the first week of the year contains the first Thursday of the year.</p><p>To group events by ISO week number:</p><pre>db.events.aggregate([<br> {<br> $project: {<br> isoWeek: { $isoWeek: &quot;$eventDate&quot; },<br> eventName: 1<br> }<br> },<br> {<br> $group: {<br> _id: &quot;$isoWeek&quot;,<br> eventCount: { $sum: 1 }<br> }<br> }<br>])</pre><h4>$unwind</h4><p>The `$unwind` stage deconstructs an array field from the input documents to output a document for each element in the array.</p><p>To deconstruct the `items` array in `orders` collection:</p><pre>db.orders.aggregate([<br> { $unwind: &quot;$items&quot; }<br>])</pre><h4>$filter</h4><p>The `$filter` operator selects a subset of an array to return based on specified conditions. It can be used to refine arrays within documents.</p><p>To filter the `items` array to only include items with a quantity greater than 1:</p><pre>db.orders.aggregate([<br> {<br> $project: {<br> items: {<br> $filter: {<br> input: &quot;$items&quot;,<br> as: &quot;item&quot;,<br> cond: { $gt: [&quot;$$item.quantity&quot;, 1] }<br> }<br> }<br> }<br> }<br>])</pre><h4>$bucket</h4><p>The `$bucket` stage categorizes incoming documents into a specified number of groups, called buckets, based on a specified expression. It is useful for grouping data into ranges.</p><p>To categorize sales amounts into buckets:</p><pre>db.sales.aggregate([<br> {<br> $bucket: {<br> groupBy: &quot;$amount&quot;,<br> boundaries: [0, 100, 200, 300, 400],<br> default: &quot;Other&quot;,<br> output: {<br> count: { $sum: 1 },<br> totalSales: { $sum: &quot;$amount&quot; }<br> }<br> }<br> }<br>])</pre><p>By leveraging stages like `$match`, `$group`, `$sort`, `$project`, `$convert`, `$isoWeek`, `$unwind`, `$filter`, and `$bucket`, you can perform complex transformations and computations, enabling meaningful insights and sophisticated application logic.</p><p>Now, let’s talk about the Aggregation Pipeline.</p><h3>What is an Aggregation Pipeline?</h3><p>An aggregation pipeline is a sequence of stages that process and transform documents in MongoDB. Each stage performs an operation on the input documents and passes the result to the next stage. This pipeline approach allows for incremental transformations, where the output of one stage becomes the input for the next. The power of the aggregation pipeline lies in its flexibility and modularity, enabling developers to construct complex data processing workflows. Common stages in an aggregation pipeline include $match for filtering documents, $group for grouping and aggregating data, $sort for ordering documents, $project for reshaping documents, and many more specialized stages like $unwind, $bucket, and $filter. By chaining these stages together, you can perform sophisticated data manipulations and extract meaningful insights from your data efficiently.</p><h3>Understanding Aggregation Pipeline Optimization</h3><p>Optimizing an aggregation pipeline involves carefully designing the sequence and structure of stages to maximize performance. One fundamental principle is to use the $match stage early in the pipeline to reduce the number of documents that subsequent stages need to process. This can significantly improve efficiency by filtering out unnecessary data at the outset. Similarly, $sort stages should be placed strategically, often after $match and before grouping operations, to ensure they operate on a reduced dataset.</p><h4>Example Scenario: Analyzing Website Traffic</h4><p>Imagine you have a MongoDB collection `page_views` that logs each visitor’s interaction with your website. Each document in this collection records details such as the `visitor_id`, `page_url`, `timestamp`, and `duration_seconds`.</p><pre>{<br> &quot;_id&quot;: ObjectId(&quot;60a2eaccc16c1a1e5e8a1d31&quot;),<br> &quot;visitor_id&quot;: &quot;visitor123&quot;,<br> &quot;page_url&quot;: &quot;/home&quot;,<br> &quot;timestamp&quot;: ISODate(&quot;2023–05–15T10:30:00Z&quot;),<br> &quot;duration_seconds&quot;: 30<br>}</pre><p>Our goal is to analyze the average duration of visits (`duration_seconds`) per page (`page_url`) over a specific period and identify pages with the highest average visit durations.</p><p>Let’s break down the aggregation pipeline stages step-by-step to achieve this analysis:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MJY7Hyo90G7hT6ZKgFAUIQ.png" /></figure><p><strong>1. Filtering Data: </strong>Include only page views from the last month.</p><pre>{<br> $match: {<br> timestamp: { $gte: ISODate(&quot;2023–04–01&quot;), $lt: ISODate(&quot;2023–05–01&quot;) }<br> }<br> }</pre><p>This stage uses `$match` to filter documents where `timestamp` falls within April 2023.</p><p><strong>2. Grouping Data:</strong> Group page views by `page_url` and calculate the average `duration_seconds` for each page.</p><pre>{<br> $group: {<br> _id: &quot;$page_url&quot;,<br> average_duration: { $avg: &quot;$duration_seconds&quot; },<br> count: { $sum: 1 } // Optionally count the number of visits per page<br> }<br> }</pre><p>Here, `$group` groups documents by `page_url`, computing the average `duration_seconds` for each page while optionally counting the number of visits per page (`count`).</p><p><strong>3. Sorting:</strong> Sort the results by average duration in descending order to find pages with the highest average visit durations.</p><pre>{<br> $sort: { average_duration: -1 }<br> }</pre><p>The `$sort` stage arranges the grouped results by `average_duration` in descending order.</p><p><strong>4. Projecting Results:</strong> Project the `page_url`, `average_duration`, and optionally `count` fields for the final output.</p><pre>{<br> $project: {<br> _id: 0,<br> page_url: &quot;$_id&quot;,<br> average_duration: 1,<br> count: 1<br> }<br> }</pre><p>The `$project` stage shapes the output, renaming `_id` to `page_url` and excluding `_id` if not needed, while retaining `average_duration` and `count`.</p><p><strong>Complete Aggregation Pipeline</strong></p><pre>db.page_views.aggregate([<br> // Stage 1: Match documents for the last month<br> {<br> $match: {<br> timestamp: { $gte: ISODate(&quot;2023–04–01&quot;), $lt: ISODate(&quot;2023–05–01&quot;) }<br> }<br> },<br> <br> // Stage 2: Group by page_url and calculate average duration<br> {<br> $group: {<br> _id: &quot;$page_url&quot;,<br> average_duration: { $avg: &quot;$duration_seconds&quot; },<br> count: { $sum: 1 } // Optionally count the number of visits per page<br> }<br> },<br> <br> // Stage 3: Sort by average_duration descending<br> {<br> $sort: { average_duration: -1 }<br> },<br> <br> // Stage 4: Project fields for the final output<br> {<br> $project: {<br> _id: 0,<br> page_url: &quot;$_id&quot;,<br> average_duration: 1,<br> count: 1<br> }<br> }<br>])</pre><p>By chaining together these aggregation pipeline stages (`$match`, `$group`, `$sort`, `$project`), MongoDB efficiently processes and analyzes large datasets directly within the database. This example demonstrates how MongoDB’s aggregation framework can be leveraged to derive valuable insights, such as identifying pages with the highest average visit durations on a website.</p><p><em>Important: One crucial aspect to understand about the Aggregation Framework is that the output of each stage in the pipeline serves as the input for the subsequent stage. This chaining of stages allows for complex data transformations to be performed step by step, with each stage building on the results of the previous one.</em></p><h3>Why Use Aggregation Pipelines?</h3><p>Aggregation pipelines in MongoDB offer several advantages and are widely used for data processing and analysis tasks. Here’s why they are preferred:</p><h4>1. Data Transformation and Shaping:</h4><ul><li>Flexibility: Pipelines allow complex transformations on data without needing to retrieve and process each document individually in client applications.</li><li>Efficiency: Operations like $project enable precise control over the structure and content of output documents, optimizing data for downstream analysis or reporting.</li></ul><h4>2. Performance Optimization:</h4><ul><li>Server-Side Processing: Aggregation operations are executed on the MongoDB server, leveraging its computational power and minimizing data transfer between server and client.</li><li>Index Utilization: Pipelines can efficiently utilize indexes to speed up query execution, especially useful for large datasets.</li></ul><h4>3. Complex Data Analysis:</h4><ul><li>Aggregation Stages: The pipeline concept allows chaining multiple stages ($match, $group, $sort, etc.) to perform comprehensive data transformations and calculations in a single query.</li><li>Statistical Aggregates: MongoDB’s aggregation framework supports a wide range of statistical and arithmetic operations ($sum, $avg, $max, $min, etc.), facilitating advanced analytics directly within the database.</li></ul><h4>4. Integration with Application Logic:</h4><ul><li>Integration: Aggregation pipelines integrate seamlessly with MongoDB’s query language, making it easier to incorporate data analysis into application logic.</li><li>Real-Time Insights: Applications can retrieve aggregated results in real-time, empowering timely decision-making based on up-to-date data.</li></ul><p>MongoDB aggregation pipelines, with stages like $project for document reshaping and $group for data aggregation, provide a robust framework for processing and analyzing data directly within the database. Understanding when and how to use these stages optimally enables developers and data analysts to extract valuable insights efficiently. By leveraging MongoDB’s aggregation capabilities, organizations can enhance their data-driven strategies and derive actionable intelligence from complex datasets with ease.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=11c38e3817e4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Unlocking the Power of React Components: Mastering States and Props for Dynamic Web Development]]></title>
            <link>https://medium.com/@amarasinghaishini/unlocking-the-power-of-react-components-mastering-states-and-props-for-dynamic-web-development-dcf462d5a512?source=rss-e80173a5f399------2</link>
            <guid isPermaLink="false">https://medium.com/p/dcf462d5a512</guid>
            <category><![CDATA[react-components]]></category>
            <category><![CDATA[reactjs]]></category>
            <category><![CDATA[dynamic-web-development]]></category>
            <category><![CDATA[react-state]]></category>
            <category><![CDATA[react-props]]></category>
            <dc:creator><![CDATA[Ishini Dimani]]></dc:creator>
            <pubDate>Fri, 10 May 2024 06:00:21 GMT</pubDate>
            <atom:updated>2024-05-10T06:00:21.048Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*49uRwESwiau23ppIX_onuw.png" /></figure><p>In the realm of React.js, understanding the concepts of states and props is fundamental to building dynamic and interactive user interfaces. Let’s delve into these concepts and explore their significance in developing React applications.</p><h3>States: Managing Component Data</h3><p>States in React are like the heartbeat of a component, defining its current situation and controlling its behavior. They allow you to manage and track changes in data within a component.</p><h3>Introduction to States</h3><p>In class components, the state object comprises key-value pairs representing different types of data tracked within the application. This object serves as a crucial aspect of React class components, enabling the storage of property values specific to the component. Any alteration in the state triggers a re-render of the component, reflecting the updated data in the user interface.</p><h3>Local vs. Shared States</h3><p>React components can have either local or shared states. Local states reside within a single component and are inaccessible to other components. They are ideal for managing component-specific data, such as toggling visibility or tracking user interactions within a particular component.</p><p>On the other hand, shared states can be accessed and modified by multiple components, facilitating the synchronization of data across different parts of the application. Examples of shared states include maintaining a list of orders in an ordering application, which multiple components may need to access and update.</p><h3>Dynamics of States</h3><p>A state in React is represented by a plain JavaScript object, serving as an instance of the component class with observable properties. These properties dictate the behavior of the component and undergo changes over the component’s lifecycle. By controlling and preserving the state, developers can manage the dynamic nature of React components, responding to user interactions and updating the UI accordingly.</p><h3>Example: Managing State in a React Component</h3><p>Consider a simple application featuring a button and a counter. As users interact with the button, triggering a change in the counter value, the application updates the state to reflect the new count. This demonstrates the fundamental role of states in React, enabling dynamic and interactive components.</p><pre>class TestComponent extends React.Component {<br>  constructor(props) {<br>    super(props);<br>    this.state = {<br>      count: 0<br>    };<br>  }<br><br>  handleClick = () =&gt; {<br>    this.setState({ count: this.state.count + 1 });<br>  };<br><br>  render() {<br>    return (<br>      &lt;div&gt;<br>        &lt;button onClick={this.handleClick}&gt;Increment&lt;/button&gt;<br>        &lt;p&gt;Count: {this.state.count}&lt;/p&gt;<br>      &lt;/div&gt;<br>    );<br>  }<br>}</pre><h3>Props: Passing Data Between Components</h3><p>Props, short for properties, facilitate the flow of data between React components. They enable communication from parent to child components, allowing for the creation of reusable and modular applications.</p><h3>Introduction to Props</h3><p>Props are immutable data passed from parent components to their children. They behave akin to HTML attributes, storing values that are accessible within the component. Unlike states, props cannot be modified from within the component itself. Instead, they serve as read-only data, passed down to child components for rendering or further propagation.</p><h3>Example: Using Props in React Components</h3><p>Let’s illustrate the concept of props with a simple example. We have a parent component App rendering a child component TestComponent. The parent component passes props such as name to the child, which renders them accordingly.</p><pre>class App extends React.Component {<br>  render() {<br>    return (<br>      &lt;div&gt;<br>        &lt;TestComponent name=&quot;John&quot; /&gt;<br>      &lt;/div&gt;<br>    );<br>  }<br>}<br><br>class TestComponent extends React.Component {<br>  render() {<br>    return (<br>      &lt;div&gt;<br>        &lt;p&gt;Name: {this.props.name}&lt;/p&gt;<br>      &lt;/div&gt;<br>    );<br>  }<br>}</pre><h3>Comparing States and Props</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*a4qYTcEvROSljLZ1Ghe_Bg.png" /></figure><h3>Key Differences:</h3><ul><li>Access and Modification: States are managed internally within a component and can be modified using setState, while props are passed down from parent components and remain immutable within the child.</li><li>Data Flow: States allow components to manage their own data, whereas props facilitate the transfer of data between components, adhering to a unidirectional flow from parent to child.</li><li>Component Behavior: States influence the rendering and behavior of a component, whereas props enable component reusability and customization by receiving external data.</li></ul><p>In essence, states are integral to managing internal component data and rendering behavior, while props facilitate the exchange of data between components, fostering modularity and reusability in React applications.</p><h3>Conclusion</h3><p>In this article, we’ve explored the core concepts of states and props in React.js, elucidating their roles in building dynamic and interactive user interfaces. By grasping these fundamental concepts, developers can harness the full potential of React to create scalable and maintainable applications.</p><p>Understanding how to effectively utilize states and props empowers developers to architect robust and flexible React components, paving the way for seamless user experiences in web development.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dcf462d5a512" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Schemas and Relations: How to Structure Documents in MongoDB]]></title>
            <link>https://medium.com/@amarasinghaishini/schemas-and-relations-how-to-structure-documents-in-mongodb-3851afb26bbd?source=rss-e80173a5f399------2</link>
            <guid isPermaLink="false">https://medium.com/p/3851afb26bbd</guid>
            <category><![CDATA[mongodb]]></category>
            <category><![CDATA[schema-validation]]></category>
            <category><![CDATA[schema]]></category>
            <category><![CDATA[relations]]></category>
            <category><![CDATA[data-types-in-mongodb]]></category>
            <dc:creator><![CDATA[Ishini Dimani]]></dc:creator>
            <pubDate>Wed, 01 May 2024 13:41:41 GMT</pubDate>
            <atom:updated>2024-05-01T14:08:29.325Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bA2PGzOwZEIzweLgUdwX-w.png" /></figure><p>MongoDB, known for its flexibility and scalability, offers developers the freedom to design document structures according to their application’s needs.</p><pre>bookshop&gt; db. products. find()<br>[<br>{<br>_id: ObjectId(&#39;662f351b6a5153c90046b79a&#39;),<br>name: &#39;A pen&#39;,<br>price: 15,<br>color: &#39;red&#39;<br>},<br>{<br>_id: ObjectId(&#39;662f360d6a5153c90046b79b&#39;),<br>category: &#39;Novel&#39;,<br>title: &#39;The Lost City&#39;,<br>Author: &#39;K.M.S. Perera&#39;,<br>price: 250.4 <br>}<br>]</pre><p>While MongoDB enforces no schemas like above, understanding the importance of schemas and how to effectively structure documents is crucial for maintaining a well-organized database.</p><h3>Why do we use Schemas?</h3><p>A schema defines the structure of a document, providing a blueprint for the data it holds. Although MongoDB allows for dynamic schemas where documents within a collection can have varying structures, establishing a schema is beneficial for clarity and maintenance.</p><h3>Structuring Documents</h3><p>When structuring documents, developers often encounter scenarios where documents exhibit variations in their fields. Some documents may have additional fields, while others may lack certain details. MongoDB offers flexibility in handling such scenarios, allowing developers to choose between a fully structured approach, a partially structured approach, or a completely unstructured approach.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*zU-uTJDcnh4wmwcfjZ-Yug.png" /></figure><p>While a fully structured approach ensures that all documents within a collection adhere to the same schema, a partially structured approach allows for variations in document structure, accommodating additional or missing fields. On the other hand, a completely unstructured approach embraces MongoDB’s flexibility by allowing documents to vary significantly in structure.</p><h3>Data Types</h3><p>MongoDB supports a wide range of data types, providing developers with the flexibility to store different types of data within documents. Common data types include:</p><ul><li><strong>Text: </strong>Used for storing textual data, enclosed within quotation marks(“Anne”). MongoDB imposes a maximum limit of 16MB for text data.</li><li><strong>Boolean:</strong> Represents true or false values.</li><li><strong>Numbers:</strong> Can be stored as integers (int32), long integers (int64), or decimal numbers. MongoDB offers high precision for decimal values using NumberDecimal.</li></ul><p><em>Important: When we just enter a normal numerical value in the shell, it treated as a float value because the normal shell based on JavaScript and JavaScript doesn&#39;t differentiate between integers and floating point values.</em></p><ul><li><strong>ObjectId:</strong> Automatically generated unique identifiers for documents.</li><li><strong>ISO Date:</strong> Represents date and time information in ISO format.</li><li><strong>TimeStamp:</strong> Internally used for recording time-related information.</li><li><strong>Arrays:</strong> MongoDB allows for the storage of arrays of various data types within documents, enabling developers to store lists of values efficiently. Values can be list of strings, Booleans, numbers, embedded documents, lists or another arrays.</li><li><strong>Embedded Documents:</strong> Developers can nest documents within each other, allowing for the creation of complex data structures and facilitating the storage of hierarchical data.</li></ul><h3>Data Schemas and Data Modelling</h3><h4>How do I structure my data?</h4><p><strong>1. Identify Data Requirements:</strong> Determine the types of data your application needs or generates, including user information, product details, orders, and any other relevant information.</p><p><strong>2. Consider Application Needs:</strong> Understand where your data will be utilized within your application. Whether it’s on the welcome page, product listings, or order pages, consider the specific data required for each page.</p><p><strong>3. Define Required Collections: </strong>Based on your application’s needs, define the necessary collections to store different types of data. For example, you may have collections for users, products, orders, etc.</p><p><strong>4. Define Document Fields:</strong> Determine the fields required within each document of a collection. This includes attributes such as user details, product attributes, order information, and any other relevant data points.</p><p><strong>5. Group Related Fields:</strong> Organize fields within documents based on their relationship to each other. For instance, group user-related fields together, product-related fields together, and so on.</p><p><strong>6. Consider Query Requirements:</strong> Analyze the types of queries you’ll need to perform on your data. Determine whether you’ll be fetching lists of items, individual records, or specific data based on certain criteria.</p><p><strong>7. Optimize Data Retrieval:</strong> Depending on how often data is fetched and updated, optimize your data structure to facilitate efficient retrieval and minimize duplication. Consider factors such as query frequency and data change frequency when optimizing.</p><p><strong>8. Plan for Data Display:</strong> Think about the type of data you want to display on different pages of your application. This helps determine the format and structure of your data and informs the queries needed to retrieve the required information.</p><p><strong>9. Flexibility for Different Formats:</strong> MongoDB allows storing data in different formats to accommodate various use cases. Ensure your data structure can cover all required formats or consider splitting data into multiple collections if necessary.</p><p><strong>10. Ensure Consistency and Maintainability:</strong> Aim for a data structure that is consistent, easy to maintain, and scalable as your application evolves. Regularly review and update your data schema to align with changing requirements and business needs.</p><h3>Relations</h3><p>In MongoDB, data structures typically revolve around collections and the documents within them. While each collection serves a specific purpose, such as users, products, or orders, relationships often exist between them.</p><h4>1. One to One Relations — Embedded</h4><p>In one-to-one relations using embedding, each document in one collection contains the data related to exactly one document in another collection. This approach is akin to storing all necessary information within a single document, eliminating the need for separate collections or complex joins.</p><p>For example, consider a patient and disease scenario. Each patient may have a unique medical condition or disease.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/791/1*EIr8vKcmTB1Y7W5WiLGxVQ.png" /></figure><p>By embedding disease information within the patient document, we create a one-to-one relation.</p><p>This embedding ensures that all relevant information about the patient and their associated disease is stored together, simplifying data retrieval and management.</p><p>In MongoDB, this one-to-one relation is represented by embedding the disease details within the patient document, as illustrated in below:</p><pre>hospital&gt; db.patients.find().pretty()<br>[<br>  {<br>    _id: ObjectId(&#39;662ff867f1a11f55ab46b799&#39;),<br>    name: &#39;Helan&#39;,<br>    age: 23,<br>    diseaseSummery: <br>{ <br>_id: &#39;summary_h_1&#39;, <br>diseases: [ &#39;cold&#39;, &#39;broken hand&#39; ]<br> }<br>]</pre><p>It also allows for atomic operations, where updates to the patient’s information and disease details can be performed in a single database operation, ensuring consistency and integrity.</p><h4>2. One to One Relations — Using references</h4><p>In one-to-one relations using references, each document in one collection contains a reference to the corresponding document in another collection. This approach involves storing a unique identifier (typically the `_id` field) from one collection within the document of the other collection to establish the relationship.</p><p>For instance, in a patient and disease scenario, each patient may be associated with a specific medical condition or disease. Rather than embedding disease information within the patient document, we store a reference to the disease document using its unique identifier. This reference allows for efficient retrieval and management of related data while maintaining separate collections for patients and diseases.</p><p>In MongoDB, this one-to-one relation is represented by storing the `_id` of the disease document within the patient document, as depicted in the code below:</p><pre>hospital&gt; db.patients.find()<br>[<br>  {<br>    _id: ObjectId(&#39;6630918d39bb6165ec46b799&#39;),<br>    name: &#39;Helan&#39;,<br>    age: 23,<br>    diseaseSummery: &#39;summary_helan_1&#39;<br>  }<br>]<br>hospital&gt; db.diseaseSummaries.find()<br>[ { _id: &#39;summary_helan_1&#39;, diseases: [ &#39;cold&#39;, &#39;broken hand&#39; ] } ]<br>hospital&gt; var dsid= db.patients.findOne().diseaseSummery<br><br>hospital&gt; dsid<br>summary_helan_1<br>hospital&gt; db.diseaseSummaries.findOne({_id: dsid})<br>{ _id: &#39;summary_helan_1&#39;, diseases: [ &#39;cold&#39;, &#39;broken hand&#39; ] }</pre><p>This showcases how the patient document contains a reference field pointing to the corresponding disease document. By referencing the disease document, we establish a clear relationship between patients and their associated diseases, facilitating data organization and retrieval.</p><h4>3. One to Many Relations — Embedded</h4><p>In one-to-many relations using embedded documents, multiple documents are nested within a single document to represent the relationship. This approach involves storing the related documents directly within the parent document, eliminating the need for separate collections and references.</p><p>For instance, let’s consider a scenario where an owner can possess multiple vehicles.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/788/1*FJDx7ws_vYiQnY5eRINf_g.png" /></figure><p>In this case, instead of maintaining separate collections for owners and vehicles, we embed the details of each vehicle directly within the owner document. Each vehicle becomes a nested document within the owner’s document, forming a one-to-many relationship.</p><p>In MongoDB, this one-to-many relation is represented by embedding vehicle documents within the owner document, as illustrated in below:</p><pre>VehicleOwners&gt; db.owners.findOne()<br>{<br>  _id: ObjectId(&#39;6631cb1162090b55dd46b799&#39;),<br>  owner: &#39;Yash&#39;,<br>  age: 27,<br>  ownedVehicles: [ <br>{ v01: &#39;A car&#39; }, <br>{ v02: &#39;A bike&#39; }, <br>{ v03: &#39;A van&#39; } <br>]<br>}</pre><p>This demonstrates how each owner document contains embedded vehicle documents, representing the vehicles owned by that specific owner. By embedding the vehicle details within the owner document, we establish a direct one-to-many relationship, simplifying data management and enhancing query performance.</p><h4>4. One to Many Relations — Using references</h4><p>In one-to-many relations using references, each document in one collection contains references to multiple documents in another collection. This approach involves storing an array of unique identifiers (typically the `_id` field) from one collection within the documents of the other collection to establish the relationship.</p><p>For example, consider the relationship between cities and citizens.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/788/1*X0MctUiBYgznsz7U6mlKJA.png" /></figure><p>A city can have multiple citizens residing within it. Instead of embedding citizen information within the city document, we store references to the citizen documents associated with that city.</p><p>In MongoDB, this one-to-many relation is represented by storing an array of citizen IDs within the city document, as depicted in below:</p><pre>CityData&gt; db.cities.find()<br>[<br>  {<br>    _id: ObjectId(&#39;6631dc6e62090b55dd46b79a&#39;),<br>    name: &#39;New York&#39;,<br>    coordinates: { lat: 21, lng: 55 }<br>  }<br>]<br>CityData&gt; db.citizens.find()<br>[<br>  {<br>    _id: ObjectId(&#39;6631dd0462090b55dd46b79b&#39;),<br>    name: &#39;Max Scamander&#39;,<br>    cityId: ObjectId(&#39;6631dc6e62090b55dd46b79a&#39;)<br>  },<br>  {<br>    _id: ObjectId(&#39;6631dd0462090b55dd46b79c&#39;),<br>    name: &#39;Menui Lorence&#39;,<br>    cityId: ObjectId(&#39;6631dc6e62090b55dd46b79a&#39;)<br>  }<br>]</pre><p>This represents how the city document contains an array field containing references to multiple citizen documents. Each reference corresponds to a citizen residing within the city, enabling efficient management and retrieval of citizen data associated with a particular city.</p><h4>5. Many to Many Relations — Embedded</h4><p>In many-to-many relations using embedded documents, both collections contain arrays of embedded documents representing the relationship between the entities. This approach is suitable when there is a need to store additional information about the relationship itself.</p><p>For instance, consider the relationship between customers and products in an e-commerce platform.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/781/1*-R8IUi029OJRgKc74adL5w.png" /></figure><p>In MongoDB, this many-to-many relation using embedded documents is represented by nesting order documents within both the customer and product documents. The below code showcases how MongoDB contains this embedded relationship:</p><pre>shop&gt; db.customers.find()<br>[<br>  {<br>    _id: ObjectId(&#39;6631e45362090b55dd46b79d&#39;),<br>    name: &#39;Max&#39;,<br>    Orders: [<br>      { title: &#39;A book&#39;, price: 12.99, quantity: 2 },<br>      { title: &#39;A Computer&#39;, price: 4550.78, quantity: 5 }<br>    ]<br>  }<br>]</pre><p>This represents how each customer document contains embedded order documents representing the products they have ordered. This embedded approach simplifies data retrieval and ensures that the relationship between customers and products is efficiently managed within the MongoDB database.</p><h4>6. Many to Many Relations — Using references</h4><p>In many-to-many relations using references, multiple documents in one collection are associated with multiple documents in another collection through references. This approach involves storing arrays of references to documents from both collections within each other’s documents to establish the relationship.</p><p>For example, consider the relationship between books and authors. A book can have multiple authors, and an author can contribute to multiple books. Instead of embedding author information within each book or vice versa, we store references to the author documents within the book documents and vice versa.</p><p>In MongoDB, this many-to-many relation is represented by storing arrays of author IDs within the book documents and arrays of book IDs within the author documents, as depicted in the code below:</p><pre>BookRegistry&gt; db.books.find()<br>[<br>  {<br>    _id: ObjectId(&#39;6631eab562090b55dd46b79e&#39;),<br>    name: &#39;A Mistry&#39;,<br>    authors: [<br>      ObjectId(&#39;6631ec4e62090b55dd46b79f&#39;),<br>      ObjectId(&#39;6631ec4e62090b55dd46b7a0&#39;)<br>    ]<br>  }<br>]<br>BookRegistry&gt; db.authors.find()<br>[<br>  {<br>    _id: ObjectId(&#39;6631ec4e62090b55dd46b79f&#39;),<br>    name: &#39;Max Schwarz&#39;,<br>    age: 33,<br>    language: &#39;English&#39;,<br>    books: [ ObjectId(&#39;6631eab562090b55dd46b79e&#39;) ]<br>  },<br>  {<br>    _id: ObjectId(&#39;6631ec4e62090b55dd46b7a0&#39;),<br>    name: &#39;Anne De&#39;,<br>    age: 30,<br>    language: &#39;Spanish&#39;,<br>    books: [ ObjectId(&#39;6631eab562090b55dd46b79e&#39;) ]<br>  }<br>]</pre><p>This shows how each book document contains an array of author IDs referencing the authors associated with that book and each author document contains an array of book IDs referencing the books associated with that author. This approach enables efficient management and retrieval of data for both books and authors while maintaining their relationships.</p><h4>Embedded or using References?</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*uJtrb6zJwJIt6LNV3mNPNg.png" /></figure><h3>Schema Validation</h3><p>Schema validation in MongoDB allows for the enforcement of a strict document structure, ensuring that incoming data adheres to predefined criteria before being committed to the database. By establishing validation rules, developers can define the expected format and data types for fields within their documents. This feature becomes particularly valuable in scenarios where maintaining data consistency and integrity is paramount, especially when applications rely on specific field structures or data types.</p><p>During operations such as inserts or updates, MongoDB evaluates the incoming data against the specified schema. If the data meets the validation criteria, the operation proceeds as intended, and the data is successfully written to the database. However, if the data fails validation, MongoDB rejects the operation, preventing any modifications to the database and issuing an error message to notify the user.</p><p>Schema validation settings provide flexibility in determining which documents should undergo validation and the appropriate response to validation failures. Developers can choose between strict or moderate validation levels: strict validation checks all inserts and updates, while moderate validation focuses on new inserts and updates to previously valid documents. Additionally, validation failures can trigger either an error, halting the operation, or a warning, allowing the operation to continue while logging the validation issue for later review.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3851afb26bbd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Unlocking the Power of React Hooks: A Deep Dive into useState and useEffect for State and Side…]]></title>
            <link>https://medium.com/@amarasinghaishini/unlocking-the-power-of-react-hooks-a-deep-dive-into-usestate-and-useeffect-for-state-and-side-e77c4dbe7b8d?source=rss-e80173a5f399------2</link>
            <guid isPermaLink="false">https://medium.com/p/e77c4dbe7b8d</guid>
            <category><![CDATA[usestate-hook]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[useeffect-hook]]></category>
            <category><![CDATA[react-hook]]></category>
            <dc:creator><![CDATA[Ishini Dimani]]></dc:creator>
            <pubDate>Sat, 20 Apr 2024 20:05:54 GMT</pubDate>
            <atom:updated>2024-04-20T20:05:54.912Z</atom:updated>
            <content:encoded><![CDATA[<h3>Unlocking the Power of React Hooks: A Deep Dive into useState and useEffect for State and Side Effects Management</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aEt7in9D4zrt_SqPWOy0WA.jpeg" /></figure><h3>What are React Hooks?</h3><p>React hooks are functions that allow functional components to use state and other React features without defining a class. They allow us to use state and other React features like lifecycle methods in functional components, making it easier to manage stateful logic and side effects. With hooks, we can reuse logic across multiple components, resulting in cleaner and more maintainable code. Some commonly used React hooks include useState, useEffect, useContext, useReducer, useRef and useCallback.</p><h3>Advantages of using React Hooks</h3><p>1. <strong>Simplified Logic:</strong> Hooks allow to encapsulate and reuse logic in functional components, leading to cleaner and more modular code.</p><p>2. <strong>Easier State Management:</strong> With hooks like ‘useState’, managing component state becomes more straightforward and intuitive compared to class components.</p><p>3. <strong>Improved Code Readability:</strong> Hooks enable to separate concerns and organize code more effectively, leading to improved readability and maintainability.</p><p>4. <strong>No Class Overhead:</strong> Hooks eliminate the need for class components making it easier to understand and reason about components.</p><p>5. <strong>Encourages Functional Programming:</strong> Hooks promote functional programming concepts by encouraging the use of pure functions and avoiding the complexities of `this` binding in class components.</p><p>6. <strong>Simplified Lifecycle Management:</strong> Hooks like ‘useEffect’ allow developers to manage side effects and perform cleanup operations within functional components, streamlining the component lifecycle.</p><p>7. <strong>Compatibility with Existing Code:</strong> Hooks can be gradually introduced into existing React projects, allowing us to leverage our benefits without the need for a complete rewrite.</p><p>Overall, React hooks offer a modern and efficient way to build React applications, empowering us to write cleaner, more maintainable code with enhanced flexibility and productivity.</p><p>This article delves into two fundamental hooks: useState and useEffect, providing a clear understanding of their functionalities and how to use them effectively in our React applications.</p><h3>Understanding useState:</h3><p>The useState hook is a go-to tool for managing state within functional components. It’s like having a built-in state manager right at our fingertips. When we use useState, it returns an array with two crucial elements:</p><p>1. Current State: The current state value of the component.</p><p>2. State Setter Function: A function that allows to update the state value.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/953/1*MK_xtA_Zje5lwn8jk_2Gaw.png" /></figure><p>In this example, we start by <strong>importing the useState from react library</strong>. Then inside the MyComponent function, we <strong>declare a state variable</strong> called count with an initial value of 0 using useState(0).</p><p>Now, here’s the clever bit: The useState hook returns an array where count is the current state and <strong>setCount is the function used to update </strong>it. The increment function increases the count by 1 and calls setCount with the updated value.</p><p>With a simple click on “Increment” button, it increases the count by 1.</p><h3>Exploring useEffect:</h3><p>The useEffect hook is a powerful tool that lets us incorporate side effects into our functional components. Side effects can be anything from fetching data to handling subscriptions or interacting with browser APIs and manipulating the DOM. With useEffect, we can seamlessly integrate these essential tasks into our component’s lifecycle, ensuring smooth interactions and dynamic behavior.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*5DeJwUl1wKMcGrISJITe8g.png" /></figure><p>Here’s a simple rundown of how the useEffect hook works in this example:</p><p>1. We <strong>start by using useState</strong> to handle our data state variable, setting it to null initially.</p><p>2. The <strong>useEffect hook takes a function</strong> (the effect) and an optional dependency array as arguments.</p><p>3. Inside the effect function (fetchData), we <strong>fetch data from an API</strong> and then <strong>update the data state using setData</strong>.</p><p>4. The empty dependency array [] tells React to execute the effect only once, right after the component renders for the first time. This ensures our data fetching logic runs just once, preventing unnecessary re-renders.</p><p>By understanding and effectively using useState and useEffect, we can create more powerful and maintainable React applications with functional components. By mastering useState and useEffect, we can gain powerful tools for managing state and handling side effects in functional components. Whether it’s updating component state or fetching data from an API, these hooks enable us to build dynamic and interactive applications with ease. As you continue your journey with React.js, remember to leverage these hooks effectively to create robust and efficient code.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e77c4dbe7b8d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A quick dive into the ocean of data]]></title>
            <link>https://medium.com/@amarasinghaishini/a-simple-dive-into-the-ocean-of-data-4e96dc82dfee?source=rss-e80173a5f399------2</link>
            <guid isPermaLink="false">https://medium.com/p/4e96dc82dfee</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[data]]></category>
            <dc:creator><![CDATA[Ishini Dimani]]></dc:creator>
            <pubDate>Tue, 21 Nov 2023 19:51:10 GMT</pubDate>
            <atom:updated>2023-11-21T19:52:54.179Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*j1V9WRP2jduH3VRBQJvq0g.png" /></figure><h3>What is Data?</h3><p>Data is unorganized information that is processed to make it meaningful. Data can be factors, perceptions, observations, numbers, symbols or images.</p><h3>What are Data Sources?</h3><p>Data sources refer to the origins or locations from which data is collected or obtained for analysis, processing, and use. These sources can be various and may vary depending on the context. Here are some examples of data sources:</p><ul><li>Databases</li><li>Web Scraping</li><li>Sensor Data</li><li>Log Files</li><li>Surveys and Questionnaires</li><li>Social Media</li><li>Files and Documents</li><li>Real-time Streaming Data</li></ul><h3>What are Data Formats?</h3><p>Data formats refer to the specific structures and conventions used to represent and organize data. Different data formats are designed for various purposes, and the choice of a format depends on factors such as the nature of the data, the application’s requirements, and ease of storage and transmission. Here are some common data formats:</p><p><strong>1. Text Formats:</strong></p><p>· Plain Text (.txt): Simple text files with no formatting or structure.</p><p>· Delimited text files: Files used to store data as texts. Each value is separated by a delimiter like comma(,), tab, colon(;).</p><p><strong>2. Structured Data Formats:</strong></p><p>· JSON (JavaScript Object Notation): Lightweight data interchange format, commonly used for web APIs.</p><p>· XML (eXtensible Markup Language): Extensible language for encoding documents with a hierarchical structure.</p><p><strong>3. Document Formats:</strong></p><p>· PDF (Portable Document Format): Commonly used for documents containing text and images and independent from application software.</p><p>· DOCX (Microsoft Word): Microsoft Word document format.</p><h3>Characteristics of Data</h3><p>Data possesses key characteristics that shape its significance and utility. Accessibility determines how swiftly we can retrieve information, while accuracy ensures reliability for informed decision-making. Relevance emphasizes aligning data with specific goals, and timeliness ensures its applicability in dynamic scenarios. Granularity offers the choice between broad trends and specific details, fostering depth in analysis. Consistency provides a cohesive narrative by maintaining uniformity, and managing the sheer volume of data has given rise to big data technologies. Lastly, security acts as a protective shield, preserving the integrity and confidentiality of our digital assets. Understanding these traits empowers us to navigate the data landscape effectively and extract meaningful insights.</p><p><strong>Structured and Unstructured Data</strong></p><p>In the infinite realm of data, two prominent players shape our understanding: structured and unstructured data. Think of structured data as the orderly librarian carefully arranging books on shelves, while unstructured data resembles an diverse collection of art in a gallery, each piece unique and diverse.</p><p><strong>Structured Data:</strong></p><p>Structured data follows a predetermined structure. Databases, spreadsheets, and CSV files exemplify this orderliness. This type of data is the backbone of business operations, encapsulating financial records, inventory databases, and systematic information crucial for decision-making.</p><p><strong>Unstructured Data:</strong></p><p>On the other hand, unstructured data defies rigid structure. Text documents, multimedia files, and the ever-growing social media feeds characterize this dynamic nature. Unstructured data is the canvas for social media analytics, sentiment analysis, and the interpretation of content nuances.</p><h3>Summery</h3><p>In this simple exploration of data, it delved into its fundamental definition, diverse sources, and various formats. Unraveling the separation of structured and unstructured data, it uncovered the details that shape their roles in the digital landscape. The characteristics of data, from accessibility and accuracy to relevance and security, were exposed as crucial sides. Through this journey, it illuminated the nature of data, pointing out its significance in driving innovation and informed decision-making. As the conclusion, the article invites readers to embrace the dynamic world of data, fostering a sense of curiosity for ongoing exploration and discovery.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4e96dc82dfee" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Career paths based on Database Development]]></title>
            <link>https://medium.com/@amarasinghaishini/career-paths-based-on-database-development-3cd4fc3f5d1d?source=rss-e80173a5f399------2</link>
            <guid isPermaLink="false">https://medium.com/p/3cd4fc3f5d1d</guid>
            <dc:creator><![CDATA[Ishini Dimani]]></dc:creator>
            <pubDate>Thu, 26 Jan 2023 11:15:34 GMT</pubDate>
            <atom:updated>2023-01-26T11:15:34.258Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*4WBNQ3Fr8CnL0UJxOuVlQg.png" /></figure><h3><strong>Database Administrator</strong></h3><p>A database administrator (DBA) is the information technician responsible for directing and performing all activities related to maintaining a successful database environment. A DBA makes sure an organization’s databases and related applications operate functionally and efficiently. Any organization that stores large amounts of information and data may employ a database administrator. When considering the main duties of database administrators, we can figure out that ;</p><p>1. Managing, monitoring, and maintaining company databases.</p><p>2. Making requested changes, updates and modifications to database structure and data.</p><p>3. Ensuring database security, integrity, stability and system availability.</p><p>4. Maintaining database backup and recovery infrastructure.</p><p>The key technical skills of this job role are strong command of SQL and SQL server tools, advanced knowledge of database security, backup and recovery, and performance monitoring standards, understanding of relational and dimensional data modeling, PowerShell and Unix shell scripting skills. It’s very important to have the below mentioned skills to be a successful database administrator. Those skills are patience, meticulous attention to detail, a logical approach to work, the ability to priorities tasks, problem-solving skills, good organizational skills, communication and interpersonal skills and familiarity with computer operating systems and database technology (design, software, and structure). Database administrators need at least a bachelor’s degree in information science or computer science for most entry-level positions. Depending on the size and complexity of their company or governing body, these professionals may need a master’s degree in database administration or information technology. Strong analytical and math skills are valuable, too.</p><h3><strong>Database Designer</strong></h3><p>A database designer is in charge of designing, developing, executing and preserving a company’s data management systems. One of the most important responsibilities of a database designer is to form relationships between various elements of data and give it a logical structure. A database designer or developer works designs and implements computer databases for the collection, protection, and analysis of data. Most employers require database designers to have a combination of educational qualifications and on-the-job experience. In addition, many positions pay more to employees who have earned vendor certification. The database designer is responsible for defining the detailed database design, including tables, indexes, views, constraints, triggers, stored procedures, and other database-specific constructs needed to store, retrieve, and delete persistent objects. The database designer must have a solid working knowledge of the following:</p><p>1. Data Modeling, Database design.</p><p>2. Object-Oriented Analysis and Design techniques.</p><p>3. System Architecture, including Database and System performance tuning, as well as hardware and network workload balancing.</p><p>4. Database Administration.</p><p>Verbal and written communication, collaboration and teamwork, analytical and problem-solving skills, creativity, organization and time management, adaptability and likewise many soft skills are also needed. Though not always required, it is becoming increasingly common for employers to seek job candidates with a bachelor’s degree as well as relevant work experience. Students interested in pursuing database design may consider studying in a related field, such as computer science or software engineering, to acquire the necessary computer skills. Majoring in a related field typically includes coursework in logic, programming languages such as SQL and Python, database queries, information security and database administration.</p><h3><strong>Data Engineer</strong></h3><p>Data engineers work in a variety of settings to build systems that collect, manage, and convert raw data into usable information for data scientists and business analysts to interpret. Their goal is to make data accessible so that organizations can use it to evaluate and optimize their performance. Data engineering is the practice of designing and building systems for collecting, storing, and analyzing data at scale. It is a broad field with applications in just about every industry. Organizations have the ability to collect massive amounts of data, and they need the right people and technology to ensure it is in a highly usable state by the time it reaches data scientists and analysts. The duties and responsibilities of data engineers are ;</p><p>1. Acquire datasets that align with business needs.</p><p>2. Develop algorithms to transform data into useful, actionable information.</p><p>3. Build, test, and maintain database pipeline architectures.</p><p>4. Collaborate with management to understand company objectives.</p><p>5. Create new data validation methods and data analysis tools.</p><p>6. Ensure compliance with data governance and security policies.</p><p>Database tools, data transformation tools, data ingestion tools, data mining tools, data warehousing and ETL tools, real-time processing frameworks, data buffering tools, machine learning skills, cloud computing tools and data visualizing skills are some of the important skills that one should possess to build a successful career in big data. Not only above hard skills, but also verbal and written communication Skills, collaboration with other business units, presentation skills likewise soft skills are also important to this job role. Anyone who enters this field will need a bachelor’s degree in computer science, software or computer engineering, applied math, physics, statistics, or a related field. You’ll also need real-world experience, like internships, to even qualify for most entry-level positions.</p><h3><strong>Database Programmers</strong></h3><p>Database programmers, also known as database managers, write manuals to help coordinate, maintain, view, and update record sets stored on a computer server. They are responsible for developing and testing modern database applications with advanced programming languages. Sometimes, they also upgrade and restore other programs. Other database programmers have the responsibility of writing manuals or demonstrating the app to workers. Some of the programmers work on big tasks. They will most likely use software that will allow them to speed up the programming process and focus on the pieces unique to a specific programming mission. Perform database programming for new and existing systems, write scripts, stored procedures and functions for database system, perform quality assurance tests for ensuring data integrity and quality, resolve database problems, queries and error reports in accurate and timely manner, interact with business teams to understand project requirements, coordinate with team members to perform database programming based on project requirements, assist in planning and implementing the data integration and data migration activities, provide valid inputs in database architectural discussions, assist in identifying process improvements for database performance, reliability and stability, troubleshoot complex database issues in a timely fashion, provide programmatic guidance and support to team members when needed, provide project updates and metrics to Managers on regular basis, assist in preparing database functional and design specifications, test database systems and perform bug fixes and maintain accurate and complete database programming documentations are some of the duties and responsibilities of database programmers.</p><p>There are certain skills that many database programmers have in order to accomplish their responsibilities. By taking a look through resumes, we were able to narrow down the most common skills for a person in this position. We discovered that a lot of resumes listed communication skills, problem-solving skills and analytical skills. If you’re interested in becoming a database programmer, one of the first things to consider is how much education you need. We’ve determined that 69.0% of database programmers have a bachelor’s degree. In terms of higher education levels, we found that 14.8% of database programmers have master’s degrees. Even though most database programmers have a college degree, it’s possible to become one with only a high school degree or GED.</p><h3><strong>Database Developer</strong></h3><p>Database Developers, also called database programmers, are primarily responsible for creating and implementing computer databases. They determine the best database management system for a particular client, as well as test database programs for efficiency and performance and troubleshoot and correct problems. A Database Developer typically works for a corporate IT department in any industry. According to the Bureau of Labor Statistics, demand for Database Administrators, which includes Database Developers, is expected to increase 11 percent through 2024. This above-average growth is attributed to the increasing data needs of all types of companies. A database developer’s primary role is to design, program, develop and implement database systems. They tailor database systems precisely to the company in question and its needs. The profession includes many tasks from designing the database to maintaining data integrity. Main targets of this job role are design efficient databases that meet the needs and expectations of its users and ensure all data is intelligently store and processed.</p><p>Based on job listings and other sources we analyzed, employers want Database Developers with these core skills. If you want to work as a Database Developer, focus on the following.</p><p>1. Applying technical design and development skills to the creation of database programs.</p><p>2. Analyzing existing databases and data needs of clients to develop effective systems.</p><p>3. Using knowledge of specific programming languages and codes.</p><p>4. Following implementation processes for new databases.</p><p>5. Troubleshooting and providing solutions for any bugs in new database applications.</p><p>It’s also good, if you have skills like knowledge of new and emerging technologies, advanced SQL skills and experience in teaching and mentor new developers. Nearly all employers require database developers to have at least an undergraduate degree and a thorough and deep grasp of SQL database programming language. Some more advanced positions may require a master’s degree, and occasionally even a doctoral degree.</p><p>References;</p><p><a href="https://www.4cornerresources.com/blog/">Staffing Corner Blog Offers Expert Advice for Hiring and Recruiting</a></p><p><a href="https://bestaccreditedcolleges.org/">https://bestaccreditedcolleges.org/</a></p><ul><li><a href="https://www.sigmoid.com/">Data Solutions Company | Real-Time Data Analytics - Sigmoid</a></li><li><a href="https://www.discoverdatascience.org/">Data Science Degree Information | DiscoverDataScience.org</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3cd4fc3f5d1d" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>