JIYIK CN >

Current Location:Home > Learning > DATABASE > MongoDB >

All

Storing images in MongoDB

Publish Date:2025/04/30 Author:JIYIK Category:MongoDB

You can use a database to store pictures and other small images in a database table. Such picture files can be processed more efficiently on a file server. However, when image data is stored in a binary field, it can only be accessed by app...

Full

Querying document IDs in Mongodb using PHP library

Publish Date:2025/04/30 Author:JIYIK Category:MongoDB

My new job at IBM is as a development support person. That means I spend most of my time dealing with databases. In my workflow, I spent some time on MongoDB, which is a document database. But I encountered some problems in retrieving recor...

Full

Difference between ObjectId and $Oid in MongoDB

Publish Date:2025/04/29 Author:JIYIK Category:MongoDB

MongoDB stores all data records in separate BSON documents. An identifier is provided to uniquely identify each document. The identifier helps users uniquely locate the document when searching for other documents. With the help of identifie...

Full

Search in a specified array in MongoDB

Publish Date:2025/04/29 Author:JIYIK Category:MongoDB

$in Operator searches within an array that you provide. For example, if you are given an array and want to search for one or more matching elements in a MongoDB collection, you can use $in . Use $in the operator to search for a specified ar...

Full

MongoDB item nested fields

Publish Date:2025/04/29 Author:JIYIK Category:MongoDB

Today, we will learn how to project nested fields when querying data in MongoDB using the $project and $unset aggregation stages, forEach() loops, and methods. mapReduce() MongoDB item nested fields In MongoDB, we can find() retrieve all do...

Full

Convert Timestamp to Date in MongoDB

Publish Date:2025/04/29 Author:JIYIK Category:MongoDB

This article demonstrates how to convert a timestamp to a date in MongoDB. It also explains how to count entries for a specific date. Convert Timestamp to Date in MongoDB Converting from timestamp to date depends on the type we are saving t...

Full

Get the last N records in MongoDB

Publish Date:2025/04/29 Author:JIYIK Category:MongoDB

This article will explore the number of ways to get the last N records in MongoDB, where N is a positive number greater than zero. We will see how to retrieve the number of documents with and without sorting. Get the last N records in Mongo...

Full

Install and use Elasticsearch and MongoDB on Windows and Ubuntu

Publish Date:2025/04/29 Author:JIYIK Category:MongoDB

This article is a step-by-step installation and configuration guide for Elasticsearch on Windows and Ubuntu 20.04. It also demonstrates using Elasticsearch with MongoDB on both operating systems. What is Elasticsearch Elasticsearch is a NoS...

Full

Merge two collections into one using MongoDB

Publish Date:2025/04/29 Author:JIYIK Category:MongoDB

Today, we will merge two collections into one using $lookup the Aggregate stage, the pipeline AND $unwind operator, the Filter stage, and MongoDB Compass. $project Merge two collections into one using MongoDB We have different ways to combi...

Full

Performing the equivalent of a SQL JOIN in MongoDB

Publish Date:2025/04/29 Author:JIYIK Category:MongoDB

MongoDB is very hungry for unstructured data and belongs in any database developer's toolset. Some aggregation processes are much slower than relational databases, even with existing indexes. This is the case when using joins between collec...

Full

Using pipelines in MongoDB query operations

Publish Date:2025/04/29 Author:JIYIK Category:MongoDB

This article teaches you how to use pipelines in MongoDB's lookup Aggregation Pipeline operator. Before proceeding, you must have enough knowledge about the aggregation pipeline and the Aggregation Pipeline operator to understand the use of...

Full

MongoDB Aggregate Sorting

Publish Date:2025/04/29 Author:JIYIK Category:MongoDB

To perform aggregation operations with MongoDB, you need to have a good understanding of the aggregation pipeline stages. This tutorial will explore $sort the stages through an example to perform a MongoDB aggregation sort. MongoDB Aggregat...

Full

NOT IN comparison operator in MongoDB

Publish Date:2025/04/29 Author:JIYIK Category:MongoDB

Comparison operators are very useful when working with large data sets. They are helpful in gaining insights from the data. $nin This article explains how to use the ( ) comparison operator in MongoDB NOT IN . It also shows how to use $nin...

Full

Scan to Read All Tech Tutorials

Social Media
  • https://www.github.com/onmpw
  • qq:1244347461

Hottest

Tags

Scan the Code
Easier Access Tutorial