<?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 doshan doshan on Medium]]></title>
        <description><![CDATA[Stories by doshan doshan on Medium]]></description>
        <link>https://medium.com/@doshanthan13?source=rss-f57e05cbb86b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*ZQ4oKKh1WfMo9wKB</url>
            <title>Stories by doshan doshan on Medium</title>
            <link>https://medium.com/@doshanthan13?source=rss-f57e05cbb86b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 11:09:35 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@doshanthan13/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[Software Design Pattern]]></title>
            <link>https://medium.com/@doshanthan13/software-design-patterns-e40f19cb6c22?source=rss-f57e05cbb86b------2</link>
            <guid isPermaLink="false">https://medium.com/p/e40f19cb6c22</guid>
            <dc:creator><![CDATA[doshan doshan]]></dc:creator>
            <pubDate>Fri, 25 Aug 2023 09:51:42 GMT</pubDate>
            <atom:updated>2023-08-25T15:32:42.597Z</atom:updated>
            <content:encoded><![CDATA[<h4>What is a Design Pattern</h4><blockquote>Software design patterns are reusable solutions to common problems in software development. As the name suggests, however, a software design pattern is not code — rather, software design patterns act as a guide or paradigm to help software engineers create products following best practices.</blockquote><blockquote>In this guide, learn the answer to the question “What is a design pattern?” and the benefits (and potential concerns) of using a software design pattern. Further, expect this guide to provide an overview of the 23 design patterns and the benefits and challenges associated with using design patterns.</blockquote><h3>What’s a Design Pattern in Software Engineering</h3><blockquote>In software engineering, a software design pattern is a general, reusable solution of how to solve a common problem when designing an application or system. Unlike a library or framework, which can be inserted and used right away, a design pattern is more of a template to approach the problem at hand.</blockquote><blockquote>Design patterns are used to support object-oriented programming (OOP), a paradigm that is based on the concepts of both objects (instances of a class; data with unique attributes) and classes (user-defined types of data).</blockquote><h3>Design Patterns in Software Development</h3><p><strong><em>There are mainly three types of the Design patterns,<br>01.Creational Design pattern<br>02.Structural Design pattern<br>03.Behavioral Design pattern</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/938/1*sM-zWbrbf6AmUbnFVHuj3g.jpeg" /><figcaption>Design Patterns</figcaption></figure><h3>1. Creational Design Patterns</h3><p>A creational design pattern deals with object creation and initialization, providing guidance about which objects are created for a given situation. These design patterns are used to increase flexibility and to reuse existing code.</p><ul><li><strong>Factory Method</strong>: Creates objects with a common interface and lets a class defer instantiation to subclasses.</li><li><strong>Abstract Factory</strong>: Creates a family of related objects.</li><li><strong>Builder</strong>: A step-by-step pattern for creating complex objects, separating construction and representation.</li><li><strong>Prototype</strong>: Supports the copying of existing objects without code becoming dependent on classes.</li><li><strong>Singleton</strong>: Restricts object creation for a class to only one instance.</li></ul><h3>2. Structural Design Patterns</h3><p>A structural design pattern deals with class and object composition, or how to assemble objects and classes into larger structures.</p><ul><li><strong>Adapter</strong>: How to change or adapt an interface to that of another existing class to allow incompatible interfaces to work together.</li><li><strong>Bridge</strong>: A method to decouple an interface from its implementation.</li><li><strong>Composite</strong>: Leverages a tree structure to support manipulation as one object.</li><li><strong>Decorator</strong>: Dynamically extends (adds or overrides) functionality.</li><li><strong>Facade</strong>: Defines a high-level interface to simplify the use of a large body of code.</li><li><strong>Flyweight</strong>: Minimize memory use by sharing data with similar objects.</li><li><strong>Proxy</strong>: How to represent an object with another object to enable access control, reduce cost and reduce complexity.</li></ul><h3>3. Behavioral Design Patterns</h3><p>A behavioral design pattern is concerned with communication between objects and how responsibilities are assigned between objects.</p><ul><li><strong>Chain of Responsibility</strong>: A method for commands to be delegated to a chain of processing objects.</li><li><strong>Command</strong>: Encapsulates a command request in an object.</li><li><strong>Interpreter</strong>: Supports the use of language elements within an application.</li><li><strong>Iterator</strong>: Supports iterative (sequential) access to collection elements.</li><li><strong>Mediator</strong>: Articulates simple communication between classes.</li><li><strong>Memento</strong>: A process to save and restore the internal/original state of an object.</li><li><strong>Observer</strong>: Defines how to notify objects of changes to other object(s).</li><li><strong>State</strong>: How to alter the behavior of an object when its stage changes.</li><li><strong>Strategy</strong>: Encapsulates an algorithm inside a class.</li><li><strong>Visitor</strong>: Defines a new operation on a class without making changes to the class.</li><li><strong>Template Method</strong>: Defines the skeleton of an operation while allowing subclasses to refine certain steps.</li></ul><h3>Why Do We Need Design Patterns</h3><p>Design patterns offer a best practice approach to support object-oriented software design, which is easier to design, implement, change, test and reuse. These design patterns provide best practices and structures.</p><h3>1. Proven Solution</h3><p>Design patterns provide a proven, reliable solution to a common problem, meaning the software developer does not have to “reinvent the wheel” when that problem occurs.</p><h3>2. Reusable</h3><p>Design patterns can be modified to solve many kinds of problems — they are not just tied to a single problem.</p><h3>3. Expressive</h3><p>Design patterns are an elegant solution.</p><h3>4. Prevent the Need for Refactoring Code</h3><p>Since the design pattern is already the optimal solution for the problem, this can avoid refactoring.</p><h3>5. Lower the Size of the Codebase</h3><p>Each pattern helps software developers change how the system works without a full redesign. Further, as the “optimal” solution, the design pattern often requires less code.</p><h3>Benefits of Design Patterns in Software Engineering</h3><p>As noted above under “Why do we need design patterns?”, the best software design patterns will leverage a common language, making it easier for developers to communicate about problems and to improve code readability and architecture in early stages of the planning. When used well, design patterns can both speed up the development process and generally reduce the chance of errors.</p><p>Design patterns are also language agnostic (for object-oriented languages), although some patterns are more useful with certain languages vs others.</p><h3>Criticism of Software Design Patterns</h3><p>Software design patterns can come under criticism for being overused, a crutch for programmers to lean back on when a more simple solution can do. Further, there is not always a straightforward solution to implementing each pattern, with the risk of creating an anti-pattern (an ineffective or counterproductive solution) if the wrong method is chosen.</p><p>Additionally, a design pattern can be used as a bridge for weaknesses or missing features in the programming language, often creating more bloat than is necessary to get the program to function as desired. In the important process of choosing the right tech stack, ensure that the language has the features needed to avoid an over-reliance on design patterns. Alternatively, the choice in tech stack can lead you to a framework that already has these design patterns implemented directly in the framework in the most ideal way possible.</p><h3>Advantage of design pattern:</h3><ol><li>They are reusable in multiple projects.</li><li>They provide the solutions that help to define the system architecture.</li><li>They capture the software engineering experiences.</li><li>They provide transparency to the design of an application.</li><li>They are well-proved and testified solutions since they have been built upon the knowledge and experience of expert software developers.</li><li>Design patterns don?t guarantee an absolute solution to a problem. They provide clarity to the system architecture and the possibility of building a better system.</li></ol><h3>7 Best Software Design Patterns</h3><h3>1. Singleton Design Pattern</h3><p>The singleton design pattern falls under the “creational” type, restricting object creation for a class to only one instance and providing global access to a global variable. For example, many web developers lock up the “sitemap” to a single version that has global scope. Further, other patterns such as factory method, builder, prototype can use singletons. Facade and state objects are also often singletons.</p><p>While you may only have or need one instance of a class, this does not necessarily mean that is the time to use a singleton pattern to lock that object up or to force it into a global state. Singletons are a controversial design pattern, with some even arguing that singletons are an antipattern to be avoided because locking up an object restricts future flexibility.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IGlw4zgoBcqBfRN0EUWhHA.gif" /><figcaption>Singleton Design Pattern</figcaption></figure><h3>2. Factory Method Design Pattern</h3><p>In the factory method, a “creation” design pattern, developers create objects with a common interface but allow a class defer instantiation to subclasses. The factory method promotes loose coupling and code reuse, a “virtual constructor” that works with any class implementing the interface and allowing greater freedom for the sub-classes to choose the objects being created. When new classes are needed, they can be added to the factory.</p><p>The factory method is not appropriate for simple scenarios, an instance where developers risk over-complicating processes in order to use a design pattern.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NGOrg86Wo3VY2TWZr5xkpA.jpeg" /><figcaption>Factory Method Design Pattern</figcaption></figure><h3>3. Facade Design Pattern</h3><p>The facade design pattern is a “structural” design pattern that helps provide one interface (class) for access to a large body of code / various objects. A facade hides complexities of various sub-systems (often organized into a class) with a simple interface. For example, an eCommerce customer only wants one point of interacting with a brand, rather than individually communicating (interfacing) with each system to support the sale such as product inventory, authentication, security, payment processing, order fulfillment, etc. In this case, the Facade has encapsulated all the “order” activities and systems to provide a single interface — the customer remains completely unaware of what’s going on behind the scenes. Facade is an important concept to support the loosely coupled microservices architecture.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/995/1*uUsaNFatWUsZKn-juUiaCA.jpeg" /><figcaption>Facade Design Pattern</figcaption></figure><h3>4. Strategy Design Pattern</h3><p>The strategy design pattern is a “behavioral” software design pattern that is sometimes known as a policy pattern. In the strategy pattern, interchangeable algorithms are encapsulated together into a “family” with one of the algorithms being selected at runtime as needed. For example, a family of algorithms may be related to “sorting” products in an eCommerce website — by size, colour, prize, etc. The strategy is implemented based upon the actions of the customer.</p><p>The strategy design pattern is incredibly powerful in personalization marketing strategies, responding to client location, inputs, or actions in order to deliver a different experience to each user.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/837/1*rMueaS_vxVRhp0w5MhzXmQ.png" /><figcaption>Strategy Design Pattern</figcaption></figure><h3>5. Observer Design Pattern</h3><p>The observer design pattern is “behavioral,” linking an object (subject) to dependents (observers) in a one-to-many pattern. When any of the observers change, the subject is notified. The observer design pattern is useful in any kind of event-driven programming such as notifying a user of a new comment on Facebook, sending an email when an item ships, etc.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/880/1*FtxkqNEG8EYN9lMaZKKKuw.png" /><figcaption>Observer Design Pattern</figcaption></figure><h3>6. Builder Design Pattern</h3><p>The builder design pattern is “creational,” separating the object construction from the representation. This design pattern allows greater control over the design process (more a step-by-step), but it also decouples the representation to support multiple representations of an object using the same base construction code (the ConcreteBuilder step).</p><p>The builder pattern executes in sequential steps as the object is being built, calling only those steps that are necessary for each iteration of the object.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/884/1*F-RFQVQITZ21KFOgFPu7pA.png" /><figcaption>Builder Design Pattern</figcaption></figure><h3>7. Adapter Design Pattern</h3><p>The adapter design pattern is a “wrapper” that converts one kind of interface into another existing kind of interface. The adapter design pattern helps classes work together when they are incompatible, allowing code to work together. Adapter patterns are useful to take mixed interfaces and make them a consistent API.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/935/1*68waN8kzrysJqH31kk8zcA.png" /><figcaption>Adapter Design Pattern</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e40f19cb6c22" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AMAZON WEB SERVICES]]></title>
            <link>https://medium.com/@doshanthan13/amazan-web-services-14759e4aca40?source=rss-f57e05cbb86b------2</link>
            <guid isPermaLink="false">https://medium.com/p/14759e4aca40</guid>
            <dc:creator><![CDATA[doshan doshan]]></dc:creator>
            <pubDate>Fri, 16 Sep 2022 17:51:10 GMT</pubDate>
            <atom:updated>2022-09-17T05:53:35.463Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Amazon Web Services</strong></p><p>AWS is a Cloud Computing platform, which helps you build your applications over the cloud. It offers various services like a combination of infrastructure and software services, along with computing power, scalability, reliability, and secure database storage. You can use AWS for quality development as it offers around 200 products and services all over the world.</p><p>The top 5 services provided by Amazon Web Services are:</p><ul><li>Amazon Elastic Cloud Compute (EC2)</li><li>Amazon Simple Storage Service (S3)</li><li>Amazon Virtual Private Cloud (VPC)</li><li>Amazon CloudFront</li><li>Amazon Relational Database Services (RDS)</li></ul><p>Advantages of AWS</p><p><strong>01.User-friendly</strong></p><p>This tops the list of the Amazon Web Services benefits. AWS is easy to use as the platform is specially designed for quick and secure access. Users can modify their data whenever they want, wherever they want. Most companies find starting with AWS as their cloud provider much easier than using other providers, namely, Azure or Google Cloud Platform. AWS provides you with all the information, documentation, and video instructions to help you learn how to use all of its services.</p><p><strong>02.Flexible</strong></p><p>Flexibility is also the reason why many companies prefer AWS. It always lets you use those operating systems, programming languages, and web application platforms that you are comfortable with. With a service like AWS EC2, you can build your virtual computing environment by setting up your preferable operating systems and applications. AWS benefits provide all the best services that your application requires to function seamlessly. It can also ease the migration process, and you can work on new solutions simultaneously.</p><p><strong>03.Secure</strong></p><p>Security is one of the best benefits of AWS cloud computing. As we know, security is the uppermost priority for any company that is data-driven. AWS provides a highly secure infrastructure to ensure the privacy of your data. Security professionals at AWS follow different layers of data surveillance such as:</p><ul><li>Data protection</li><li>Identity and access management</li><li>Infrastructure protection</li><li>Threat detection and continuous monitoring</li><li>Compliance and data privacy</li></ul><p><strong>04.Cost-effective</strong></p><p>If you follow traditional methods, then you should build your own servers for storing your data and applications, which consumes a good amount of both your time and money. So instead of building your own expensive servers, you can use AWS where you need to pay only for the tools and services that you use. AWS offers a pay-as-you-go pricing method, which means that a company will only pay for the services that it needs and has used for a period of time. It is the same as paying your electricity bill; you only pay for the units you have consumed. These AWS services are unique and cheaper than the traditional computing method.</p><p>Moreover, AWS is a no-commitment service. It does not ask for any time commitment before you start using AWS benefits, so you can start or stop using it at any time without hassles.</p><p><strong>05.Reliable</strong></p><p>Amazon offers the highest reliability for its customers. AWS serves over a million active clients in more than 200 nations all over the world. An ultimate team of tech professionals is working on data security. AWS performs its tasks accurately when it is required and offers many services that make it more reliable like the capability to automatically recover from failure. Also, services such as Amazon DynamoDB and Amazon S3 store the data in three different availability zones so that even if two of them fail to work, the users will still have their data intact. Therefore, AWS benefits are trustworthy in terms of the services and security it provides.</p><p><strong>06.Scalable and Elastic</strong></p><p>AWS is scalable because the AWS Auto Scaling service automatically increases the capacity of constrained resources as per requirements so that the application is always available. Spinning up new servers is easy in AWS. If you want to add more servers, AWS enables you to use them within minutes.</p><p>Elasticity is one of the AWS advantages. If you use fewer resources and you don’t need the rest of them, then AWS itself shrinks the resources to fit your requirement. That is, upsizing and downsizing of resources are easy here. Also, AWS always lets you know how many resources you are using at the moment.</p><p><strong>07.Highly Performant</strong></p><p>High-performance computing (HPC) is the ability to process a massive amount of data at high speed. Companies find it more crucial for productivity and to compete with other companies. AWS offers a high-performance computing service so that the companies need not worry about the speed.</p><p>AWS has become the most popular cloud platform as it always keeps innovating itself with the latest tools and technologies for better productivity. But, every coin has two sides, right? The same is with this popular cloud provider. Along with the pros, there are some cons too. After discussing the Amazon Web Services advantages, now, let’s see some disadvantages of AWS.</p><p><strong>Disadvantages of AWS</strong></p><p><strong>01.Limitations</strong></p><p>This comes first in the list of a few disadvantages of AWS Cloud Computing. In AWS, there are some limitations regarding EC2 and security. Companies that are using AWS will have default resources to use, but the problem comes when default resource limits vary from region to region. Although they can submit a request for more resources, companies find it a disadvantage of AWS.</p><p><strong>02.Lack of Experts</strong></p><p>AWS is the latest invention with a complex infrastructure. Companies using AWS as their Cloud Computing platform are looking to hire professionals to work on the cloud infrastructure. However, only a few professionals are skilled in AWS or any cloud provider. Companies are ready to invest in them but are facing difficulty in finding the right professionals to work on AWS who can lead these organizations to better performance. This can be a disadvantage of AWS in terms of time and money.</p><p><strong>03.Price Variations</strong></p><p>The price of AWS services varies based on factors such as the cost of land, fiber, electricity, and taxes from region to region. Variations also occur when you need additional tech support. Developer, Business, and Enterprise are the three available packages you can choose from, and the price varies accordingly. This will impact your monthly bill. But with services like Amazon CloudWatch, you can monitor your service consumption, and Serverless Data Lake helps you calculate the cost of the services in your region.</p><p><strong>04.General Issues</strong></p><p>Amazon is a huge family with millions of customers, so it has some temporary Cloud Computing issues. Users sometimes face downtime with servers. It may be because of the power loss or network connectivity with the cloud provider. Anyway, it can be rectified eventually.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*2LLhWdSF71Pso0dSweCLlg.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=14759e4aca40" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[KEY IN DBMS]]></title>
            <link>https://medium.com/@doshanthan13/key-in-dbms-9a7a03e56f3b?source=rss-f57e05cbb86b------2</link>
            <guid isPermaLink="false">https://medium.com/p/9a7a03e56f3b</guid>
            <dc:creator><![CDATA[doshan doshan]]></dc:creator>
            <pubDate>Fri, 02 Sep 2022 17:47:37 GMT</pubDate>
            <atom:updated>2022-09-02T17:47:37.701Z</atom:updated>
            <content:encoded><![CDATA[<h3>Why we need a Key?</h3><p>Here are some reasons for using SQL key in the DBMS system.</p><ul><li>Keys help you to identify any row of data in a table. In a real-world application, a table could contain thousands of records. Moreover, the records could be duplicated. Keys in RDBMS ensure that you can uniquely identify a table record despite these challenges.</li><li>Allows you to establish a relationship between and identify the relation between tables</li><li>Help you to enforce identity and integrity in the relationship.</li></ul><h3>Types of Keys in DBMS</h3><p>There are mainly Eight different types of Keys in DBMS and each key has it’s different functionality:</p><p>1. Primary Key</p><p>2. Foreign Key</p><p>3. Super Key</p><p>4. Candidate Key</p><p>5.Alternate Key</p><p>6.Compound Key</p><p>7. Surrogate Key</p><ul><li><strong>Primary Key — </strong>is a column or group of columns in a table that uniquely identify every row in that table.</li><li><strong>Super Key — </strong>A super key is a group of single or multiple keys which identifies rows in a table.</li><li><strong>Foreign Key — </strong>is a column that creates a relationship between two tables. The purpose of Foreign keys is to maintain data integrity and allow navigation between two different instances of an entity.</li><li><strong>Candidate Key — </strong>is a set of attributes that uniquely identify tuples in a table. Candidate Key is a super key with no repeated attributes.</li><li><strong>Alternate Key — </strong>is a column or group of columns in a table that uniquely identify every row in that table.</li><li><strong>Compound Key — </strong>has two or more attributes that allow you to uniquely recognize a specific record. It is possible that each column may not be unique by itself within the database.</li><li><strong>Surrogate Key — </strong>An artificial key which aims to uniquely identify each record is called a surrogate key. These kind of key are unique because they are created when you don’t have any natural primary key.</li></ul><h3>01. Primary Key</h3><p><strong>PRIMARY KEY</strong> in <a href="https://www.guru99.com/dbms-tutorial.html">DBMS</a> is a column or group of columns in a table that uniquely identify every row in that table. The Primary Key can’t be a duplicate meaning the same value can’t appear more than once in the table. A table cannot have more than one primary key.</p><h3>Rules for defining Primary key:</h3><ul><li>Two rows can’t have the same primary key value</li><li>It must for every row to have a primary key value.</li><li>The primary key field cannot be null.</li><li>The value in a primary key column can never be modified or updated if any foreign key refers to that primary key.</li></ul><p><strong>Example:</strong></p><p>In the following example “<strong>Roll No</strong>” is a Primary Key.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/705/1*FOv4kR2FZPG7SHkOLiAyiA.jpeg" /></figure><h3>02. Foreign key</h3><p><strong>FOREIGN KEY</strong> is a column that creates a relationship between two tables. The purpose of Foreign keys is to maintain data integrity and allow navigation between two different instances of an entity. It acts as a cross-reference between two tables as it references the primary key of another table.</p><p><strong>Example:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*gWat2ebASNo5S7vA-5eGKg.png" /></figure><p>In this table, adding the foreign key in Department_ID to the student table. we can create a relationship between the two tables.</p><h3>03. Super key</h3><p>A super key is a group of single or multiple keys which identifies rows in a table. A Super key may have additional attributes that are not needed for unique identification.</p><p><strong>Example:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/761/1*ZJP9jMpbwr0C-1W55yoHnA.png" /></figure><p>In the above-given example, Emp_ID and Emp_EmaillD name are super keys.</p><h3>04. Alternate key</h3><p><strong>ALTERNATE KEYS</strong> is a column or group of columns in a table that uniquely identify every row in that table. A table can have multiple choices for a primary key but only one can be set as the primary key. All the keys which are not primary key are called an Alternate Key.</p><p><strong>Example:</strong></p><p>In this table,Emp_SSN, Emp_ID, Emp_email are qualified to become a primary key. But since Emp_SSN is the primary key.Emp_ID, Emp_email becomes the alternative key.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/604/1*0urkUXsLySaZe3D6fVe06A.png" /></figure><h3>05. Candidate Key</h3><p><strong>CANDIDATE KEY</strong> in SQL is a set of attributes that uniquely identify tuples in a table. Candidate Key is a super key with no repeated attributes. The Primary key should be selected from the candidate keys. Every table must have at least a single candidate key. A table can have multiple candidate keys but only a single primary key.</p><p><strong>Properties of Candidate key:</strong></p><ul><li>It must contain unique values</li><li>Candidate key in SQL may have multiple attributes</li><li>Must not contain null values</li><li>It should contain minimum fields to ensure uniqueness</li><li>Uniquely identify each record in a table</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/677/1*0gDUEdRoow9Y_8Un_QP3BA.png" /></figure><p>Candidate key Example: In the given table Emp_SSN, Emp_ID, Emp_email are candidate keys which help us to uniquely identify the student record in the table.</p><h3>06. Compound key</h3><p><strong>COMPOUND KEY</strong> has two or more attributes that allow you to uniquely recognize a specific record. It is possible that each column may not be unique by itself within the database. However, when combined with the other column or columns the combination of composite keys become unique. The purpose of the compound key in database is to uniquely identify each record in the table.</p><p><strong>Example:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*yK2QdFonXATtg3ujeGdCBA.png" /></figure><p>In this example, Cust_ID and Prod_code can’t be a primary key as it does not uniquely identify a record. However, a compound key of Cust_ID and Prod_code could be used as it uniquely identified each record.</p><h3>07. Surrogate key</h3><p><strong>SURROGATE KEYS</strong> is An artificial key which aims to uniquely identify each record is called a surrogate key. This kind of partial key in dbms is unique because it is created when you don’t have any natural primary key. They do not lend any meaning to the data in the table. Surrogate key in DBMS is usually an integer. A surrogate key is a value generated right before the record is inserted into a table.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*aECFsMbe1pHgxvcxL0iOQw.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9a7a03e56f3b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[EVALUATION OF DBMS]]></title>
            <link>https://medium.com/@doshanthan13/evaluation-of-dbms-a605e30fe191?source=rss-f57e05cbb86b------2</link>
            <guid isPermaLink="false">https://medium.com/p/a605e30fe191</guid>
            <dc:creator><![CDATA[doshan doshan]]></dc:creator>
            <pubDate>Fri, 22 Jul 2022 05:20:08 GMT</pubDate>
            <atom:updated>2022-07-22T05:20:08.450Z</atom:updated>
            <content:encoded><![CDATA[<h3>Evaluating DBMS</h3><blockquote>There are various database management systems available in the market. Each type has its features and can be used for varied purposes. The large number of DBMS makes it difficult to choose the DBMS that should be implemented to solve our problem. To choose the most suitable DBMS, we need to evaluate from various systems. We perform a structured approach to evaluate the database systems.</blockquote><h3>Evaluation Methodology</h3><blockquote>This step involves two analyses; both these analyses should be performed to determine the most suited DBMS.</blockquote><p><em>These two analyses are:</em></p><ol><li><strong><em>Feature analysis: * </em></strong><em>In this phase, we determine whether the DBMS provides all the features required for the operations that are to be performed on the data and shortlist the DBMS.</em></li></ol><p><em>2. </em><strong><em>Performance Analysis:</em></strong><em> *In this phase, we analyze only those shortlisted DBMS, evaluate the systems’ efficiency, and choose one with maximum</em> efficiency.</p><h3>Feature Analysis</h3><p><em>This analysis serves two purposes:</em></p><p><em>* It directly eliminates the DBMS that is not competent to fulfil all the needs of the user.</em></p><p><em>* We can rank the remaining systems based on the features provided by them.</em></p><h3>Performance Analysis</h3><p><em>The purpose of this analysis is:</em></p><p><em>* To analyze the behaviour of the database management system in the user system.</em></p><p><em>* To gather the data on the performance of the DBMS and rank them accordingly.</em></p><h3>Analytical Modelling Technique</h3><blockquote>In this model, we use certain equations that are used to map the performance of the database management system to system parameters. This is quite an accurate method to perform performance analysis. Two models that are used under this technique are Queueing models and Cost models.</blockquote><h3>Queueing Models</h3><blockquote>The database system is provided with various resource systems and tasks are provided to the database management system. The system performance is evaluated based on the performance of the system while performing these assigned tasks.</blockquote><h3>Cost Models</h3><blockquote>This model effectively calculates the performance of physical databases. They are used to estimate the storage cost. We can determine the average response time to perform a task by the database management system.</blockquote><h3>Simulating Modelling</h3><blockquote>In simulation modelling, we construct a real-time model of the system to replicate the behaviour of the actual system. It performs the task and gathers the data, using this gathered data it evaluates the real-time performance of the system. It constitutes an application program, database system, operating system and hardware environment. This is more suitable for evaluating the performance of complex systems. But as the complexity of the system increases the evaluation of the performance of the system becomes more difficult.</blockquote><h3>Benchmarking</h3><blockquote>This technique is preferred when there is less number of databases that are to be evaluated. It requires implementing the management system in an almost similar environment so that the data acquired using this method is closest. As the environment for each database management system is created separately, this method is costly and consumes a lot of time in setting up the environment. This method is still performed because this method produces the most accurate result upon which the performance of the management system is evaluated.</blockquote><h4><strong>Difference Between Simulating Modelling &amp;Benchmark</strong></h4><p><strong><em>*Simulating Modelling</em></strong></p><p><em>1.It is useful in studying the behavior of the database.</em></p><p><em>2.These techniques are preferred when dealing with a large number of databases.</em></p><p><em>3.The scope of testing in limited</em></p><p><em>4. The cost of implementation is less.</em></p><p><em>4.The evaluation of the DBMS cannot be performed on the actual database.</em></p><p><em>5.These methods are relatively less accurate.</em></p><p><strong><em>*Benchmark</em></strong></p><p><em>1.It is more used to compare the functionality of the various system.</em></p><p><em>2.The technique is performed when dealing with limited database.</em></p><p><em>3.The technique is performed in an almost similar environment.</em></p><p><em>4.The cost of implementation is quite high.</em></p><p><em>This technique we can evaluate the DBMS on the actual database.</em></p><p><em>5.This method is more accurate.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a605e30fe191" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[File Management System & Database Management System]]></title>
            <link>https://medium.com/@doshanthan13/file-management-system-database-management-system-b336a7cfb1eb?source=rss-f57e05cbb86b------2</link>
            <guid isPermaLink="false">https://medium.com/p/b336a7cfb1eb</guid>
            <dc:creator><![CDATA[doshan doshan]]></dc:creator>
            <pubDate>Fri, 08 Jul 2022 07:35:02 GMT</pubDate>
            <atom:updated>2022-07-08T07:35:02.077Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/585/1*l3cg1CrsIkY2_biQ30Dsxw.png" /></figure><h3><strong>File Management System :</strong></h3><p><em>The file system is basically a way of arranging the files in a storage medium like a hard disk. The file system organizes the files and helps in the retrieval of files when they are required. File systems consist of different files which are grouped into directories. The directories further contain other folders and files. The file system performs basic operations like management, file naming, giving access rules.</em></p><p><strong>Example:</strong> <em>NTFS(New Technology File System), EXT(Extended File System).</em></p><p><em>File management system is a technique used by the computers to store data in a storage medium. Using this process, people do not have to follow the traditional methods of papers to manage data.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/330/1*H5kHxp5L3npJ6cNtBfcZwg.png" /></figure><h3>Advantages of File Management System</h3><p><strong>1. Cost Effective</strong></p><p><em>File management system is extremely cost effective since it is a digital filing system. Whatever the type of document that needs to be stored as a paper can be in the form of digital. Therefore, there is no cost involved in building rents, purchasing cabinets and physical papers.</em></p><p><em>And also, this type of management greatly reduces the space that the office occupies for the documents.</em></p><p><strong>2. Security</strong></p><p><em>The traditional method of storing files cannot match the level of security provided by the file management system. In fact security is one of the reason why many organizations prefer to use file management system. The documents stored in the file management system is protected using authentication methods like username and password.</em></p><p><em>Additionally, all the data is encrypted which makes sure a document is confidential.</em></p><p><strong>3. Reliability</strong></p><p><em>The data that is stored in a file management system is far more reliable than physically storing it using papers and files. Unlike traditional methods of storing data, files here is very less likely to undergo damage or destruction. Any damages from nature or handling can be completely avoided in a file management system.</em></p><p><em>All the data of the users are stored inside the servers. Therefore, users can ensure that their documents are secured from potential damages.</em></p><p><strong>4. Data Sharing</strong></p><p><em>Data sharing is one of the key features of a file management system. FMS allows very efficient way of sharing data with each and every person. The same data that is stored on files can be shared with multiple users simultaneously.</em></p><p><strong>5. Data Retrieval</strong></p><p><em>Using file management system means that it will be very easy to retrieve data. File management system follows a digital approach that provides access to required data within few minutes. Users don’t need to search copies of documents manually here. Thus, there is very less amount of time spent for data retrieval.</em></p><p><strong>6. Data Backup</strong></p><p><em>In case of a failure, file management system provides a seamless way for backing up data. For this purpose, computers on default offer functionalities. However, if needed there can be also third party application programs be used.</em></p><p><strong>7. Environment Friendly</strong></p><p><em>Due to the fact that file management system follows a digital system and there is no paper works involved, it can be said that this technique is more environment friendly.</em></p><p><em>By green practices, not only the cost of an organization is reduced, it can increase the overall image of a company. As a result, it can provide tax benefits and other advertising opportunities as well.</em></p><h3>Disadvantages of File Management System</h3><p><strong>1. Redundancy</strong></p><p><em>Redundancy is a kind of duplication that occurs if the same type of information exists in different locations. In this event, there is a possibility of memory wastage to take place resulting in higher storage costs.</em></p><p><strong>2. Inconsistency</strong></p><p><em>Due to the effect of data redundancy this often leads to data inconsistency. Which means that the same copies of data located in different places contain different values. For preventing this, there should be paper listing among different files.</em></p><p><strong>3. Accessibility</strong></p><p><em>Accessing data in file management system is not an easy process. It is not convenient as it should be. Whenever a user needs to access an information using different approaches, they must execute a special program.</em></p><p><strong>4. Integrity</strong></p><p><em>The data that is present on a file management system can get integrated. Meaning it is not correct and consistent. Most often this is caused in the presence of consistency constraints. Constraints are imposed by the programmers using programming codes. If the integrity continues, it can make the process of adding new constraints to be difficult.</em></p><p><strong>5. Atomicity</strong></p><p><em>Atomicity refers to the data that is incomplete. This often happens if the data is either completely entered or not entered at all. For an example, your system could fail in the middle of a transaction leading to data atomicity. Unlike in database management system, it is difficult to ensure atomicity in file management system.</em></p><p><strong>6. Data duplication</strong></p><p><em>Since data is stored in more than one location, there is a possibility of data duplication to take place. If file management system undergoes data duplication it will cause problems in the storage space. These duplications are difficult to correct due to the fact that they are independent to each other. Hence, it requires manual correction which can take time and effort.</em></p><p><strong>7. Data isolation</strong></p><p><em>If the data is stored in different locations, this could essentially mean that they are isolated in file management system. Under this circumstances, the formats of each file can vary significantly. As a result, extracting data from files can be difficult as it requires complex programming.</em></p><h3><strong>Database management system (DBMS):</strong></h3><p><em>A Database Management System (DBMS) is software designed to store, retrieve, define, and manage data in a database.</em></p><p>· DBMS examples : <em>MySQL,</em> <em>SQL Server, Oracle, FoxPro</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/566/1*WipHdRhx-WNEN-OkI9ZZaQ.png" /></figure><p>· <strong>Advantages of DBMS</strong></p><p><em>1. Data sharing. The integration of all the data, for an organization, withina database system has many advantages.</em></p><p><em>2. Data independence. Another advantage of a database management system is how it allows for data independence.</em></p><p><em>3. Transaction processing.</em></p><p><em>4. Provision for multiple views of data.</em></p><p><em>5. Backup and recovery facilities.</em></p><p>· <strong>Disadvantages</strong></p><p><em>1. Database systems are complex, difficult, and time-consuming to design.</em></p><p><em>2. Substantial hardware and software start-up costs.</em></p><p><em>3. Damage to database affects virtually all applications programs.</em></p><p><em>4. Extensive conversion costs in moving form a file-based system to a database system.</em></p><p><em>5. Initial training required for all programmers and users.</em></p><h3><strong>The major differences between the file management system and database management system (DBMS)</strong></h3><h3><strong>File management System</strong></h3><p><em>1.Small system.</em></p><p><em>2.Relatively cheap.</em></p><p><em>3.Few files.</em></p><p><em>4.Need an individual application program to perform any operation on data files.</em></p><p><em>5.Transaction management is difficult.</em></p><p><em>6.Programming is done using COBOL, C, PASCAL called as 3GL.</em></p><p><em>7.Simple structure.</em></p><p><em>8.No Security.</em></p><p><em>9.Simple, primitive backup or recovery.</em></p><p><em>10.Single user.</em></p><p><em>11.Duplication of data cannot be minimized.</em></p><p><em>12.Data Consistency is less.</em></p><h3><strong>Database Management system</strong></h3><p><em>1.Large system.</em></p><p><em>2.Relatively expensive.</em></p><p><em>3.Many files.</em></p><p><em>4.Using a single command any operation can be performed on data files.</em></p><p><em>5.Transaction management is easy.</em></p><p><em>6.Programming is done using SQL which is a 4GL.</em></p><p><em>7.Complex Structure.</em></p><p><em>8.Rigorous Security.</em></p><p><em>9.Complex and sophisticated backup or recovery.</em></p><p><em>10.Multiple users</em></p><p><em>11.Duplication of data can be minimized.</em></p><p><em>12.Data consistency is more because of normalization.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b336a7cfb1eb" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>