<?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 Dayanisugunaranjan on Medium]]></title>
        <description><![CDATA[Stories by Dayanisugunaranjan on Medium]]></description>
        <link>https://medium.com/@dayanisugunaranjan?source=rss-79e0bbfab17d------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*ji3SHbqo5bFN4AGM</url>
            <title>Stories by Dayanisugunaranjan on Medium</title>
            <link>https://medium.com/@dayanisugunaranjan?source=rss-79e0bbfab17d------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 14:16:44 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@dayanisugunaranjan/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[MongoDB]]></title>
            <link>https://medium.com/@dayanisugunaranjan/mongodb-43d546b8706?source=rss-79e0bbfab17d------2</link>
            <guid isPermaLink="false">https://medium.com/p/43d546b8706</guid>
            <dc:creator><![CDATA[Dayanisugunaranjan]]></dc:creator>
            <pubDate>Thu, 09 Jun 2022 17:54:31 GMT</pubDate>
            <atom:updated>2022-06-09T17:54:31.986Z</atom:updated>
            <content:encoded><![CDATA[<p>Mongo DB</p><p>MongoDB was created in 2009 as an open-source, highly scalable, robust, and free NoSQL database. It also has a<a href="https://www.mongodb.com/"> </a>commercial version. You can find MongoDB’s source code on GitHub.</p><p>MongoDB has cultivated a reputation as a versatile, flexible database and is currently used today as the backend data store of many high-profile businesses and organizations such as Forbes, Facebook, Google, IBM, Twitter, and many more.</p><p>MongoDB is a non-relational database system. There are two primary database types: SQL (relational) and NoSQL (non-relational). Relational databases store data in columns and rows. Organizations like Microsoft SQL Server Oracle and Sybase use the relational database management system (RDBMS).</p><p>On the other hand, NoSQL databases store schema-less, unstructured data in multiple collections and nodes. Non-relational databases don’t need fixed table sachems. NoSQL databases are scaled horizontally and support limited join queries.</p><p>Incidentally, NoSQL is short for “Not Only</p><h3>1. General-Purpose Database:</h3><p>MongoDB can serve diverse sets of data and multiple purposes within a single application.</p><h3>2. Flexible Schema Design:</h3><p>The document-oriented approach allows non-defined attributes to be modified on the fly. This is a key contrast between MongoDB and other relational databases.</p><h3>3. Load Balancing and Scalability:</h3><p>It is built to scale, both vertically and horizontally. Using the technique of sharding, an architect can achieve both write and read scalability. Data balancing occurs automatically and transparently to the user by the shard balancer.</p><h3>4. Aggregation Framework:</h3><p>MongoDB offers an Extract, Transform, Load (ETL) framework which eliminates the need for complex data pipelines.</p><h3>5. Native Replication:</h3><p>Data gets replicated across a replica set without a complicated setup.</p><h3>6. Security Features:</h3><p>Authentication and authorization are taken into account.</p><h3>7. JSON:</h3><p>JSON is widely used across for frontend and API communication. It only makes sense for the database to use the same protocol.</p><h3>8. MapReduce:</h3><p>MongoDB offers a great tool, MapReduce to build data pipelines.</p><h3>The Benefits of MongoDB</h3><p>MongoDB brings a host of benefits to the table. Its advantages include:</p><ul><li>NoSQL databases are cheaper and easier to maintain. NoSQL databases have features like easier data distribution, simpler data models, and automatic repair. These benefits require less administrative costs and, consequently, are less expensive.</li><li>It’s open-source and incurs fewer server costs. Open-source is free. NoSQL databases use cheaper servers, so the price of data storage and processing per gig is significantly lower.</li><li>It’s easy and highly scalable. Since NoSQL databases like MongoDB expand horizontally, you can scale by adding more machines to your resource pool.</li><li>It supports integrated caching. System memory caching boosts data output performance.</li><li>MongoDB has no schema hassles. You can place data into a NoSQL database without requiring a predefined schema, so you can change the data model and formats without disrupting applications.</li><li>It’s user-friendly. MongoDB offers plenty of useful features (Ad-hoc queries, aggregation, capped collection, file storage, indexing, load balancing, replication, server-side JavaScript execution) that make it a user-friendly database.</li></ul><h3>Why Use MongoDB?</h3><ul><li><strong>Document Oriented Storage</strong> − Data is stored in the form of JSON-style documents.</li><li>Index on any attribute</li><li>Replication and high availability</li><li>Auto-Sharding</li><li>Rich queries</li><li>Fast in-place updates</li><li>Professional support by MongoDB</li></ul><h3>Where to Use MongoDB?</h3><ul><li>Big Data</li><li>Content Management and Delivery</li><li>Mobile and Social Infrastructure</li><li>User Data Management</li><li>Data Hub</li></ul><p>Working of MongoDB</p><p>The entire database consists of collections. These collections hold multiple documents, and since MongoDB is schemaless, the documents in one collection need not be similar. All data is stored as BSON documents with the help of key-value pairs. At the backend, MongoDB converts JSON data into a binary format known as BSON. MongoDB also makes provision for nested data. This makes fetching data comparatively efficient.</p><h3>The use Command</h3><p>MongoDB <strong>uses DATABASE_NAME</strong> is used to create a database.</p><p>The command will create a new database if it doesn’t exist, otherwise, it will return the existing database.</p><h3>Syntax</h3><p>The basic syntax of <strong>using the DATABASE</strong> statement is as follows −</p><pre>use DATABASE_NAME</pre><h3>Example</h3><p>If you want to use a database with the name <strong>&lt;student&gt;</strong>, then <strong>use the DATABASE</strong> statement would be as follows −</p><pre>&gt;use student<br>switched to db student</pre><p>To check your currently selected database, use the command <strong>db</strong></p><pre>&gt;db<br>student</pre><p>If you want to check your databases list, use the command <strong>show dbs</strong>.</p><pre>&gt;show dbs<br>local     0.78125GB<br>test      0.23012GB</pre><p>Your created database (student) is not present in list. To display database, you need to insert at least one document into it.</p><pre>&gt;db.movie.insert({&quot;name&quot;:&quot;tutorials point&quot;})<br>&gt;show dbs<br>local      0.78125GB<br>student       0.23012GB<br>test       0.23012GB</pre><h3>The dropDatabase() Method</h3><p>MongoDB <strong>db.dropDatabase()</strong> command is used to drop a existing database.</p><h3>Syntax</h3><p>Basic syntax of <strong>dropDatabase()</strong> command is as follows −</p><pre>db.dropDatabase()</pre><h3>The createCollection() Method</h3><p>MongoDB <strong>db.createCollection(name, options)</strong> is used to create collection.</p><h3>Syntax</h3><p>Basic syntax of <strong>createCollection()</strong> command is as follows −</p><pre>db.createCollection(name, options)</pre><h3>The drop() Method</h3><p>MongoDB’s <strong>db.collection.drop()</strong> is used to drop a collection from the database.</p><h3>Syntax</h3><p>The basic syntax of the <strong>drop()</strong> command is as follows −</p><pre>db.COLLECTION_NAME.drop()</pre><h3>MongoDB Applications</h3><p>Internet of Things (IoT),</p><p>mobile applications,</p><p>real-time analysis,</p><p>personalization,</p><p>catalog management,</p><p>Content management, among others, readily deploys MongoDB.</p><p>MongoDB has its supporters, and below are a few organizations or businesses that use the database.</p><p>Companies like Toyota, Cisco, Verizon, Barclays, and Google among others are readily deploying MongoDB as the DBMS.</p><h3>Limitations of MongoDB</h3><ol><li>MongoDB uses high memory for data storage.</li><li>The BSON document size cannot exceed 16MB.</li><li>Naming restrictions for databases in Windows.</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=43d546b8706" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[DBMS]]></title>
            <link>https://medium.com/@dayanisugunaranjan/dbms-bd2179667d47?source=rss-79e0bbfab17d------2</link>
            <guid isPermaLink="false">https://medium.com/p/bd2179667d47</guid>
            <dc:creator><![CDATA[Dayanisugunaranjan]]></dc:creator>
            <pubDate>Thu, 09 Jun 2022 17:47:54 GMT</pubDate>
            <atom:updated>2022-06-09T17:47:54.702Z</atom:updated>
            <content:encoded><![CDATA[<h3>What is DBMS?</h3><p>Database Management System (DBMS) is a collection of interrelated data and a set of programs to access those data. The collection of data, usually referred to as the database, contains information relevant to an enterprise. The primary goal of a DBMS is to provide a way to store and retrieve database information that is both convenient and efficient.</p><h3>Why do we need a database?</h3><p>There are many great software systems and applications in companies and platforms with multi-users. Each user needs to work with the same data. For this reason, databases can be used to allow users to work with the same data and the data can remain available even after completing a program. It will also help to protect data against loss.</p><h3>The Need for a Database Management System</h3><ul><li>To manage large amounts of data: A database stores and manages a large amount of data on a daily basis. This would not be possible using any other tool, such as a spreadsheet, as it would simply not work.</li><li>Accuracy: A database is pretty accurate as it has all sorts of built-in constraints, checks, etc. This means that the information available in a database is guaranteed to be correct in most cases.</li><li>Easy to update data: In a database, it is easy to update data using various data manipulation languages (DML) available.</li><li>Databases have various methods to ensure the security of data. There are user logins required before accessing a database and various access specifiers. These allow only authorized users to access the database.</li><li>Data integrity is ensured in databases by using various constraints for data. Data integrity in databases makes sure that the data is accurate and consistent in a database.</li><li>Easy to research data: It is very easy to access and research data in a database. This is done using Data Query Languages (DQL), which allow searching of any data in the database and performing computations on it.</li></ul><p><strong>There are different DBMS, and they are categorized under:</strong></p><ul><li>Relational Database Management Systems</li><li>Hierarchical Database Systems</li><li>Network Database Systems</li><li>Object-Oriented Database Systems</li><li>NoSQL Database Systems</li></ul><h3>Relational DBMS</h3><p>All these problems with the file systems led to the creation of more modern Relation Database Management Systems (RDBMS). In these systems, data is stored by ‘relations’ in tables. These systems also provide us with a unique Structured Query Language (SQL) to create, access, modify, and delete data. This leads to many advantages such as they are self-describing, insulating programs and data from each other (following the separation of concerns principles), and they can be accessed by many client types and users simultaneously. There is a wide variety of RDBMS and although they follow the same standard, the syntax of each varies. As a standard, all relational database management systems follow what is called ACID properties.</p><p>Examples of popular relational DBMS include MySQL, SQL Server, PostgreSQL, SQLite, Db2, and MariaDB.</p><h3>Non-Relational DBMS</h3><p>Although relational DBMS has many advantages, it requires a fixed structure and can become hard to scale as relationships become more networked and complex. One way this issue is described is that relational databases have issues scaling horizontally not vertically. All these issues led to the advent of Non-relational DBMS on NoSQL. Unlike RDBMS, NoSQL is non-relational. All the data is stored in hash tables as simple key/value pairs. This means all the data can follow its own structure and be added in the same fashion regardless of its relations with other data and stands on its own. This makes non-relational databases easier to scale when working with extremely large data sets. Examples of NoSQL DBMS include cloud-based options like DynamoDB (Amazon Web Services), BigTable (Google), and CosmosDB (Azure), as well as self-hosting options like Cassandra, Scylla, Couch DB, and Mongo DB.</p><h3>Advantage of DBMS</h3><h3>1. Improved data sharing:</h3><ul><li>The DBMS helps create an environment in which end users have better access to more and better-managed data.</li><li>Such access makes it possible for end-users to respond quickly to changes in their environment.</li></ul><h3>2. Improved data security:</h3><ul><li>The more users access the data, the greater the risks of data security breaches. Corporations invest considerable amounts of time, effort, and money to ensure that corporate data are used properly.</li><li>A DBMS provides a framework for better enforcement of data privacy and security policies.</li></ul><h3>3. Better data integration:</h3><ul><li>Wider access to well-managed data promotes an integrated view of the organization’s operations and a clearer view of the big picture.</li><li>It becomes much easier to see how actions in one segment of the company affect other segments.</li></ul><h3>4. Minimized data inconsistency:</h3><ul><li>Data inconsistency exists when different versions of the same data appear in different places.</li><li>For example, data inconsistency exists when a company’s sales department stores a sales representative’s name as “Bill Brown” and the company’s personnel department stores that same person’s name as “William G. Brown,” or when the company’s regional sales office shows the price of a product as $45.95 and its national sales office shows the same product’s price as $43.95.</li><li>The probability of data inconsistency is greatly reduced in a properly designed database.</li></ul><h3>5. Improved data access:</h3><ul><li>The DBMS makes it possible to produce quick answers to ad hoc queries.</li><li>From a database perspective, a query is a specific request issued to the DBMS for data manipulation — for example, to read or update the data. Simply put, a query is a question, and an ad hoc query is a spur-of-the-moment question.</li><li>The DBMS sends back an answer (called the query result set) to the application.</li><li>For example, end-users</li></ul><h3>6. Improved decision making:</h3><ul><li>Better-managed data and improved data access make it possible to generate better-quality information, on which better decisions are based.</li><li>The quality of the information generated depends on the quality of the underlying data.</li><li>Data quality is a comprehensive approach to promoting the accuracy, validity, and timeliness of the data. While the DBMS does not guarantee data quality, it provides a framework to facilitate data quality initiatives.</li><li>Increased end-user productivity</li><li>The availability of data, combined with the tools that transform data into usable information, empowers end users to make quick, informed decisions that can make the difference between success and failure in the global economy.</li></ul><h3>Disadvantage of DBMS</h3><h3>1. Increased costs:</h3><ul><li>Database systems require sophisticated hardware and software and highly skilled personnel.</li><li>The cost of maintaining the hardware, software, and personnel required to operate and manage a database system can be substantial. Training, licensing, and regulatory compliance costs are often overlooked when database systems are implemented.</li></ul><h3>2. Management complexity:</h3><ul><li>Database systems interface with many different technologies and have a significant impact on a company’s resources and culture.</li><li>The changes introduced by the adoption of a database system must be properly managed to ensure that they help advance the company’s objectives. Given the fact that database systems hold crucial company data that are accessed from multiple sources, security issues must be assessed constantly.</li></ul><h3>3. Maintaining currency:</h3><ul><li>Therefore, you must perform frequent updates and apply the latest patches and security measures to all components.</li><li>Because database technology advances rapidly, personnel training costs tend to be significant. Vendor dependence.</li><li>Given the heavy investment in technology and personnel training, companies might be reluctant to change database vendors.</li></ul><h3>4. Frequent upgrade/replacement cycles:</h3><ul><li>DBMS vendors frequently upgrade their products by adding new functionality. Such new features often come bundled in new upgrade versions of the software.</li><li>Some of these versions require hardware upgrades. Not only do the upgrades themselves cost money, but it also costs money to train database users and administrators to properly use and manage the new features.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bd2179667d47" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>