<?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 Vithusika Thivakar  on Medium]]></title>
        <description><![CDATA[Stories by Vithusika Thivakar  on Medium]]></description>
        <link>https://medium.com/@vithusika?source=rss-2db51723485d------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*wfNfI6qhcuXg_ygH</url>
            <title>Stories by Vithusika Thivakar  on Medium</title>
            <link>https://medium.com/@vithusika?source=rss-2db51723485d------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 14:08:20 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@vithusika/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[Mongo DB]]></title>
            <link>https://medium.com/@vithusika/mongo-db-47336127fad9?source=rss-2db51723485d------2</link>
            <guid isPermaLink="false">https://medium.com/p/47336127fad9</guid>
            <dc:creator><![CDATA[Vithusika Thivakar ]]></dc:creator>
            <pubDate>Thu, 09 Jun 2022 02:35:03 GMT</pubDate>
            <atom:updated>2022-06-09T02:35:03.003Z</atom:updated>
            <content:encoded><![CDATA[<p>What is the Mongo DB?</p><p>MongoDB is a source-available cross-platform document-oriented database program. Classified as a NoSQL database program, MongoDB uses JSON-like documents with optional schemas. MongoDB is developed by MongoDB Inc. and licensed under the Server Side Public License</p><p>It is categorized under the NoSQL (Not only SQL) database because the storage and retrieval of data in MongoDB are not in the form of tables. The MongoDB database is developed and managed by MongoDB.</p><p>Inc under SSPL(Server Side Public License) and initially released in February 2009. It also provides official driver support for all the popular languages like C, C++, Java, Node.js, Perl, PHP, and Python. So, you can create an application using any of these languages.</p><p>MongoDB is a popular database used for developing full-stack web applications using MERN and MEAN stack.</p><h3>What is NoSQL?</h3><p>NoSQL is also known as “not only SQL”. They are non-tabular databases. They store data in a different manner than SQL databases. These kinds of databases come in various types based on their data model, such as document, key-value, wide-column, and graph. They are more flexible, scalable, distributed databases. Most of the NoSQL databases are open source.There are mainly four types of NoSQL database systems that exist. Each of them uses different types of data models.</p><p>Document databases<br>Graph databases<br>Key-value stores<br>Wide-column stores</p><h3>Advantages of NoSQL</h3><ul><li>Handle large volumes of data at high speed with a scale-out architecture.</li><li>Store unstructured, semi-structured, or structured data.</li><li>Enable easy updates to schemas and fields.</li><li>Be developer-friendly.</li><li>Take full advantage of the cloud to deliver zero downtime</li></ul><p><strong>.</strong>The workload for interactive real-time web applications is simplified.<br>.NoSQL caters to flexibility for data that is not normalized and requires flexible data models.<br><strong>.</strong>They provide great scalability for large data sets.<br><strong>.</strong>They are greatly suited for cloud applications, mobile, and big data requirements.</p><h3>Disadvantages of NoSQL</h3><ul><li>Not all NoSQL databases contemplate the atomicity of instructions and the integrity of the data. They withstand what’s know as eventual consistence.</li><li>Compatibility issues with SQL instructions. …</li><li>Lack of standarization. …</li><li>Cross-platform support. …</li><li>Poor usability</li></ul><p><strong>.</strong> NoSQL has its own querying languages. Which is in contrast to SOL.<br><strong>.</strong> As NoSQL databases are newer, there are no standards as relational databases.<br><strong>.</strong>There is no such schema as relational databases have.</p><h3>Advantages of MongoDB</h3><ul><li><strong>Schema less</strong> − MongoDB is a document database in which one collection holds different documents. Number of fields, content and size of the document can differ from one document to another.</li><li>Structure of a single object is clear.</li><li>No complex joins.</li><li>Deep query-ability. MongoDB supports dynamic queries on documents using a document-based query language that’s nearly as powerful as SQL.</li><li>Tuning.</li><li><strong>Ease of scale-out</strong> − MongoDB is easy to scale.</li><li>Conversion/mapping of application objects to database objects not needed.</li><li>Uses internal memory for storing the (windowed) working set, enabling faster access of data.</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><h3>The use Command</h3><p>MongoDB <strong>use DATABASE_NAME</strong> is used to create 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>Basic syntax of <strong>use DATABASE</strong> statement is as follows −</p><pre>use DATABASE_NAME</pre><h3>Example</h3><p>If you want to use a database with name <strong>&lt;student&gt;</strong>, then <strong>use 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>Basic syntax of <strong>drop()</strong> command is as follows −</p><pre>db.COLLECTION_NAME.drop()</pre><p><strong>MongoDB — Datatypes</strong></p><ul><li>String − This is the most commonly used datatype to store the data. …</li><li>Integer − This type is used to store a numerical value. …</li><li>Boolean − This type is used to store a boolean (true/ false) value.</li><li>Double − This type is used to store floating point values.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=47336127fad9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Database(DB)]]></title>
            <link>https://medium.com/@vithusika/database-db-ce4137fcd26f?source=rss-2db51723485d------2</link>
            <guid isPermaLink="false">https://medium.com/p/ce4137fcd26f</guid>
            <dc:creator><![CDATA[Vithusika Thivakar ]]></dc:creator>
            <pubDate>Tue, 07 Jun 2022 10:41:45 GMT</pubDate>
            <atom:updated>2022-06-07T10:41:45.787Z</atom:updated>
            <content:encoded><![CDATA[<h3>What is Data?</h3><p>In simple words, data can be facts related to any object in consideration. For example, your name, age, height, weight, etc. are some data related to you. A picture, image, file, pdf, etc. can also be considered data.</p><h3>What is Database?</h3><p>A database is a systematic collection of data. They support electronic storage and manipulation of data. Databases make data management easy.</p><p>Let us discuss a database example: An online telephone directory uses a database to store data of people, phone numbers, and other contact details. Your electricity service provider uses a database to manage billing, client-related issues, handle fault data, etc.</p><p>Let us also consider Facebook. It needs to store, manipulate, and present data related to members, their friends, member activities, messages, advertisements, and a lot more. We can provide a countless number of examples for the usage of databases.</p><h3>Types of Databases</h3><p>Here are some popular types of databases.</p><h3>Distributed databases:</h3><p>A distributed database is a type of database that has contributions from the common database and information captured by local computers. In this type of database system, the data is not in one place and is distributed at various organizations.</p><h3>Relational databases:</h3><p>This type of database defines database relationships in the form of tables. It is also called Relational DBMS, which is the most popular DBMS type in the market. Database example of the RDBMS system include MySQL, Oracle, and Microsoft SQL Server database.</p><h3>Object-oriented databases:</h3><p>This type of computers database supports the storage of all data types. The data is stored in the form of objects. The objects to be held in the database have attributes and methods that define what to do with the data. PostgreSQL is an example of an object-oriented relational DBMS.</p><h3>Centralized database:</h3><p>It is a centralized location, and users from different backgrounds can access this data. This type of computers databases store application procedures that help users access the data even from a remote location.</p><h3>Open-source databases:</h3><p>This kind of database stored information related to operations. It is mainly used in the field of marketing, employee relations, customer service, of databases.</p><h3>Cloud databases:</h3><p>A cloud database is a database which is optimized or built for such a virtualized environment. There are so many advantages of a cloud database, some of which can pay for storage capacity and bandwidth. It also offers scalability on-demand, along with high availability.</p><h3>Data warehouses:</h3><p><a href="https://www.guru99.com/data-warehouse-architecture.html">Data Warehouse</a> is to facilitate a single version of truth for a company for decision making and forecasting. A Data warehouse is an information system that contains historical and commutative data from single or multiple sources. Data Warehouse concept simplifies the reporting and analysis process of the organization.</p><h3>NoSQL databases:</h3><p>NoSQL database is used for large sets of distributed data. There are a few big data performance problems that are effectively handled by relational databases. This type of computers database is very efficient in analyzing large-size unstructured data.</p><h3>What are the components of a database?</h3><p>While the different types of databases vary in schema, data structure and data types most suited to them, they are all comprised of the same five basic components.</p><ol><li><strong>Hardware. </strong>This is the physical device that database software runs on. Database hardware includes computers, servers and hard drives.</li><li><strong>Software. </strong>Database software or application gives users control of the database. Database management system (DBMS) software is used to manage and control databases.</li><li><strong>Data. </strong>This is the raw information that the database stores. <a href="https://searchsqlserver.techtarget.com/definition/database-administrator">Database administrators</a> organize the data to make it more meaningful.</li><li><strong>Data access language. </strong>This is the programming language that controls the database. The programming language and the DBMS must work together. One of the most common database languages is SQL.</li><li><strong>Procedures. </strong>These rules determine how the database works and how it handles the data.</li></ol><h3>What is a Database Management System (DBMS)?</h3><p><strong>Database Management System (DBMS)</strong> is a collection of programs that enable its users to access databases, manipulate data, report, and represent data. It also helps to control access to the database. <a href="https://www.guru99.com/what-is-dbms.html">Database Management Systems</a> are not a new concept and, as such, had been first implemented in the 1960s.</p><p>Charles Bachman’s Integrated Data Store (IDS) is said to be the first DBMS in history. With time database, technologies evolved a lot, while usage and expected functionalities of databases increased immensely.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ce4137fcd26f" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>