当前位置:网站首页>59: Chapter 5: Develop admin management services: 12: MongoDB usage scenarios; (non-core data, non-core data with a relatively large amount of data, small private files such as face photos;)
59: Chapter 5: Develop admin management services: 12: MongoDB usage scenarios; (non-core data, non-core data with a relatively large amount of data, small private files such as face photos;)
2022-08-02 07:54:00 【small dry forest】
Description:
(1)This blog mainly introduces the usage scenarios of MongoDB;
(1)We already know that, where the administrator is set, the administrator's face photo is stored in MongoDB;
(2)IP blacklist, we will do it later;
(3)Links: We will use MongoDB to store;
(3. Insert) Let’s repeat the usage scenario of MongoDB:
● GridFS, small file storage: Use GridFS to store some private data;
● Historical data snapshot: For example, in the e-commerce system, the user purchased a product on August 1 (but, wait until August 5, the price of the product may change);Then when the user places an order to buy, the data of the product corresponding to the order is the snapshot data;;;;These data can be stored in databases such as MySQL, but because of the large amount of data, we canStore it in MongoDB;
● User browsing records: For example, users' browsing records in the e-commerce system; the amount of data is very high. If this data exists in databases such as MySQL, the database will be under pressureIt will be very large; we can store these historical data in MongoDB;
● Customer service chat records: The chat data is neither the core business nor the core data; therefore, this piece of content can also be separated out and placed in MongoDB;
● That is, MongoDB can store "non-core data", "privacy data", "small file data", and "non-core data with a large amount of data"; since it stores all non-core data, even if MongoDB goes downIt will not affect our core business; in addition, MongoDB can help the database to relieve the pressure of data storage;
● At the same time, the above types of data are not recommended to be placed in redis; because redis data will be stored in memory, if these data are stored in memory using redis, it will be a great luxury andWaste; that is, redis generally provides a caching mechanism for some "data that needs to be read frequently"; MongoDB generally allocates the storage pressure of large data volumes (non-core business data) for the database;
● So, for the data storage query and other operations of friendship links here, we will do it based on MongoDB;
边栏推荐
- Compact格式下MySQL的数据如何存储到磁盘
- MySQL - index explanation
- 正则表达式
- Metasploit(MSF)基础超级详细版
- mysql操作入门(四)-----数据排序(升序、降序、多字段排序)
- 我与csdn
- Conditional constructor ~wapper
- Understand the Chisel language. 30. Chisel advanced communication state machine (2) - FSMD: Take Popcount as an example
- Gradle系列——Gradle插件(基于Gradle文档7.5)day3-2
- 概率论与数理统计
猜你喜欢
Mysql error 2003 solution Can 't connect to Mysql server on' localhost '(10061).
Introduction to mysql operation (4) ----- data sorting (ascending, descending, multi-field sorting)
MySQL-索引优化和查询优化
Agile, DevOps and Embedded Systems Testing
redis-高级篇
OC-错误提示
埋点开发流程
吃透Chisel语言.31.Chisel进阶之通信状态机(三)——Ready-Valid接口:定义、时序和Chisel中的实现
MySQL-执行流程+缓存+存储引擎
The best interests of buying and selling stocks with handling fees [What is missing in the definition of DP status?]
随机推荐
21 days learning challenge 】 【 sequential search
OC-NSNumber和NSValue一般用来装箱拆箱
Go implements distributed locks
Splunk Field Caculated Calculated Field
Splunk Filed extraction 字段截取
Splunk Field Caculated 计算字段
View zombie processes
OC-NSString
FormData上传二进制文件、对象、对象数组
Splunk Filed Alias 字段改名
apt & apt-get命令
Metasploit (MSF) Basic Super Detailed Edition
CSRF-跨站请求伪造-相关知识
Splunk Filed Alias field name
条件构造器~wapper
有关 sql中的 concat()函数问题,如何拼接
OC - NSSet (set)
How to export multiple query results at once in SQL server 2014?
【CV】OpenVINO installation tutorial
OC-NSNumber and NSValue are generally used for boxing and unboxing