<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>mongodb - Wikitechy</title>
	<atom:link href="https://www.wikitechy.com/interview-questions/category/mongodb/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.wikitechy.com/interview-questions/category/mongodb/</link>
	<description>Interview Questions</description>
	<lastBuildDate>Sat, 16 Apr 2022 07:41:10 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0</generator>

<image>
	<url>https://www.wikitechy.com/interview-questions/wp-content/uploads/2025/10/cropped-wikitechy-icon-32x32.png</url>
	<title>mongodb - Wikitechy</title>
	<link>https://www.wikitechy.com/interview-questions/category/mongodb/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>What is primary and secondary replica sets in MongoDB ?</title>
		<link>https://www.wikitechy.com/interview-questions/mongodb/what-is-primary-and-secondary-replica-sets-in-mongodb/</link>
					<comments>https://www.wikitechy.com/interview-questions/mongodb/what-is-primary-and-secondary-replica-sets-in-mongodb/#respond</comments>
		
		<dc:creator><![CDATA[webmaster]]></dc:creator>
		<pubDate>Sat, 16 Apr 2022 07:41:10 +0000</pubDate>
				<category><![CDATA[mongodb]]></category>
		<category><![CDATA[how to create replica set in mongodb]]></category>
		<category><![CDATA[how to create replica set in mongodb in windows]]></category>
		<category><![CDATA[mongodb 3 node replica set]]></category>
		<category><![CDATA[mongodb master slave]]></category>
		<category><![CDATA[mongodb replica set on same server]]></category>
		<category><![CDATA[mongodb replica set vs sharding]]></category>
		<category><![CDATA[mongodb single node replica set]]></category>
		<category><![CDATA[what is primary and secondary replica sets in mongodb atlas]]></category>
		<category><![CDATA[what is primary and secondary replica sets in mongodb compass]]></category>
		<category><![CDATA[what is primary and secondary replica sets in mongodb query]]></category>
		<category><![CDATA[what is replica set in mongodb]]></category>
		<guid isPermaLink="false">https://www.wikitechy.com/interview-questions/?p=4147</guid>

					<description><![CDATA[Replica Set Primary Member : In replica set Primary is the only member that receives write operations. In replica set secondary member is to log and apply the operations to their data. MongoDB applies write operations and records the operation on primary’s oplog. The primary member accepts all write operations in the following three-members replica [&#8230;]]]></description>
										<content:encoded><![CDATA[<h4 id="replica-set-primary-member">Replica Set Primary Member :</h4>
<ul>
<li>In replica set Primary is the only member that receives write operations.</li>
<li>In replica set secondary member is to log and apply the operations to their data.</li>
<li>MongoDB applies write operations and records the operation on primary’s oplog.</li>
<li>The primary member accepts all write operations in the following three-members replica set.</li>
<li>The secondary member replicates the primary’s oplog to apply their data sets.</li>
<li>In replica sets all members can accept to read captions.</li>
<li>In replica sets, read preference describes how MongoDB clients route read operations to the members.</li>
<li>An election determines the new primary, If the current primary becomes unavailable.</li>
<li>Replica setsuse elections to determine which set member will become primary.</li>
<li>The primary becomes unavailable, in the following 3-member replica set.</li>
<li>This triggers an election which selects one of the remaining secondaries as the new primary.</li>
</ul>
<p><img fetchpriority="high" decoding="async" class="alignnone size-full wp-image-4149" src="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/what-is-primary-secandary-in-replica-sets.png" alt="" width="998" height="752" srcset="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/what-is-primary-secandary-in-replica-sets.png 998w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/what-is-primary-secandary-in-replica-sets-300x225.png 300w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/what-is-primary-secandary-in-replica-sets-768x579.png 768w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/what-is-primary-secandary-in-replica-sets-240x180.png 240w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/what-is-primary-secandary-in-replica-sets-390x294.png 390w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/what-is-primary-secandary-in-replica-sets-820x618.png 820w" sizes="(max-width: 998px) 100vw, 998px" /></p>
<h4 id="replica-set-secondary-member">Replica set Secondary Member:</h4>
<ul>
<li>In replica sets secondary maintains a copy of the primary’s data set.</li>
<li>A secondary applies operations from the primary’s oplog to its own data set in an asynchronous process, to replicate data.</li>
<li>A replica set can have one or more secondaries.</li>
<li>In replica sets, the following three-member has two secondary members.</li>
<li>The secondaries replicate the primary’s oplog and apply the operations to their data sets.</li>
<li>In replica set client cannot write data, but they can read data from secondary members.</li>
<li>A secondary can become a primary.</li>
<li>The replica set holds an election to choose which of the secondaries becomes the new primary, If the current primary becomes unavailable.</li>
</ul>
<p><img decoding="async" class="alignnone size-full wp-image-4148" src="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/secondary-replica-set.png" alt="" width="1277" height="459" srcset="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/secondary-replica-set.png 1277w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/secondary-replica-set-300x108.png 300w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/secondary-replica-set-1024x368.png 1024w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/secondary-replica-set-768x276.png 768w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/secondary-replica-set-390x140.png 390w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/secondary-replica-set-820x295.png 820w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/secondary-replica-set-1180x424.png 1180w" sizes="(max-width: 1277px) 100vw, 1277px" /></p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/mongodb/what-is-primary-and-secondary-replica-sets-in-mongodb/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>What are MongoDB Charts ?</title>
		<link>https://www.wikitechy.com/interview-questions/mongodb/what-are-mongodb-charts/</link>
					<comments>https://www.wikitechy.com/interview-questions/mongodb/what-are-mongodb-charts/#respond</comments>
		
		<dc:creator><![CDATA[webmaster]]></dc:creator>
		<pubDate>Sat, 16 Apr 2022 07:29:03 +0000</pubDate>
				<category><![CDATA[mongodb]]></category>
		<category><![CDATA[install mongodb charts]]></category>
		<category><![CDATA[mongodb atlas charts]]></category>
		<category><![CDATA[mongodb charts]]></category>
		<category><![CDATA[mongodb charts aggregation]]></category>
		<category><![CDATA[mongodb charts documentation]]></category>
		<category><![CDATA[mongodb charts example]]></category>
		<category><![CDATA[mongodb charts on premise]]></category>
		<category><![CDATA[mongodb charts review]]></category>
		<category><![CDATA[mongodb charts tutorial]]></category>
		<category><![CDATA[mongodb charts vs tableau]]></category>
		<category><![CDATA[what are mongodb charts?]]></category>
		<guid isPermaLink="false">https://www.wikitechy.com/interview-questions/?p=4137</guid>

					<description><![CDATA[It is one of integrated tool used to create visual representation of your MongoDB. In a programming language such as Java or Python, it allows users to perform quick data representation from a database without writing code. Highlighting correlations between variables and making it easy to discern patterns and trends within your dataset, Data visualization [&#8230;]]]></description>
										<content:encoded><![CDATA[<ul>
<li style="text-align: justify;">It is one of integrated tool used to create visual representation of your MongoDB.</li>
<li style="text-align: justify;">In a programming language such as Java or Python, it allows users to perform quick data representation from a database without writing code.</li>
<li style="text-align: justify;">Highlighting correlations between variables and making it easy to discern patterns and trends within your dataset, Data visualization is a key component to providing a clear understanding of your data.</li>
<li style="text-align: justify;">It makes communicating your data a straightforward process by providing built-in tools to easily share and collaborate on visualizations.</li>
</ul>
<h4 id="various-types-of-charts-in-mongodb">Various types of charts in MongoDB</h4>
<h5 id="column-and-bar-charts">Column and Bar Charts :</h5>
<ul>
<li>Column and Bar chart provides high level overviews of data trends by using comparing values inside a specific category.</li>
</ul>
<p><img decoding="async" class="alignnone size-full wp-image-4138" src="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/columun-and-bar-charts.png" alt="" width="1119" height="798" srcset="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/columun-and-bar-charts.png 1119w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/columun-and-bar-charts-300x214.png 300w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/columun-and-bar-charts-1024x730.png 1024w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/columun-and-bar-charts-768x548.png 768w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/columun-and-bar-charts-390x278.png 390w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/columun-and-bar-charts-820x585.png 820w" sizes="(max-width: 1119px) 100vw, 1119px" /></p>
<h5 id="line-and-area-charts">Line and Area Charts :</h5>
<ul>
<li>Line and Area chart is connected by straight line segments and displays information as a series of data points.</li>
</ul>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-4144" src="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/line-and-area-chart.png" alt="" width="1130" height="806" srcset="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/line-and-area-chart.png 1130w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/line-and-area-chart-300x214.png 300w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/line-and-area-chart-1024x730.png 1024w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/line-and-area-chart-768x548.png 768w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/line-and-area-chart-390x278.png 390w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/line-and-area-chart-820x585.png 820w" sizes="(max-width: 1130px) 100vw, 1130px" /></p>
<h5 id="combo-charts">Combo Charts</h5>
<ul>
<li>Combo chart offer a line view and combined column.</li>
</ul>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-4139" src="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/combo-chart.png" alt="" width="1025" height="748" srcset="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/combo-chart.png 1025w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/combo-chart-300x219.png 300w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/combo-chart-768x560.png 768w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/combo-chart-390x285.png 390w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/combo-chart-820x598.png 820w" sizes="(max-width: 1025px) 100vw, 1025px" /></p>
<h5 id="grid-charts">Grid Charts</h5>
<ul>
<li>Grid chart is also known as Heatmaps represent aggregated data in a tabular format as a range of colors.</li>
</ul>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-4143" src="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/grid-chart.png" alt="" width="1090" height="837" srcset="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/grid-chart.png 1090w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/grid-chart-300x230.png 300w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/grid-chart-1024x786.png 1024w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/grid-chart-768x590.png 768w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/grid-chart-390x299.png 390w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/grid-chart-820x630.png 820w" sizes="(max-width: 1090px) 100vw, 1090px" /></p>
<h5 id="scatter-charts">Scatter Charts :</h5>
<ul>
<li>Scatter chart is a plot data with individual data points and placed along with X axis and Y axis.</li>
</ul>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-4145" src="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/scatter-chart.png" alt="" width="1076" height="745" srcset="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/scatter-chart.png 1076w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/scatter-chart-300x208.png 300w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/scatter-chart-1024x709.png 1024w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/scatter-chart-768x532.png 768w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/scatter-chart-390x270.png 390w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/scatter-chart-820x568.png 820w" sizes="(max-width: 1076px) 100vw, 1076px" /></p>
<h5 id="circular-charts">Circular charts :</h5>
<ol>
<li><strong>Donut chart:</strong></li>
</ol>
<ul>
<li style="list-style-type: none;">
<ul>
<li>Donut chart is with larger segments representing larger data values and display data in a series of segments of a circle.</li>
<li>In this chart, each segment indicates the proportion of each category in the data to the total and the entire circle represents the sum of all data values.</li>
</ul>
</li>
</ul>
<p><strong>    2.Gauge chart:</strong></p>
<ul>
<li style="list-style-type: none;">
<ul>
<li>Gauge chart is with customizable minimum and maximum values and display data as a percentage of a semicircle.</li>
<li>Optionally you may also specify a Target value, which renders as a heavy line within the gauge’s range.</li>
</ul>
</li>
</ul>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-4142" src="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/gauge-chart.png" alt="" width="1114" height="719" srcset="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/gauge-chart.png 1114w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/gauge-chart-300x194.png 300w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/gauge-chart-1024x661.png 1024w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/gauge-chart-768x496.png 768w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/gauge-chart-390x252.png 390w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/gauge-chart-820x529.png 820w" sizes="(max-width: 1114px) 100vw, 1114px" /></p>
<h5 id="text-charts">Text charts :</h5>
<ol>
<li><strong>Data Tables:</strong></li>
</ol>
<ul>
<li style="list-style-type: none;">
<ul>
<li>Data tables are similar to a spreadsheet and represent data in a tabular view.</li>
</ul>
</li>
</ul>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-4140" src="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/data-tables.png" alt="" width="1085" height="730" srcset="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/data-tables.png 1085w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/data-tables-300x202.png 300w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/data-tables-1024x689.png 1024w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/data-tables-768x517.png 768w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/data-tables-390x262.png 390w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/data-tables-820x552.png 820w" sizes="(max-width: 1085px) 100vw, 1085px" /></p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/mongodb/what-are-mongodb-charts/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>What are the storage engines used by MongoDB ?</title>
		<link>https://www.wikitechy.com/interview-questions/mongodb/what-are-the-storage-engines-used-by-mongodb/</link>
					<comments>https://www.wikitechy.com/interview-questions/mongodb/what-are-the-storage-engines-used-by-mongodb/#respond</comments>
		
		<dc:creator><![CDATA[webmaster]]></dc:creator>
		<pubDate>Sat, 16 Apr 2022 06:49:48 +0000</pubDate>
				<category><![CDATA[mongodb]]></category>
		<category><![CDATA[how to know which storage engine is used in mongodb]]></category>
		<category><![CDATA[mmapv1 storage engine]]></category>
		<category><![CDATA[mongodb engine]]></category>
		<category><![CDATA[mongodb engines]]></category>
		<category><![CDATA[mongodb storage]]></category>
		<category><![CDATA[mongodb storage engine mmapv1 vs wiredtiger]]></category>
		<category><![CDATA[mongodb versions and storage engines]]></category>
		<category><![CDATA[storage engine in mongodb]]></category>
		<category><![CDATA[Storage Engines]]></category>
		<category><![CDATA[storage engines used in mysql]]></category>
		<category><![CDATA[types of storage engine]]></category>
		<category><![CDATA[what are the storage engines used by mongodb ?]]></category>
		<category><![CDATA[what is storage engine in mongodb]]></category>
		<category><![CDATA[wiredtiger storage engine]]></category>
		<category><![CDATA[wiredtiger storage engine in mongodb]]></category>
		<category><![CDATA[wiredtiger storage engine is available with mongodb]]></category>
		<guid isPermaLink="false">https://www.wikitechy.com/interview-questions/?p=4134</guid>

					<description><![CDATA[Storage engine is responsible for managing how data is stored, both in memory and on disk. It is the component of the database. MongoDB supports multiple storage engines, as different engines perform better for specific workloads. Choosing the excellent storage engine for your use case can extensively have an impact on the overall performance of your applications. Here, there are four types [&#8230;]]]></description>
										<content:encoded><![CDATA[<ul>
<li style="text-align: justify;">Storage engine is responsible for managing how data is stored, both in memory and on disk. It is the component of the database.</li>
<li style="text-align: justify;">MongoDB supports multiple storage engines, as different engines perform better for specific workloads.</li>
<li style="text-align: justify;">Choosing the excellent storage engine for your use case can extensively have an impact on the overall performance of your applications.</li>
<li style="text-align: justify;">Here, there are four types of storage engines used by MongoDB :
<ul>
<li>MMAPv1</li>
<li>WiredTiger</li>
<li>Encrypted</li>
<li>In-memory</li>
</ul>
</li>
</ul>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-4135" src="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/types-of-storage-engines.png" alt="Types of Storage Engines" width="1422" height="710" srcset="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/types-of-storage-engines.png 1422w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/types-of-storage-engines-300x150.png 300w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/types-of-storage-engines-1024x511.png 1024w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/types-of-storage-engines-768x383.png 768w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/types-of-storage-engines-390x195.png 390w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/types-of-storage-engines-820x409.png 820w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/types-of-storage-engines-1180x589.png 1180w" sizes="(max-width: 1422px) 100vw, 1422px" /></p>
<h4 id="mmapv1">MMAPv1 :</h4>
<ul>
<li>This type of storage engine uses memory-mapped files to store its data.</li>
<li>A segment of virtual memory that has been assigned a direct byte-for-byte correlation with some portion of a file.</li>
<li>This storage engine allows a great deal of performance for heavy read applications.</li>
<li>Indexes and Data are mapped into virtual space.</li>
<li>Data access is placed into RAM.</li>
<li>It will swap out memory to disk to make space for the newly requested data if the OS runs out of RAM and an application requests for memory.</li>
<li>MongoDB’s memory was managed by operating system’s virtual memory subsystem.</li>
</ul>
<h4 id="wiredtiger">WiredTiger :</h4>
<ul>
<li>From Mongo 3.0 WiredTiger is the default storage engine.</li>
<li>This type storage engine uses document-level concurrency control for write operations. At the same time multiple clients can modify different documents of a collection.</li>
<li>It uses only intent locks at the global, database and collection levels when the storage engine detects conflicts between two operations, one will incur a write conflict causing MongoDB to transparently retry that operation.</li>
<li>MongoDB utilizes both the filesystem cache and WiredTiger internal cache. the wired tiger cache will use 50% of RAM minus 1 GB or 256 MB by default.</li>
<li>It is efficient use of CPU cores and RAM.</li>
<li>It allows more tuning storage engines than MMVPv1. 7 to 10X better write performance. 80% less storage with compression.</li>
<li>In WiredTiger internal cache collection level data is uncompressed and uses a different representation from the on-disk format.</li>
</ul>
<h4 id="encrypted">Encrypted :</h4>
<ul>
<li>It is available in MongoDB enterprise only.</li>
<li>During encryption master keys and database keys are used.</li>
<li>Master key encrypts the database keys, data is encrypted with the database keys.</li>
<li>Application-Level Encryption provides encryption on a per-field or per-document basis within the application layer.</li>
</ul>
<h4 id="in-memory">In-memory :</h4>
<ul>
<li>Available in the enterprise editions starting from version 3.2.6.</li>
<li>It Handles ultra-high throughput with high availability and low latency.</li>
<li>Low latency on less in-memory infrastructure and more predictable.</li>
<li>Supports high level infrastructure based on zonal sharding.</li>
<li>Indexing support and MongodB rich query capability.</li>
</ul>
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/mongodb/what-are-the-storage-engines-used-by-mongodb/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to Back up and restore MongoDB Database ?</title>
		<link>https://www.wikitechy.com/interview-questions/mongodb/how-to-back-up-and-restore-mongodb-database/</link>
					<comments>https://www.wikitechy.com/interview-questions/mongodb/how-to-back-up-and-restore-mongodb-database/#respond</comments>
		
		<dc:creator><![CDATA[webmaster]]></dc:creator>
		<pubDate>Sat, 16 Apr 2022 06:16:59 +0000</pubDate>
				<category><![CDATA[mongodb]]></category>
		<category><![CDATA[Back Up and Restore with MongoDB Tools]]></category>
		<category><![CDATA[How To Back Up And Restore MongoDB]]></category>
		<category><![CDATA[how to backup and restore database]]></category>
		<category><![CDATA[How to Backup and Restore MongoDB Database]]></category>
		<category><![CDATA[how to backup mongodb database]]></category>
		<category><![CDATA[how to backup mongodb database on windows]]></category>
		<category><![CDATA[how to create mongodb database backup]]></category>
		<category><![CDATA[how to recover mongodb database]]></category>
		<category><![CDATA[how to restore mongodb dump in windows]]></category>
		<category><![CDATA[how to take all database backup in mongodb]]></category>
		<category><![CDATA[how to take backup from mongodb]]></category>
		<category><![CDATA[MongoDB - Backup and Restoration]]></category>
		<category><![CDATA[MongoDB - Create Backup]]></category>
		<category><![CDATA[MongoDB Backup and Restore]]></category>
		<category><![CDATA[mongodb backup and restore command]]></category>
		<category><![CDATA[mongodb backup command]]></category>
		<category><![CDATA[MongoDB Database Backup And Restore]]></category>
		<category><![CDATA[mongodb dump command in linux]]></category>
		<category><![CDATA[recover mongodb database]]></category>
		<category><![CDATA[Restore a Single Database or Collection]]></category>
		<guid isPermaLink="false">https://www.wikitechy.com/interview-questions/?p=4123</guid>

					<description><![CDATA[The mongo shell does not include functions for importing, exporting, restore or backup. MongoDB has created methods for accomplishing this, so that no scripting work or complex GUIs are needed. Several utility scripts are used to get data in or out of the database in bulk. These utility scripts are used to back up and restore [&#8230;]]]></description>
										<content:encoded><![CDATA[<ul>
<li>The mongo shell does not include functions for importing, exporting, restore or backup.</li>
<li>MongoDB has created methods for accomplishing this, so that no scripting work or complex GUIs are needed.</li>
<li>Several utility scripts are used to get data in or out of the database in bulk.</li>
<li>These utility scripts are used to back up and restore data in MongoDB:</li>
</ul>
<h4 id="mongoimport">Mongoimport :</h4>
<ul>
<li>In MongoDB, it provides a special tool that is used to import data.</li>
</ul>
<p><strong>Syntax :</strong><br />
<code>mongoimport-jsonarray-db database_name-collection collection_name-file file_location</code></p>
<h4 id="mongoexport">Mongoexport :</h4>
<ul>
<li>In MongoDB it allows you to export its data into other file formats like JSON or CSV.</li>
</ul>
<p><code>mongoexport-db database_name-collection collection_name-outpath_or_name_of_the_file</code></p>
<h4 id="mongodump">Mongodump :</h4>
<ul>
<li>In MongoDB it is used creating a binary export of the contents and export data from either <strong>mongod</strong> or <strong>mongos</strong></li>
</ul>
<h4 id="mongorestore">Mongorestore :</h4>
<ul>
<li>This program loads data from either a binary database dump created by mongodump or the standard input into a mongod or mongos instance.</li>
</ul>
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/mongodb/how-to-back-up-and-restore-mongodb-database/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>What are the elements of the Sharded Cluster ?</title>
		<link>https://www.wikitechy.com/interview-questions/mongodb/what-are-the-elements-of-the-sharded-cluster/</link>
					<comments>https://www.wikitechy.com/interview-questions/mongodb/what-are-the-elements-of-the-sharded-cluster/#respond</comments>
		
		<dc:creator><![CDATA[webmaster]]></dc:creator>
		<pubDate>Sat, 16 Apr 2022 06:00:37 +0000</pubDate>
				<category><![CDATA[mongodb]]></category>
		<category><![CDATA[Deploy Sharded Cluster using Hashed Sharding]]></category>
		<category><![CDATA[How To Use Sharding in MongoDB]]></category>
		<category><![CDATA[mongodb backup sharded cluster]]></category>
		<category><![CDATA[mongodb connect to sharded cluster]]></category>
		<category><![CDATA[mongodb sharded cluster]]></category>
		<category><![CDATA[mongodb sharded cluster architecture]]></category>
		<category><![CDATA[mongodb sharded cluster kubernetes]]></category>
		<category><![CDATA[mongodb sharded cluster setup]]></category>
		<category><![CDATA[MongoDB Sharding]]></category>
		<category><![CDATA[mongodb sharding example]]></category>
		<category><![CDATA[mongodb sharding vs partitioning]]></category>
		<category><![CDATA[mongodump sharded cluster]]></category>
		<category><![CDATA[mongorestore sharded cluster]]></category>
		<category><![CDATA[sharded cluster backup]]></category>
		<category><![CDATA[Sharded Cluster Components]]></category>
		<category><![CDATA[sharded cluster deploy]]></category>
		<category><![CDATA[sharded cluster meaning]]></category>
		<category><![CDATA[sharded cluster mongodb]]></category>
		<category><![CDATA[sharded cluster mongodb backup]]></category>
		<category><![CDATA[sharded cluster mongodb tutorial]]></category>
		<category><![CDATA[sharded cluster replica set]]></category>
		<category><![CDATA[sharded redis cluster]]></category>
		<category><![CDATA[sharded replicated cluster]]></category>
		<category><![CDATA[Sharding data collections with MongoDB]]></category>
		<category><![CDATA[types of sharding in mongodb]]></category>
		<guid isPermaLink="false">https://www.wikitechy.com/interview-questions/?p=4125</guid>

					<description><![CDATA[Sharding is used to create a cluster of MongoDB instances consisting of at least three servers. There are three types of elements in Sharded Cluster. Shards Query Router Config server Shards : It is a single MongoDB instance that holds a subset of the sharded data. It can be deployed as replica sets to provide [&#8230;]]]></description>
										<content:encoded><![CDATA[<ul>
<li>Sharding is used to create a cluster of MongoDB instances consisting of at least three servers.</li>
<li>There are three types of elements in Sharded Cluster.</li>
</ul>
<ol>
<li style="list-style-type: none;">
<ol>
<li>Shards</li>
<li>Query Router</li>
<li>Config server</li>
</ol>
</li>
</ol>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-4126 size-full" src="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/elelments-of-sharded-cluster.png" alt="Elements of sharded cluster" width="1218" height="857" srcset="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/elelments-of-sharded-cluster.png 1218w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/elelments-of-sharded-cluster-300x211.png 300w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/elelments-of-sharded-cluster-1024x720.png 1024w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/elelments-of-sharded-cluster-768x540.png 768w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/elelments-of-sharded-cluster-390x274.png 390w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/elelments-of-sharded-cluster-820x577.png 820w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/elelments-of-sharded-cluster-1180x830.png 1180w" sizes="(max-width: 1218px) 100vw, 1218px" /></p>
<h4 id="shards">Shards :</h4>
<ul>
<li>It is a single MongoDB instance that holds a subset of the sharded data.</li>
<li>It can be deployed as replica sets to provide redundancy and increase availability.</li>
<li>The combination of multiple shards creates a complete data set.</li>
</ul>
<h4 id="query-router">Query router :</h4>
<ul>
<li>Query router acts as a Mongos providing a stable interface between the application and the sharded cluster.</li>
<li>In this MongoDB instance is responsible for routing the client requests to the correct shard.</li>
</ul>
<h4 id="config-server">Config Server :</h4>
<ul>
<li>Config Server becomes to store the metadata (Data about the data) and the configuration settings for the whole cluster.</li>
</ul>
<p> </p>
<p> </p>
<p> </p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/mongodb/what-are-the-elements-of-the-sharded-cluster/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Pros and Cons of Mongodb ?</title>
		<link>https://www.wikitechy.com/interview-questions/mongodb/pros-and-cons-of-mongodb/</link>
					<comments>https://www.wikitechy.com/interview-questions/mongodb/pros-and-cons-of-mongodb/#respond</comments>
		
		<dc:creator><![CDATA[webmaster]]></dc:creator>
		<pubDate>Sat, 16 Apr 2022 05:29:32 +0000</pubDate>
				<category><![CDATA[mongodb]]></category>
		<category><![CDATA[advantages and disadvantages of mongodb]]></category>
		<category><![CDATA[Advantages and Disadvantages of MongoDB NoSQL Database]]></category>
		<category><![CDATA[advantages and disadvantages of nosql]]></category>
		<category><![CDATA[Advantages of MongoDB]]></category>
		<category><![CDATA[disadvantage of mongodb]]></category>
		<category><![CDATA[disadvantages of mongodb over rdbms]]></category>
		<category><![CDATA[disadvantages of mongodb over sql]]></category>
		<category><![CDATA[disadvantages of using mongodb over mysql]]></category>
		<category><![CDATA[drawbacks of mongodb mcq]]></category>
		<category><![CDATA[limitations of mongodb]]></category>
		<category><![CDATA[mongodb advantages]]></category>
		<category><![CDATA[MongoDB NoSQL Database]]></category>
		<category><![CDATA[Pros and cons of MongoDB?]]></category>
		<category><![CDATA[The Pros and Cons of MongoDB]]></category>
		<category><![CDATA[Understanding the Pros and Cons of MongoDB]]></category>
		<category><![CDATA[What are the disadvantages of MongoDB?]]></category>
		<guid isPermaLink="false">https://www.wikitechy.com/interview-questions/?p=4118</guid>

					<description><![CDATA[Advantages of MongoDB : Developer UX : It is created in such a way that ensures that the developers have an excellent experience while creating apps. Programming languages like JavaScript , Java , Go , C, C# , Python , PHP , Swift, Scala, Rust, and Ruby on Rails were MongoDB used. In Enterprise, IT [&#8230;]]]></description>
										<content:encoded><![CDATA[<h3 id="advantages-of-mongodb" style="text-align: justify;"><strong>Advantages of MongoDB :</strong></h3>
<p style="text-align: justify;"><img loading="lazy" decoding="async" class="alignnone size-full wp-image-4119" src="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/advantages-of-mongodb.png" alt="Advantages of mongodb" width="1134" height="781" srcset="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/advantages-of-mongodb.png 1134w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/advantages-of-mongodb-300x207.png 300w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/advantages-of-mongodb-1024x705.png 1024w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/advantages-of-mongodb-768x529.png 768w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/advantages-of-mongodb-390x269.png 390w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/advantages-of-mongodb-820x565.png 820w" sizes="(max-width: 1134px) 100vw, 1134px" /></p>
<h4 id="developer-ux" style="text-align: justify;">Developer UX :</h4>
<ul style="text-align: justify;">
<li>It is created in such a way that ensures that the developers have an excellent experience while creating apps.</li>
<li>Programming languages like <a href="https://www.wikitechy.com/tutorials/javascript/javascript-tutorial">JavaScript</a> , <a href="https://www.wikitechy.com/tutorials/java/">Java</a> , <a href="https://www.wikitechy.com/tutorials/golang/">Go</a> , C, <a href="https://www.wikitechy.com/tutorials/c++/">C#</a> , <a href="https://www.wikitechy.com/tutorials/python/">Python</a> , <a href="https://www.wikitechy.com/php/">PHP</a> , Swift, Scala, Rust, and Ruby on Rails were <a href="https://www.wikitechy.com/tutorial/mongodb/">MongoDB</a> used.</li>
<li>In Enterprise, IT new features are being added for supporting operations of MongoDB as an increasing number of businesses are opting for this database.</li>
<li>For MongoDB customers, excellent tech support is also available.</li>
<li>Assigning clusters straight away and you can start coding with just a couple of clicks in the web UI.</li>
</ul>
<h4 id="scalability-transactionality" style="text-align: justify;">Scalability & Transactionality :</h4>
<ul style="text-align: justify;">
<li>In Scalability, you can develop apps that are capable of handling traffic spikes smoothly. It is one of the biggest advantages of MongoDB.</li>
<li>Massive volumes of the read and write operations are supported, Due to the many innovations by MongoDB.</li>
<li>Information clusters can be stored in one place, though the information itself is stored on numerous computer clusters, Due to the manner of Sharding in MongoDB.</li>
<li>This is in stark contrast to the relational database architecture which scales up in order to create computers they are more powerful and speeder, therefore limited.</li>
<li>In MongoDB objects can be embedded within one another during data modeling.</li>
</ul>
<h4 id="platform-ecosystem-maturity" style="text-align: justify;">Platform & Ecosystem maturity :</h4>
<ul style="text-align: justify;">
<li>MongoDB was launched in 2007, and till now thousands of apps have been used for various purposes.</li>
<li>Ergo is one of the best platforms that has been updated to ensure that emerging demands can be fulfilled.</li>
<li>There is a huge, vibrant community of MongoDB developers around the world in the open-source arena, consulting firms, academia, system integrators and so on.</li>
</ul>
<h4 id="disadvantages-of-mongodb" style="text-align: justify;"><strong>Disadvantages of MongoDB :</strong></h4>
<p style="text-align: justify;"><img loading="lazy" decoding="async" class="alignnone size-full wp-image-4121" src="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/disadvantages-of-mongodb.png" alt="" width="974" height="764" srcset="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/disadvantages-of-mongodb.png 974w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/disadvantages-of-mongodb-300x235.png 300w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/disadvantages-of-mongodb-768x602.png 768w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/disadvantages-of-mongodb-390x306.png 390w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/disadvantages-of-mongodb-820x643.png 820w" sizes="(max-width: 974px) 100vw, 974px" /></p>
<h4 id="joins-not-supported" style="text-align: justify;">Joins not supported :</h4>
<ul style="text-align: justify;">
<li>In MongoDB joins like relational database doesn’t support.</li>
<li>It is manually, can use joins functionality by adding by coding.</li>
<li>It may affect performance and slow execution.</li>
</ul>
<h4 id="high-memory-usage" style="text-align: justify;">High memory usage :</h4>
<ul style="text-align: justify;">
<li>In MongoDB stores key names for each value pair.</li>
<li>There is data redundancy, due to no functionality of joins.</li>
<li>This results in increasing unnecessary usage of memory.</li>
</ul>
<h4 id="limited-data-size" style="text-align: justify;">Limited Data Size :</h4>
<ul style="text-align: justify;">
<li>Document size should not have more than 16MB.</li>
</ul>
<h4 id="limited-nesting" style="text-align: justify;">Limited Nesting:</h4>
<ul style="text-align: justify;">
<li>The nesting documents cannot perform for more than 100 levels.</li>
</ul>
<p style="text-align: justify;">
<p style="text-align: justify;">
<p style="text-align: justify;"><strong> </strong></p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/mongodb/pros-and-cons-of-mongodb/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How does Scale-Out occur in MongoDB ?</title>
		<link>https://www.wikitechy.com/interview-questions/mongodb/how-does-scale-out-occur-in-mongodb/</link>
					<comments>https://www.wikitechy.com/interview-questions/mongodb/how-does-scale-out-occur-in-mongodb/#respond</comments>
		
		<dc:creator><![CDATA[webmaster]]></dc:creator>
		<pubDate>Fri, 15 Apr 2022 12:35:17 +0000</pubDate>
				<category><![CDATA[mongodb]]></category>
		<category><![CDATA[database scaling techniques]]></category>
		<category><![CDATA[horizontal scaling vs vertical scaling in mongodb]]></category>
		<category><![CDATA[how does mongodb scale horizontally]]></category>
		<category><![CDATA[How scalable is MongoDB ?]]></category>
		<category><![CDATA[how to scale database horizontally]]></category>
		<category><![CDATA[How To Scale MongoDB]]></category>
		<category><![CDATA[Intro to Massive Scaling with MongoDB]]></category>
		<category><![CDATA[mongodb scalability vs mysql]]></category>
		<category><![CDATA[What Is Database Scaling ?]]></category>
		<guid isPermaLink="false">https://www.wikitechy.com/interview-questions/?p=4115</guid>

					<description><![CDATA[In MongoDB the document-oriented data model makes it easier to split data across multiple servers. Loading and Balancing data across a cluster is done by MongoDB. Then it is automatically redistributing the documents. It will be providing an interface between client applications and the sharded cluster, so the mongos act as a query router. Config [&#8230;]]]></description>
										<content:encoded><![CDATA[<ul>
<li style="text-align: justify;">In <a href="https://www.wikitechy.com/tutorial/mongodb/">MongoDB</a> the document-oriented data model makes it easier to split data across multiple servers.</li>
<li style="text-align: justify;">Loading and Balancing data across a cluster is done by MongoDB.</li>
<li style="text-align: justify;">Then it is automatically redistributing the documents.</li>
<li style="text-align: justify;">It will be providing an interface between client applications and the sharded cluster, so the mongos act as a query router.</li>
<li style="text-align: justify;">Config servers store metadata and configuration settings for the cluster.</li>
<li style="text-align: justify;">To manage distributed locks MongoDB uses the config server.</li>
<li style="text-align: justify;">In MongoDB each sharded cluster must have its own config servers.</li>
</ul>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-4116 size-full" src="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/scale-out-occur-in-mongodb.png" alt="" width="1341" height="713" srcset="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/scale-out-occur-in-mongodb.png 1341w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/scale-out-occur-in-mongodb-300x160.png 300w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/scale-out-occur-in-mongodb-1024x544.png 1024w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/scale-out-occur-in-mongodb-768x408.png 768w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/scale-out-occur-in-mongodb-390x207.png 390w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/scale-out-occur-in-mongodb-820x436.png 820w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/scale-out-occur-in-mongodb-1180x627.png 1180w" sizes="(max-width: 1341px) 100vw, 1341px" /></p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/mongodb/how-does-scale-out-occur-in-mongodb/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>What is Vertical Scaling &#038; Horizontal Scaling ?</title>
		<link>https://www.wikitechy.com/interview-questions/mongodb/what-is-vertical-scaling-horizontal-scaling/</link>
					<comments>https://www.wikitechy.com/interview-questions/mongodb/what-is-vertical-scaling-horizontal-scaling/#respond</comments>
		
		<dc:creator><![CDATA[webmaster]]></dc:creator>
		<pubDate>Fri, 15 Apr 2022 11:09:37 +0000</pubDate>
				<category><![CDATA[mongodb]]></category>
		<category><![CDATA[Difference between scaling horizontally and vertically]]></category>
		<category><![CDATA[horizontal and vertical scaling]]></category>
		<category><![CDATA[Horizontal and Vertical Scaling In Databases]]></category>
		<category><![CDATA[horizontal scalability]]></category>
		<category><![CDATA[horizontal scaling]]></category>
		<category><![CDATA[horizontal vs vertical]]></category>
		<category><![CDATA[Horizontal Vs. Vertical Scaling]]></category>
		<category><![CDATA[horizontally scalable]]></category>
		<category><![CDATA[scale horizontally]]></category>
		<category><![CDATA[Scaling Horizontally vs. Scaling Vertically]]></category>
		<category><![CDATA[vertical database]]></category>
		<category><![CDATA[vertical scaling]]></category>
		<category><![CDATA[Vertical vs. Horizontal Scaling]]></category>
		<category><![CDATA[What is Vertical Scaling & Horizontal Scaling?]]></category>
		<guid isPermaLink="false">https://www.wikitechy.com/interview-questions/?p=4108</guid>

					<description><![CDATA[Scaling is used to alters size of a system. In this process expand the system to meet the expected needs or we either compress. The scaling operation is by adding a new system in the existing one, or both or it can be achieved by adding resources to meet the smaller expectation in the current [&#8230;]]]></description>
										<content:encoded><![CDATA[<ul>
<li>Scaling is used to alters size of a system.</li>
<li>In this process expand the system to meet the expected needs or we either compress.</li>
<li>The scaling operation is by adding a new system in the existing one, or both or it can be achieved by adding resources to meet the smaller expectation in the current system.</li>
<li>In this operation, there are two types scaling:</li>
</ul>
<ol>
<li style="list-style-type: none;">
<ol>
<li>Vertical Scaling</li>
<li>Horizontal Scaling</li>
</ol>
</li>
</ol>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-4109" src="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/vertical-scaling-and-horizontal-scaling.png" alt="" width="1178" height="602" srcset="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/vertical-scaling-and-horizontal-scaling.png 1178w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/vertical-scaling-and-horizontal-scaling-300x153.png 300w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/vertical-scaling-and-horizontal-scaling-1024x523.png 1024w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/vertical-scaling-and-horizontal-scaling-768x392.png 768w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/vertical-scaling-and-horizontal-scaling-390x199.png 390w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/vertical-scaling-and-horizontal-scaling-820x419.png 820w" sizes="(max-width: 1178px) 100vw, 1178px" /></p>
<h3 id="vertical-scaling">Vertical Scaling</h3>
<ul>
<li>In this existing system where the new resources are added to meet the expectation.</li>
<li>Resources that comprise the existing system and consider as a rack of servers.</li>
<li>It is based on the idea of adding more power (CPU, RAM) to existing systems, basically adding more resources.</li>
<li>It becomes cheaper than Horizontal scaling but it is not easy to process.</li>
<li>The size of the existing system become expands vertically.</li>
<li>It may involve downtime and harder to upgrade.</li>
</ul>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-4110" src="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/vertical-scaling.gif" alt="" width="1280" height="720" /></p>
<h3 id="horizontal-scaling">Horizontal Scaling</h3>
<ul>
<li>In this existing system where the new server racks are added to meet the higher expectation.</li>
<li>Resources that comprise the existing system and consider as a rack of servers</li>
<li>It is based on the idea of adding more machines into our pool of resources.</li>
<li>It is costlier than Vertical Scaling and difficult.</li>
<li>To upgrade it is easy.</li>
</ul>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-4111 size-full" src="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/horizontal-scaling.gif" alt="" width="607" height="450" /></p>
<p> </p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/mongodb/what-is-vertical-scaling-horizontal-scaling/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>JSON Vs BSON</title>
		<link>https://www.wikitechy.com/interview-questions/mongodb/json-vs-bson/</link>
					<comments>https://www.wikitechy.com/interview-questions/mongodb/json-vs-bson/#respond</comments>
		
		<dc:creator><![CDATA[webmaster]]></dc:creator>
		<pubDate>Fri, 15 Apr 2022 11:01:15 +0000</pubDate>
				<category><![CDATA[mongodb]]></category>
		<category><![CDATA[bson example]]></category>
		<category><![CDATA[bson format]]></category>
		<category><![CDATA[bson vs json example]]></category>
		<category><![CDATA[difference between json and bson]]></category>
		<category><![CDATA[introduction to json and bson in mongodb]]></category>
		<category><![CDATA[json and bson]]></category>
		<category><![CDATA[json to bson]]></category>
		<category><![CDATA[json vs bson]]></category>
		<category><![CDATA[mongodb bson]]></category>
		<category><![CDATA[what is the difference between bson and json]]></category>
		<guid isPermaLink="false">https://www.wikitechy.com/interview-questions/?p=4105</guid>

					<description><![CDATA[                        BSON                          JSON   It is binary file format.   It is standard file format.     BSON is faster than JSON.   JSON is comparatively less than BSON.   BSON having more space is consumed.   JSON comparatively less space.     BSON is used to store data.   JSON is [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><img loading="lazy" decoding="async" class="aligncenter wp-image-4106" src="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/json-vs-bson.webp" alt="" width="454" height="195" srcset="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/json-vs-bson.webp 454w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/json-vs-bson-300x129.webp 300w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/json-vs-bson-390x168.webp 390w" sizes="(max-width: 454px) 100vw, 454px" /></p>
<table width="682">
<tbody>
<tr>
<td width="341"><strong> </strong></p>
<p><strong>                      BSON</strong></td>
<td width="341"><strong> </strong></p>
<p><strong>                       JSON</strong></td>
</tr>
<tr>
<td width="341"> </p>
<p>It is binary file format.</td>
<td width="341"> </p>
<p>It is standard file format.</p>
<p> </td>
</tr>
<tr>
<td width="341"> </p>
<p>BSON is faster than JSON.</td>
<td width="341"> </p>
<p>JSON is comparatively less than BSON.</td>
</tr>
<tr>
<td width="341"> </p>
<p>BSON having more space is consumed.</td>
<td width="341"> </p>
<p>JSON comparatively less space.</p>
<p> </td>
</tr>
<tr>
<td width="341"> </p>
<p>BSON is used to store data.</td>
<td width="341"> </p>
<p>JSON is used transmission the data.</p>
<p> </td>
</tr>
<tr>
<td width="341"> </p>
<p>BSON is lightweight, fast and traversable.</td>
<td width="341"> </p>
<p>In JSON key value pair only used for transmission of data.</td>
</tr>
<tr>
<td width="341">BSON which consist of a list of ordered elements containing a field name, type and a value. Field name types are typically string.</td>
<td width="341">JSON is language independent format used for asynchronous server browser communication.</td>
</tr>
<tr>
<td width="341">BSON on the other hand just indexes on the relevant content and skips all the content which does not have to be in use.</td>
<td width="341"> </p>
<p>JSON does not skip rather skims through all the content.</td>
</tr>
<tr>
<td width="341"> </p>
<p>Encoding and Decoding technique becomes faster.</td>
<td width="341"> </p>
<p>There is no such technique.</td>
</tr>
<tr>
<td width="341">In BSON another hand needs to be parsed as they are easy for machines to parse and generate.</td>
<td width="341">In JSON need not be parsed as they are in a human-readable format already.</td>
</tr>
</tbody>
</table>
<p> </p>
<p> </p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/mongodb/json-vs-bson/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>What is the use of Capped Collection in MongoDB ?</title>
		<link>https://www.wikitechy.com/interview-questions/mongodb/what-is-the-use-of-capped-collection-in-mongodb/</link>
					<comments>https://www.wikitechy.com/interview-questions/mongodb/what-is-the-use-of-capped-collection-in-mongodb/#respond</comments>
		
		<dc:creator><![CDATA[webmaster]]></dc:creator>
		<pubDate>Wed, 13 Apr 2022 09:51:53 +0000</pubDate>
				<category><![CDATA[mongodb]]></category>
		<category><![CDATA[capped collections]]></category>
		<category><![CDATA[Capped Collections in MongoDB]]></category>
		<category><![CDATA[functions of mongodb capped collections]]></category>
		<category><![CDATA[how to remove a document from a capped collection in mongodb]]></category>
		<category><![CDATA[how to remove capped collection in mongodb]]></category>
		<category><![CDATA[mongodb capped collection]]></category>
		<category><![CDATA[mongodb capped collections]]></category>
		<category><![CDATA[what are capped collections in mongodb]]></category>
		<category><![CDATA[what is capped collection]]></category>
		<category><![CDATA[what is the use of capped collection in mongodb]]></category>
		<category><![CDATA[what is the use of capped collections in mongodb]]></category>
		<guid isPermaLink="false">https://www.wikitechy.com/interview-questions/?p=4100</guid>

					<description><![CDATA[Capped collections are fixed-size collections means when we create the collection, we must fix the maximum size of the collection (in bytes) and it can store the maximum number of documents. After creation, it overwrites the existing documents, when we try to add more than documents to their capacity. They are useful when we insert [&#8230;]]]></description>
										<content:encoded><![CDATA[<ul>
<li>Capped collections are fixed-size collections means when we create the collection, we must fix the maximum size of the collection (in bytes) and it can store the maximum number of documents.</li>
<li>After creation, it overwrites the existing documents, when we try to add more than documents to their capacity.</li>
<li>They are useful when we insert and retrieve documents based on insertion order, it supports high-throughput operations.</li>
<li>It is similar to circular buffers, which means once the fixed space is allocated for the capped collection.</li>
<li>Capped collection can also have _id field and by default, each _id field has an index.</li>
<li>In this collection, there are two parameters:</li>
</ul>
<ol>
<li style="list-style-type: none;">
<ol style="text-align: justify;">
<li>Name- It represents the name of the collection and it is of string type.</li>
<li>Options<strong>–</strong>It is an optional parameter.</li>
</ol>
</li>
</ol>
<p><strong>Syntax:</strong></p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-4103" src="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/capped-collection-in-mongodb.png" alt="" width="1426" height="168" srcset="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/capped-collection-in-mongodb.png 1426w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/capped-collection-in-mongodb-300x35.png 300w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/capped-collection-in-mongodb-1024x121.png 1024w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/capped-collection-in-mongodb-768x90.png 768w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/capped-collection-in-mongodb-390x46.png 390w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/capped-collection-in-mongodb-820x97.png 820w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/capped-collection-in-mongodb-1180x139.png 1180w" sizes="(max-width: 1426px) 100vw, 1426px" /></p>
<p>This syntax specifies the following fields:</p>
<ol>
<li><strong>Collection Name:</strong> It is used to create as capped collection.</li>
<li><strong>Capped:</strong> It is a Boolean field. If it is true, we create a capped collection.</li>
<li><strong>auto indexed:</strong> It is a Boolean flag and use for auto-indexing. Indexes will be created automatically, if the flag is true.</li>
<li><strong>Size:</strong> The maximum number of documents in bytes is represented by size. In context of capped collection, this is required field.</li>
<li><strong>Max:</strong> The highest number of documents that permit the collection was represented by max.</li>
</ol>
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/mongodb/what-is-the-use-of-capped-collection-in-mongodb/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>MongoDB Vs CouchDB</title>
		<link>https://www.wikitechy.com/interview-questions/mongodb/mongodb-vs-couchdb/</link>
					<comments>https://www.wikitechy.com/interview-questions/mongodb/mongodb-vs-couchdb/#respond</comments>
		
		<dc:creator><![CDATA[webmaster]]></dc:creator>
		<pubDate>Mon, 04 Apr 2022 12:43:51 +0000</pubDate>
				<category><![CDATA[mongodb]]></category>
		<category><![CDATA[cassandra vs mongodb]]></category>
		<category><![CDATA[comparing mongodb and couchdb]]></category>
		<category><![CDATA[couchbase vs couchdb]]></category>
		<category><![CDATA[couchdb and mongodb]]></category>
		<category><![CDATA[couchdb vs couchbase vs mongodb]]></category>
		<category><![CDATA[couchdb vs mongodb]]></category>
		<category><![CDATA[couchdb vs mongodb for dynamic queries]]></category>
		<category><![CDATA[difference between couchdb and mongodb]]></category>
		<category><![CDATA[elasticsearch vs mongodb vs couchdb]]></category>
		<category><![CDATA[mongodb vs couchdb performance]]></category>
		<category><![CDATA[mongodb vs couchdb vs cassandra]]></category>
		<category><![CDATA[mongodb vs couchdb vs cassandra vs hadoop]]></category>
		<category><![CDATA[mongodb vs couchdb vs cassandra vs hbase]]></category>
		<category><![CDATA[mongodb vs couchdb vs dynamodb]]></category>
		<category><![CDATA[mongodb vs couchdb vs redis]]></category>
		<guid isPermaLink="false">https://www.wikitechy.com/interview-questions/?p=4096</guid>

					<description><![CDATA[                MongoDB                  CouchDB It Provides faster read speeds. If read speed is critical to your database, MongoDB is faster than CouchDB. No mobile support provided. It can be run on Apple IOS and Android devices, offering supports for mobile service. Offers master-slave Replication. Offers master-master and master- slave Replication. If you have a rapidly [&#8230;]]]></description>
										<content:encoded><![CDATA[<table width="652">
<tbody>
<tr>
<td width="326">               <strong> MongoDB</strong></td>
<td width="326"><strong>                 CouchDB</strong></td>
</tr>
<tr>
<td width="326">It Provides faster read speeds.</td>
<td width="326">If read speed is critical to your database, MongoDB is faster than CouchDB.</td>
</tr>
<tr>
<td width="326">No mobile support provided.</td>
<td width="326">It can be run on Apple IOS and Android devices, offering supports for mobile service.</td>
</tr>
<tr>
<td width="326">Offers master-slave Replication.</td>
<td width="326">Offers master-master and master- slave Replication.</td>
</tr>
<tr>
<td width="326">If you have a rapidly growing database, MongoDB is the better choice.</td>
<td width="326">While your database grows with CouchDB, MongoDB is better suited rapid growth.</td>
</tr>
<tr>
<td width="326">For users with SQL knowledge, MongoDB is easier to learn as it is closer in syntax.</td>
<td width="326">It can be more difficult for people with traditional SQL experience to learn. Queries use map reduce functions.</td>
</tr>
<tr>
<td width="326">If you need maximum throughput, or have a rapidly growing database</td>
<td width="326">If you need a database that runs on mobile, needs master-master and master replication or single server durability then CouchDB is great choice.</td>
</tr>
<tr>
<td width="326">Data model is document- oriented (BSON).</td>
<td width="326"> Data model is document-oriented (JSON).</td>
</tr>
<tr>
<td width="326">Query method becomes Map/Reduce (JavaScript) creating collections + object-based</td>
<td width="326">Query method Map/Reduce (JavaScript + others) creating views + Range queries.</td>
</tr>
</tbody>
</table>
<p> </p>
<p> </p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/mongodb/mongodb-vs-couchdb/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>MongoDB Vs MySQL</title>
		<link>https://www.wikitechy.com/interview-questions/mongodb/mongodb-vs-mysql/</link>
					<comments>https://www.wikitechy.com/interview-questions/mongodb/mongodb-vs-mysql/#respond</comments>
		
		<dc:creator><![CDATA[webmaster]]></dc:creator>
		<pubDate>Mon, 04 Apr 2022 12:37:39 +0000</pubDate>
				<category><![CDATA[mongodb]]></category>
		<category><![CDATA[difference between mongodb and mysql and nosql]]></category>
		<category><![CDATA[difference between mongodb and mysql in tabular form]]></category>
		<category><![CDATA[difference between mysql and mongodb]]></category>
		<category><![CDATA[difference between mysql and postgresql and mongodb]]></category>
		<category><![CDATA[difference between mysql oracle and mongodb]]></category>
		<category><![CDATA[difference between sql and mysql and mongodb]]></category>
		<category><![CDATA[how to use mongodb and mysql]]></category>
		<category><![CDATA[main difference between mongodb and mysql]]></category>
		<category><![CDATA[mongodb vs mysql]]></category>
		<category><![CDATA[mongodb vs mysql performance]]></category>
		<category><![CDATA[mongodb vs mysql pros and cons]]></category>
		<category><![CDATA[mongodb vs mysql use cases]]></category>
		<category><![CDATA[mysql vs mongodb]]></category>
		<category><![CDATA[why mongodb is better than mysql]]></category>
		<guid isPermaLink="false">https://www.wikitechy.com/interview-questions/?p=4094</guid>

					<description><![CDATA[                               MongoDB                                  MySQL It uses MongoDB Query Language. It uses Structured Query language. No restrictions on schema design. It is pre-defined schema design. It does not support JOIN statements. It supports the JOIN statements.   It uses role-based access control. It uses privilege security-based model Performance becomes faster than MySQL. Performance becomes slower than [&#8230;]]]></description>
										<content:encoded><![CDATA[<table width="677">
<tbody>
<tr>
<td width="339"><strong> </strong><strong>                              MongoDB</strong></td>
<td width="339"><strong> </strong><strong> </strong><strong>                               MySQL</strong></td>
</tr>
<tr>
<td width="339">It uses MongoDB Query Language.</td>
<td width="339">It uses Structured Query language.</td>
</tr>
<tr>
<td width="339">No restrictions on schema design.</td>
<td width="339">It is pre-defined schema design.</td>
</tr>
<tr>
<td width="339">It does not support JOIN statements.</td>
<td width="339">It supports the JOIN statements.</p>
<p> </td>
</tr>
<tr>
<td width="339">It uses role-based access control.</td>
<td width="339">It uses privilege security-based model</td>
</tr>
<tr>
<td width="339">Performance becomes faster than MySQL.</td>
<td width="339">Performance becomes slower than MongoDB.</td>
</tr>
<tr>
<td width="339">Key features are Auto sharding, Comprehensive secondary indexes, In-memory speed, Native location, Embedded data models support.</td>
<td width="339">Key features are Triggers & SSL support, provides text searching and indexing, Query caching, Integrated replication support, Different storage engines.</td>
</tr>
<tr>
<td width="339">It supports built-in Replication, Sharding and auto elections.</td>
<td width="339">It supports Master-Slave Replication.</td>
</tr>
<tr>
<td width="339">Best fit for unconstructed data, works better for large datasets, High write loads, Data is location-based.</td>
<td width="339">Best fit for data with tables and rows, works better for small datasets, Frequent updates, Modify large volume of records.</td>
</tr>
<tr>
<td width="339">The community of MySQL is much better than MongoDB.</td>
<td width="339">It has a good active community.</td>
</tr>
</tbody>
</table>
<p> </p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/mongodb/mongodb-vs-mysql/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>What are the Features of MongoDB ?</title>
		<link>https://www.wikitechy.com/interview-questions/mongodb/what-are-the-features-of-mongodb/</link>
					<comments>https://www.wikitechy.com/interview-questions/mongodb/what-are-the-features-of-mongodb/#respond</comments>
		
		<dc:creator><![CDATA[webmaster]]></dc:creator>
		<pubDate>Mon, 04 Apr 2022 12:18:49 +0000</pubDate>
				<category><![CDATA[mongodb]]></category>
		<category><![CDATA[features of mongodb]]></category>
		<category><![CDATA[features of mongodb in big data]]></category>
		<category><![CDATA[introduction to mongodb key features]]></category>
		<category><![CDATA[mongodb features]]></category>
		<category><![CDATA[mongodb features and advantages]]></category>
		<category><![CDATA[mongodb main features]]></category>
		<category><![CDATA[new features of mongodb]]></category>
		<category><![CDATA[scaling features of mongodb]]></category>
		<category><![CDATA[what are the features of mongodb]]></category>
		<category><![CDATA[what are the key features of mongodb]]></category>
		<category><![CDATA[what is mongodb ?]]></category>
		<category><![CDATA[what is mongodb and its advantages]]></category>
		<guid isPermaLink="false">https://www.wikitechy.com/interview-questions/?p=4091</guid>

					<description><![CDATA[It has so many great features while being a NoSQL database. It is unique and attractive. They are making MongoDB widely usable and popular. Features of MongoDB: Schema-less Database Replication Document-Oriented Sharding GridFS Aggregation Ad-hoc Queries High performance Indexing]]></description>
										<content:encoded><![CDATA[<ul>
<li style="text-align: justify;">It has so many great features while being a NoSQL database.</li>
<li style="text-align: justify;">It is unique and attractive.</li>
<li style="text-align: justify;">They are making MongoDB widely usable and popular.</li>
<li style="text-align: justify;">Features of MongoDB:
<ul>
<li style="text-align: justify;">Schema-less Database</li>
<li style="text-align: justify;">Replication</li>
<li style="text-align: justify;">Document-Oriented</li>
<li style="text-align: justify;">Sharding</li>
<li style="text-align: justify;">GridFS</li>
<li style="text-align: justify;">Aggregation</li>
<li style="text-align: justify;">Ad-hoc Queries</li>
<li style="text-align: justify;">High performance</li>
<li style="text-align: justify;">Indexing</li>
</ul>
</li>
</ul>
<p><img loading="lazy" decoding="async" class="size-full wp-image-4092 aligncenter" src="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/features-mongodb.png" alt="" width="1137" height="773" srcset="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/features-mongodb.png 1137w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/features-mongodb-300x204.png 300w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/features-mongodb-1024x696.png 1024w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/features-mongodb-768x522.png 768w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/features-mongodb-390x265.png 390w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/features-mongodb-820x557.png 820w" sizes="(max-width: 1137px) 100vw, 1137px" /></p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/mongodb/what-are-the-features-of-mongodb/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>What are Geospatial Indexes in MongoDB ?</title>
		<link>https://www.wikitechy.com/interview-questions/mongodb/what-are-geospatial-indexes-in-mongodb/</link>
					<comments>https://www.wikitechy.com/interview-questions/mongodb/what-are-geospatial-indexes-in-mongodb/#respond</comments>
		
		<dc:creator><![CDATA[webmaster]]></dc:creator>
		<pubDate>Mon, 04 Apr 2022 11:48:41 +0000</pubDate>
				<category><![CDATA[mongodb]]></category>
		<category><![CDATA[aggregate function in mongodb example]]></category>
		<category><![CDATA[aggregation in mongodb]]></category>
		<category><![CDATA[aggregation operations]]></category>
		<category><![CDATA[aggregation pipeline in mongodb]]></category>
		<category><![CDATA[aggregations in mongodb by example]]></category>
		<category><![CDATA[concept of aggregation in mongodb]]></category>
		<category><![CDATA[how to use aggregations in mongodb]]></category>
		<category><![CDATA[mongodb aggregate functions]]></category>
		<category><![CDATA[mongodb aggregation]]></category>
		<category><![CDATA[mongodb aggregation operators]]></category>
		<category><![CDATA[mongodb aggregation tutorial]]></category>
		<guid isPermaLink="false">https://www.wikitechy.com/interview-questions/?p=4089</guid>

					<description><![CDATA[It allows you to efficiently execute spatial queries on a collection that contains geospatial shapes and points. It was created by two fields, specify the location field first, then the second field. In MongoDB, it has two types 2dsphere and 2d. Indexes work with spherical geometries that model the surface of the earth based on [&#8230;]]]></description>
										<content:encoded><![CDATA[<ul>
<li style="text-align: justify;">It allows you to efficiently execute spatial queries on a collection that contains geospatial shapes and points.</li>
<li style="text-align: justify;">It was created by two fields, specify the location field first, then the second field.</li>
<li style="text-align: justify;">In MongoDB, it has two types 2dsphere and 2d.</li>
<li style="text-align: justify;">Indexes work with spherical geometries that model the surface of the earth based on the WGS84 datum is 2dsphere.</li>
<li style="text-align: justify;">In this model, the surface of the earth is an oblate spheroid, meaning that there is some flattening at the poles.</li>
<li style="text-align: justify;">Indexes for points stored on a two-dimensional plane is 2d.</li>
<li style="text-align: justify;">In GeoJSON format 2dsphere allows you to specify geometries for points, lines, and polygons.</li>
<li style="text-align: justify;">A point is given by a two-element array, representing [longitude, latitude].</li>
</ul>
<p>For example,</p>
<div class="code-embed-wrapper"> <div class="code-embed-infos"> </div> <pre class="language-markup code-embed-pre line-numbers"  data-start="1" data-line-offset="0"><code class="language-markup code-embed-code">                                   {<br/>                                          &quot;name&quot; : &quot;New York City&quot;,<br/>                                          &quot;loc&quot; : {<br/>                                                 &quot;type&quot; : &quot;Point&quot;,<br/>                                                 &quot;coordinates&quot; : [50, 2]<br/>                                        }<br/>                                  }</code></pre> </div>
<p>A line is given by an array of points:</p>
<p>For example,</p>
<div class="code-embed-wrapper"> <div class="code-embed-infos"> </div> <pre class="language-markup code-embed-pre line-numbers"  data-start="1" data-line-offset="0"><code class="language-markup code-embed-code">{<br/>                            &quot;name&quot; : &quot;Hudson River&quot;,<br/>                            &quot;loc&quot; : {<br/>                                  &quot;type&quot; : &quot;LineString&quot;,<br/>                                  &quot;coordinates&quot; : [[0,1], [0,2], [1,2]]<br/>                           }<br/>                      }</code></pre> </div>
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/mongodb/what-are-geospatial-indexes-in-mongodb/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>What are the aggregate functions of MongoDB ?</title>
		<link>https://www.wikitechy.com/interview-questions/mongodb/what-are-the-aggregate-functions-of-mongodb/</link>
					<comments>https://www.wikitechy.com/interview-questions/mongodb/what-are-the-aggregate-functions-of-mongodb/#respond</comments>
		
		<dc:creator><![CDATA[webmaster]]></dc:creator>
		<pubDate>Mon, 04 Apr 2022 11:28:07 +0000</pubDate>
				<category><![CDATA[mongodb]]></category>
		<category><![CDATA[aggregate function in mongodb example]]></category>
		<category><![CDATA[aggregation in mongodb]]></category>
		<category><![CDATA[aggregation operations]]></category>
		<category><![CDATA[aggregation pipeline in mongodb]]></category>
		<category><![CDATA[aggregations in mongodb by example]]></category>
		<category><![CDATA[concept of aggregation in mongodb]]></category>
		<category><![CDATA[how to use aggregations in mongodb]]></category>
		<category><![CDATA[mongodb aggregate functions]]></category>
		<category><![CDATA[mongodb aggregation]]></category>
		<category><![CDATA[mongodb aggregation operators]]></category>
		<category><![CDATA[mongodb aggregation tutorial]]></category>
		<guid isPermaLink="false">https://www.wikitechy.com/interview-questions/?p=4085</guid>

					<description><![CDATA[The aggregation pipeline consists of stages, and each stage transforms the document in MongoDB. In each state, the documents are taken as input and produce the resultant set of documents are now in the next stage (id available) the resultant documents taken as input and produce output, this process is going on till the last [&#8230;]]]></description>
										<content:encoded><![CDATA[<ul>
<li style="text-align: justify;">The aggregation pipeline consists of stages, and each stage transforms the document in MongoDB.</li>
<li style="text-align: justify;">In each state, the documents are taken as input and produce the resultant set of documents are now in the next stage (id available) the resultant documents taken as input and produce output, this process is going on till the last stage.</li>
<li style="text-align: justify;">In other word, the aggregation pipeline is a multi-stage pipeline.</li>
<li style="text-align: justify;">The basic pipeline stages provide filters that will perform like queries and the document transformation modifies the resultant document, and the other pipeline provides tools for grouping and sorting documents.</li>
<li style="text-align: justify;">In aggregation, there are various functions used:</li>
</ul>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-4086 aligncenter" src="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/aggregation-functions-mongodb.png" alt="" width="1110" height="716" srcset="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/aggregation-functions-mongodb.png 1110w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/aggregation-functions-mongodb-300x194.png 300w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/aggregation-functions-mongodb-1024x661.png 1024w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/aggregation-functions-mongodb-768x495.png 768w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/aggregation-functions-mongodb-390x252.png 390w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/aggregation-functions-mongodb-820x529.png 820w" sizes="(max-width: 1110px) 100vw, 1110px" /></p>
<h4 id="sum" style="text-align: justify;">Sum :</h4>
<ul style="text-align: justify;">
<li>This aggregation function is used to sum numeric values for the document in each group.</li>
</ul>
<h4 id="count" style="text-align: justify;">Count :</h4>
<ul style="text-align: justify;">
<li>This aggregation function is used to count total number of documents.</li>
</ul>
<h4 id="average" style="text-align: justify;">Average :</h4>
<ul style="text-align: justify;">
<li>This aggregation function is used to calculates the average of all given values from all documents.</li>
</ul>
<h4 id="minimum" style="text-align: justify;">Minimum :</h4>
<ul style="text-align: justify;">
<li>This aggregation function is used to get the minimum value from all the documents.</li>
</ul>
<h4 id="maximum" style="text-align: justify;">Maximum :</h4>
<ul style="text-align: justify;">
<li>This aggregation function is used to get the maximum value from all the documents.</li>
</ul>
<h4 id="first" style="text-align: justify;">First :</h4>
<ul style="text-align: justify;">
<li>This aggregation function is used to get the first document from the grouping.</li>
</ul>
<h4 id="last" style="text-align: justify;">Last :</h4>
<ul>
<li style="text-align: justify;">This aggregation function is used to get the last document from the grouping.</li>
</ul>
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/mongodb/what-are-the-aggregate-functions-of-mongodb/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>What are the data types in MongoDB ?</title>
		<link>https://www.wikitechy.com/interview-questions/mongodb/what-are-the-data-types-in-mongodb/</link>
					<comments>https://www.wikitechy.com/interview-questions/mongodb/what-are-the-data-types-in-mongodb/#respond</comments>
		
		<dc:creator><![CDATA[webmaster]]></dc:creator>
		<pubDate>Mon, 04 Apr 2022 11:13:57 +0000</pubDate>
				<category><![CDATA[mongodb]]></category>
		<category><![CDATA[bson types]]></category>
		<category><![CDATA[datatypes in mongodb]]></category>
		<category><![CDATA[introduction to mongodb data types]]></category>
		<category><![CDATA[mongodb data types date]]></category>
		<category><![CDATA[mongodb data types size]]></category>
		<category><![CDATA[mongodb data types with example]]></category>
		<category><![CDATA[mongodb data types with examples]]></category>
		<category><![CDATA[mongodb datatypes]]></category>
		<category><![CDATA[mongodb field types]]></category>
		<category><![CDATA[mongodb integer type]]></category>
		<category><![CDATA[what are the data types in mongodb]]></category>
		<guid isPermaLink="false">https://www.wikitechy.com/interview-questions/?p=4083</guid>

					<description><![CDATA[The documents are stores in BSON, which is the binary encoded format of JSON in MongoDB. In MongoDB we can make remote procedure calls using BSON. BSON data format supports various data-types. There are various datatypes used in MongoDB. Null : It is used to store Null values.  Syntax:  {“x”: null}      Boolean : It is [&#8230;]]]></description>
										<content:encoded><![CDATA[<ul>
<li>The documents are stores in BSON, which is the binary encoded format of JSON in MongoDB.</li>
<li>In MongoDB we can make remote procedure calls using BSON.</li>
<li>BSON data format supports various data-types.</li>
<li>There are various datatypes used in MongoDB.</li>
</ul>
<h4 id="null"><strong>Null :</strong></h4>
<ul>
<li>It is used to store Null values.</li>
</ul>
<p><strong> Syntax</strong><strong>:  </strong>{“x”: null}<strong>     </strong></p>
<h4 id="boolean"><strong>Boolean :</strong></h4>
<ul>
<li>It is used to store whether true or false.</li>
</ul>
<p><strong>  Syntax</strong><strong>: </strong>{“x”: true}</p>
<h4 id="integer"><strong>Integer :</strong></h4>
<ul>
<li>It is used to store an integer value.</li>
<li>In two forms we can store integer data type 32 -bit signed integer and 64 – bit signed integer.</li>
</ul>
<p><strong>Syntax</strong><strong>: </strong>{“x”: 4}</p>
<h4 id="string"><strong>String :</strong></h4>
<ul>
<li>It is used to store data and the most commonly used data type in MongoDB, BSON strings are of UTF-8.</li>
<li>In each programming language, the drivers convert from the string format of the language to UTF-8 while serializing and deserializing BSON.</li>
</ul>
<p><strong>Syntax</strong><strong>: </strong>{“x”: “foobar”}</p>
<h4 id="date"><strong>Date :</strong></h4>
<ul>
<li>It is used to store date, and it is a 64-bit integer that represents the number of milliseconds.</li>
<li>It is signed and the BSON data type generally supports UTC datetime.</li>
<li>If the value of the date data type is negative, then it represents the dates before 1970.</li>
<li>In this type, there are various type:</li>
</ul>
<ol>
<li style="list-style-type: none;">
<ol>
<li>Date ()</li>
<li>New Date ()</li>
<li>New ISO Date ()</li>
</ol>
</li>
</ol>
<p><strong>Syntax</strong><strong>: </strong>{“x”: “new Date ()”}</p>
<h4 id="regular-expression"><strong>Regular expression :</strong></h4>
<ul>
<li>It is used to store regular expressions.</li>
</ul>
<p><strong>Syntax</strong><strong>: </strong>{“x”: /foobar/i ()”}</p>
<h4 id="array"><strong>Array :</strong></h4>
<ul>
<li>It is the set of values and stores the same or different data types values in it.</li>
<li>The array is created using square brackets ([]) in MongoDB.</li>
</ul>
<p><strong>Syntax</strong><strong>: </strong>{“x”: [“a”, “b”, “c”]}</p>
<h4 id="object-id"><strong>Object ID :</strong></h4>
<ul>
<li>MongoDB automatically creates a unique object ID Whenever we create a new document in the collection.</li>
<li>In MongoDB, there is an _id field for each document.</li>
<li>The data stored in Id is length is 12 bytes and it is in hexadecimal format.</li>
</ul>
<p><strong>Syntax</strong><strong>: </strong>{“x”: objectId ()}</p>
<h4 id="binary-data"><strong>Binary Data :</strong></h4>
<ul>
<li>It is used to store binary data. It is a string of arbitrary bytes.</li>
</ul>
<h4 id="code"><strong>Code :</strong></h4>
<ul>
<li>The string data type is similar to this data.</li>
<li>Mongo shell is generally not supported in this.</li>
<li>If the shell gets a symbol from the database, then it converts this type into a string type.</li>
</ul>
<p><strong>Syntax:</strong> {“x”: function() { /* …*/ }}</p>
<p> </p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/mongodb/what-are-the-data-types-in-mongodb/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>What are the different types of NoSQL databases ? Give some examples</title>
		<link>https://www.wikitechy.com/interview-questions/mongodb/what-are-the-different-types-of-nosql-databases-give-some-examples/</link>
					<comments>https://www.wikitechy.com/interview-questions/mongodb/what-are-the-different-types-of-nosql-databases-give-some-examples/#respond</comments>
		
		<dc:creator><![CDATA[webmaster]]></dc:creator>
		<pubDate>Mon, 04 Apr 2022 09:11:49 +0000</pubDate>
				<category><![CDATA[mongodb]]></category>
		<category><![CDATA[advantages of nosql]]></category>
		<category><![CDATA[different types of nosql databases]]></category>
		<category><![CDATA[examples of nosql databases]]></category>
		<category><![CDATA[features of nosql]]></category>
		<category><![CDATA[list of nosql databases]]></category>
		<category><![CDATA[nosql database types]]></category>
		<category><![CDATA[types of nosql databases]]></category>
		<category><![CDATA[what is nosql database]]></category>
		<category><![CDATA[which of the following is not a valid nosql database]]></category>
		<guid isPermaLink="false">https://www.wikitechy.com/interview-questions/?p=4076</guid>

					<description><![CDATA[A Database, which stores data in a format different from relational databases, hence is known as NoSQL Database. NoSQL- “not only SQL” which pertains to the fact that either the database can store and manage data using “no SQL” at all. It can work in a combination that combines the flexibility of the newer method (NoSQL) with the strength of the traditional relational system (SQL). In [&#8230;]]]></description>
										<content:encoded><![CDATA[<ul>
<li style="text-align: justify;">A Database, which stores data in a format different from relational databases, hence is known as NoSQL Database.</li>
<li style="text-align: justify;">NoSQL- “not only SQL” which pertains to the fact that either the database can store and manage data using “no SQL” at all.</li>
<li style="text-align: justify;">It can work in a combination that combines the flexibility of the newer method (NoSQL) with the strength of the traditional relational system (SQL).</li>
<li style="text-align: justify;">In NoSQL database, there are four types:</li>
</ul>
<ol style="text-align: justify;">
<li style="list-style-type: none;">
<ol>
<li style="text-align: justify;">Key value NoSQL database</li>
<li style="text-align: justify;">Document NoSQL database</li>
<li style="text-align: justify;">Column family NoSQL database</li>
<li style="text-align: justify;">Graph base NoSQL database</li>
</ol>
</li>
</ol>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-4077" src="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/types-of-nosql-db.png" alt="" width="1183" height="958" srcset="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/types-of-nosql-db.png 1183w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/types-of-nosql-db-300x243.png 300w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/types-of-nosql-db-1024x829.png 1024w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/types-of-nosql-db-768x622.png 768w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/types-of-nosql-db-390x316.png 390w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/types-of-nosql-db-820x664.png 820w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/types-of-nosql-db-1180x956.png 1180w" sizes="(max-width: 1183px) 100vw, 1183px" /></p>
<h4 id="key-value-nosql-database" style="text-align: justify;">Key value NoSQL database :</h4>
<ul style="text-align: justify;">
<li style="text-align: justify;">In NoSQL database this is the simplest type.</li>
<li style="text-align: justify;">In this type, the data is stored in the form of key/value pairs.</li>
<li style="text-align: justify;">The value can be a JSON, BLOB (Binary Large Objects), string, etc.</li>
<li style="text-align: justify;">It Stores maintain data as pair consisting of an index key and a value.</li>
<li style="text-align: justify;">The value in a key-value store can be anything: a string, a number, but also an entirely new set of key-value pairs encapsulated in an object.</li>
</ul>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-4078 aligncenter" src="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/keyvalue-nospql-db.png" alt="" width="660" height="595" srcset="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/keyvalue-nospql-db.png 660w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/keyvalue-nospql-db-300x270.png 300w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/keyvalue-nospql-db-390x352.png 390w" sizes="(max-width: 660px) 100vw, 660px" /></p>
<h4 id="document-nosql-database" style="text-align: justify;">Document NoSQL database :</h4>
<ul style="text-align: justify;">
<li>In this, the values are stored in structured documents like XML or JSON, and it is an extension of the simplicity of Key-Value stores.</li>
<li>In object-oriented software, Document stores make it easy to map Objects.</li>
<li>It does not support relations and allows us to store complex data in document formats (JSON, XML etc.).</li>
<li>There is no relational integrity, and Each document in the document store is independent.</li>
<li>It can be used for all use cases of a KV store database, and also data in each document can be in a different format.</li>
</ul>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-4081 aligncenter" src="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/document-nosql-db.png" alt="" width="560" height="413" srcset="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/document-nosql-db.png 560w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/document-nosql-db-300x221.png 300w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/document-nosql-db-390x288.png 390w" sizes="(max-width: 560px) 100vw, 560px" /></p>
<h4 id="column-family-nosql-database" style="text-align: justify;">Column family NoSQL database :</h4>
<ul style="text-align: justify;">
<li>It is developed to store and process very large amounts of data distributed over many machines.</li>
<li>The columns are arranged by column family, and they point to multiple columns.</li>
<li>It becomes high performance on aggregation queries like SUM, COUNT, AVG, MIN, etc.</li>
</ul>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-4080 aligncenter" src="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/column-family-nosql-db-1.png" alt="" width="934" height="498" srcset="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/column-family-nosql-db-1.png 934w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/column-family-nosql-db-1-300x160.png 300w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/column-family-nosql-db-1-768x409.png 768w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/column-family-nosql-db-1-390x208.png 390w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/column-family-nosql-db-1-820x437.png 820w" sizes="(max-width: 934px) 100vw, 934px" /></p>
<h4 id="graph-base-nosql-database" style="text-align: justify;">Graph base NoSQL database :</h4>
<ul>
<li style="text-align: justify;">It is the storage of graph<em>–</em>oriented data structures and is used for specific purposes.</li>
<li style="text-align: justify;">A graph database is any storage system that provides index-free adjacency.</li>
<li style="text-align: justify;">No index lookups are necessary, and every node contains a direct pointer to its adjacent element.</li>
<li style="text-align: justify;">There is no need to define the types of edges and vertices because it usually comes with a flexible data model.</li>
</ul>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-4079" src="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/graph-nosql-db.png" alt="" width="871" height="698" srcset="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/graph-nosql-db.png 871w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/graph-nosql-db-300x240.png 300w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/graph-nosql-db-768x615.png 768w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/graph-nosql-db-390x313.png 390w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/graph-nosql-db-820x657.png 820w" sizes="(max-width: 871px) 100vw, 871px" /></p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/mongodb/what-are-the-different-types-of-nosql-databases-give-some-examples/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>What is CRUD in MongoDB ?</title>
		<link>https://www.wikitechy.com/interview-questions/mongodb/what-is-crud-in-mongodb/</link>
					<comments>https://www.wikitechy.com/interview-questions/mongodb/what-is-crud-in-mongodb/#respond</comments>
		
		<dc:creator><![CDATA[webmaster]]></dc:creator>
		<pubDate>Mon, 04 Apr 2022 08:41:45 +0000</pubDate>
				<category><![CDATA[mongodb]]></category>
		<category><![CDATA[crud operations in mongodb]]></category>
		<category><![CDATA[crud operations in mongodb example]]></category>
		<category><![CDATA[crud operations in mongodb using node js]]></category>
		<category><![CDATA[crud operations in mongodb using python]]></category>
		<category><![CDATA[mongodb crud commands]]></category>
		<category><![CDATA[mongodb crud example]]></category>
		<category><![CDATA[mongodb crud operations]]></category>
		<category><![CDATA[what do crud means]]></category>
		<category><![CDATA[what is crud in mongodb]]></category>
		<category><![CDATA[what is crud in nosql]]></category>
		<category><![CDATA[what is curd query]]></category>
		<category><![CDATA[what is mongodb ?]]></category>
		<guid isPermaLink="false">https://www.wikitechy.com/interview-questions/?p=4073</guid>

					<description><![CDATA[It is used for various things like building an application (including web and mobile), or analysis of data, or administrator of a MongoDB database. Those things interact with the MongoDB server to perform certain operations like creating data into the application, reading the data of the application, updating data into the application, and deleting data [&#8230;]]]></description>
										<content:encoded><![CDATA[<ul>
<li style="text-align: justify;">It is used for various things like building an application (including web and mobile), or analysis of data, or administrator of a MongoDB database.</li>
<li style="text-align: justify;">Those things interact with the MongoDB server to perform certain operations like creating data into the application, reading the data of the application, updating data into the application, and deleting data from application.</li>
<li style="text-align: justify;">This database provides some operations and easily interacts with the server. Hence, this is known as CRUD operations.</li>
</ul>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-4074" src="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/crud-mongodb.png" alt="" width="982" height="519" srcset="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/crud-mongodb.png 982w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/crud-mongodb-300x159.png 300w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/crud-mongodb-768x406.png 768w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/crud-mongodb-390x206.png 390w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/crud-mongodb-820x433.png 820w" sizes="(max-width: 982px) 100vw, 982px" /></p>
<h4 id="create-operations">Create Operations:</h4>
<ul>
<li>This operation is used to insert or add new documents in collection.</li>
<li>It will create a new collection in the database If a collection does not exist.</li>
<li>In this operation, there are two types of methods provided by MongoDB:</li>
</ul>
<ol>
<li style="list-style-type: none;">
<ol>
<li><strong>collection.insertOne()</strong></li>
<li><strong>collection.insertMany()</strong></li>
</ol>
</li>
</ol>
<h4 id="read-operations">Read Operations :</h4>
<ul>
<li>It is used to query a collection for a document and to retrieve documents from the collection, or in other words.</li>
<li>In this operation, there is single method provided by MongoDB:</li>
</ul>
<ol>
<li style="list-style-type: none;">
<ol>
<li><strong>collection.find ()</strong></li>
</ol>
</li>
</ol>
<h4 id="update-operations">Update Operations :</h4>
<ul>
<li>It is used to modify or update the existing document in the collection.</li>
<li>In this operation, there is three types of method provided by MongoDB:</li>
</ul>
<ol>
<li style="list-style-type: none;">
<ol>
<li><strong>collection.updateOne()</strong></li>
<li><strong>collection.updateMany()</strong></li>
<li><strong>collection.replaceOne()</strong></li>
</ol>
</li>
</ol>
<h4 id="delete-operations">Delete Operations :</h4>
<ul>
<li>It is used to remove or delete the existing document in the collection.</li>
<li>In this operation, there are two types of method provided by MongoDB:
<ul>
<li><strong>collection.deleteOne()</strong></li>
<li><strong>collection.deleteMany()</strong></li>
</ul>
</li>
</ul>
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/mongodb/what-is-crud-in-mongodb/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>What is the use of Index in Mongodb ?</title>
		<link>https://www.wikitechy.com/interview-questions/mongodb/what-is-the-use-of-index-in-mongodb/</link>
					<comments>https://www.wikitechy.com/interview-questions/mongodb/what-is-the-use-of-index-in-mongodb/#respond</comments>
		
		<dc:creator><![CDATA[webmaster]]></dc:creator>
		<pubDate>Mon, 04 Apr 2022 05:50:34 +0000</pubDate>
				<category><![CDATA[mongodb]]></category>
		<category><![CDATA[compound index mongodb]]></category>
		<category><![CDATA[does mongodb have indexes]]></category>
		<category><![CDATA[how does index work in mongodb]]></category>
		<category><![CDATA[how indexing works in mongodb]]></category>
		<category><![CDATA[indexing in mongodb]]></category>
		<category><![CDATA[indexing in mongodb example]]></category>
		<category><![CDATA[mongodb indexing best practices]]></category>
		<category><![CDATA[types of index in mongodb]]></category>
		<category><![CDATA[what is compound index in mongodb]]></category>
		<category><![CDATA[what is indexes in mongodb]]></category>
		<category><![CDATA[what is text index in mongodb]]></category>
		<category><![CDATA[what is the use of index in mongodb]]></category>
		<category><![CDATA[why create index in mongodb]]></category>
		<guid isPermaLink="false">https://www.wikitechy.com/interview-questions/?p=4068</guid>

					<description><![CDATA[MongoDB is one of the leading NoSQL database. It is written in C++ Program. It provides high performance and availability and high scalable. Indexing in MongoDB is used to make query processing more efficient. The MongoDB scan every document in the collection and retrieve only those documents that match the query, where there is no [&#8230;]]]></description>
										<content:encoded><![CDATA[<ul>
<li style="text-align: justify;">MongoDB is one of the leading NoSQL database. It is written in C++ Program.</li>
<li style="text-align: justify;">It provides high performance and availability and high scalable.</li>
<li style="text-align: justify;">Indexing in MongoDB is used to make query processing more efficient.</li>
<li style="text-align: justify;">The MongoDB scan every document in the collection and retrieve only those documents that match the query, where there is no indexing.</li>
<li style="text-align: justify;">Indexes are special data structures that stores some information related to the documents such that it becomes easy for MongoDB to find the right data file.</li>
<li style="text-align: justify;">Indexes are ordered by the value of the field specified in the index.</li>
</ul>
<h5 id="index-creating"><strong>Index Creating :</strong></h5>
<ul>
<li> createIndex() is a method that allows user to create an index.</li>
</ul>
<h5 id="syntax"><strong>Syntax :</strong></h5>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-4069" src="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/how-mongodb-indexes-works.png" alt="" width="876" height="148" srcset="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/how-mongodb-indexes-works.png 876w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/how-mongodb-indexes-works-300x51.png 300w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/how-mongodb-indexes-works-768x130.png 768w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/how-mongodb-indexes-works-390x66.png 390w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/how-mongodb-indexes-works-820x139.png 820w" sizes="(max-width: 876px) 100vw, 876px" /></p>
<p>For Example,</p>
<div class="code-embed-wrapper"> <div class="code-embed-infos"> </div> <pre class="language-markup code-embed-pre line-numbers"  data-start="1" data-line-offset="0"><code class="language-markup code-embed-code">db.mycol.createIndex({“age”:1})<br/>{<br/>“createdCollectionAutomatically” : false,<br/>“numIndexesBefore” : 1,<br/>“numIndexesAfter” : 2,<br/>“ok” : 1<br/>} </code></pre> </div>
<ul>
<li>In createIndex() method, there are five types of parameters:</li>
</ul>
<ol>
<li style="list-style-type: none;">
<ol>
<li>background (Boolean)</li>
<li>unique (Boolean)</li>
<li>name (string)</li>
<li>sparse (Boolean)</li>
</ol>
</li>
</ol>
<h5 id="index-for-drop"><strong>Index for Drop :</strong></h5>
<ul>
<li>dropIndex() is a method that allows users to drop an index.</li>
<li>This method can delete only one index at a time.</li>
<li>MongoDB provides the dropIndexes() method that takes multiple indexes as its parameters.</li>
</ul>
<h5 id="syntax-2">Syntax :</h5>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-4070" src="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/indexing-in-mongodb.png" alt="" width="845" height="159" srcset="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/indexing-in-mongodb.png 845w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/indexing-in-mongodb-300x56.png 300w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/indexing-in-mongodb-768x145.png 768w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/indexing-in-mongodb-390x73.png 390w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/indexing-in-mongodb-820x154.png 820w" sizes="(max-width: 845px) 100vw, 845px" /></p>
<h5 id="get-description-of-all-indexes"><strong>Get description of all indexes :</strong></h5>
<ul>
<li>It will retrieve all the description of the indexes created within the collection.</li>
</ul>
<h5 id="syntax-3"><strong>Syntax :</strong></h5>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-4071" src="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/mongodb-indexing.png" alt="" width="834" height="155" srcset="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/mongodb-indexing.png 834w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/mongodb-indexing-300x56.png 300w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/mongodb-indexing-768x143.png 768w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/mongodb-indexing-390x72.png 390w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/mongodb-indexing-820x152.png 820w" sizes="(max-width: 834px) 100vw, 834px" /></p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/mongodb/what-is-the-use-of-index-in-mongodb/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>What is MongoDB ?</title>
		<link>https://www.wikitechy.com/interview-questions/mongodb/what-is-mongodb/</link>
					<comments>https://www.wikitechy.com/interview-questions/mongodb/what-is-mongodb/#respond</comments>
		
		<dc:creator><![CDATA[webmaster]]></dc:creator>
		<pubDate>Mon, 04 Apr 2022 05:14:35 +0000</pubDate>
				<category><![CDATA[mongodb]]></category>
		<category><![CDATA[introduction to mongodb architecture]]></category>
		<category><![CDATA[mongodb full form]]></category>
		<category><![CDATA[mongodb tutorial]]></category>
		<category><![CDATA[mongodb vs mysql]]></category>
		<category><![CDATA[what is mongodb ?]]></category>
		<category><![CDATA[what is mongodb and how it works]]></category>
		<category><![CDATA[what is mongodb cluster]]></category>
		<category><![CDATA[what is mongodb database]]></category>
		<category><![CDATA[what is mongodb good for]]></category>
		<category><![CDATA[what is mongodb in big data]]></category>
		<category><![CDATA[what is mongodb replica set]]></category>
		<category><![CDATA[what is mongodb used for]]></category>
		<guid isPermaLink="false">https://www.wikitechy.com/interview-questions/?p=4065</guid>

					<description><![CDATA[It is a document-oriented NoSQL database used to build highly available and scalable internet applications. Nowadays, it is one of the most powerful NoSQL systems and databases. It makes use of collections and documents, instead of using tables and rows as in the traditional relational databases. One of the software companies “10gen” was created MongoDB in October 2007. [&#8230;]]]></description>
										<content:encoded><![CDATA[<ul>
<li style="text-align: justify;">It is a document-oriented <a href="https://www.wikitechy.com/tutorial/mongodb/nosql-database">NoSQL database</a> used to build highly available and scalable internet applications.</li>
<li style="text-align: justify;">Nowadays, it is one of the most powerful NoSQL systems and databases.</li>
<li style="text-align: justify;">It makes use of collections and documents, instead of using tables and rows as in the traditional relational databases.</li>
<li style="text-align: justify;">One of the software companies “10gen” was created <a href="https://www.wikitechy.com/tutorial/mongodb/what-is-mongodb">MongoDB</a> in October 2007.</li>
<li style="text-align: justify;">It is an element of the planned platform as the service product.</li>
<li style="text-align: justify;">It also ensures availability, scalability, and compliance with the most stringent data security and privacy requirements.</li>
<li style="text-align: justify;"> It also provides official driver support for all the popular languages like C, <a href="https://www.wikitechy.com/tutorials/c++/">C++</a>, <a href="https://www.wikitechy.com/tutorials/csharp/">C#</a> , and <a href="https://www.wikitechy.com/tutorial/dotnet/what-is-dotnet">.Net</a> , Go, <a href="https://www.wikitechy.com/tutorials/java/">Java</a> , <a href="https://www.wikitechy.com/tutorials/node-js/">Node.js</a> , Perl, <a href="https://www.wikitechy.com/php/">PHP</a>, <a href="https://www.wikitechy.com/tutorials/python/python-tutorial">Python</a> , Motor, Ruby, Scala, Swift, Monoid</li>
<li style="text-align: justify;">Companies like Facebook, Nokia, eBay, Adobe, Google, etc. using MongoDB to store their large amount of data.</li>
</ul>
<p> </p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-4066 aligncenter" src="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/what-is-mongodb.jpg" alt="" width="1498" height="819" srcset="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/what-is-mongodb.jpg 1498w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/what-is-mongodb-300x164.jpg 300w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/what-is-mongodb-1024x560.jpg 1024w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/what-is-mongodb-768x420.jpg 768w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/what-is-mongodb-390x213.jpg 390w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/what-is-mongodb-820x448.jpg 820w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/what-is-mongodb-1180x645.jpg 1180w" sizes="(max-width: 1498px) 100vw, 1498px" /></p>
<p><strong>For Example,</strong></p>
<div class="code-embed-wrapper"> <div class="code-embed-infos"> </div> <pre class="language-markup code-embed-pre line-numbers"  data-start="1" data-line-offset="0"><code class="language-markup code-embed-code">{_id:<br/><br/>name: “Venkat”,<br/><br/>Age: 36,<br/><br/>Address: {{street: “No-1, southern street”,<br/><br/>           city: “Chennai”,<br/><br/>           state: “Tamil Nadu”,<br/><br/>           zip: “600021”,<br/><br/>           country: “India”}}</code></pre> </div>
<p><strong> </strong></p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/mongodb/what-is-mongodb/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
