当前位置:网站首页>When should gridfs be used?
When should gridfs be used?
2022-06-24 09:34:00 【Huang Jiajun】
about MongoDB collection For documents under , At file greater than 16MB when , We should use GridFS.
In some solutions , Use MongoDB Of GridFS Store big files , More convenient than using a system level file system .
. When the directory of the file system has a limit on the number of files , You should use GridFS To store as many files as you need ;
. When you want your files and metadata to be automatically synchronized and deployed across multiple systems and facilities . Use geographically distributed replica sets (geographically distributed replica sets),MongoDB Files and metadata can be automatically distributed to multiple mongo Examples and facilities .
. When you want to access some information of a large file , When you don't want to load the entire file into memory , You can use GridFS Call back some files , Instead of reading the entire file into memory . If you need to automatically update the entire contents of the file , Do not use GridFS. As a substitute , You can store multiple versions of a file , And specify the current version of the file in the metadata . After uploading the new version of the file , You can express the update as an atomic update "latest" Metadata fields for , If necessary , You can delete the previous version .
边栏推荐
- jupyter入门常见的几个坑:
- Depens:*** but it is not going to be installed
- 谈谈数字化转型晓知识
- 达梦数据库如何定位锁等待问题解决方法
- 【Redis實現秒殺業務①】秒殺流程概述|基本業務實現
- [redis implements seckill business ①] seckill process overview | basic business implementation
- Framework tool class obtained by chance for self use
- 12、 Demonstration of all function realization effects
- 【bug】@JsonFormat 使用时出现日期少一天的问题
- ThinkPHP5多语言切换项目实战
猜你喜欢

【Redis實現秒殺業務①】秒殺流程概述|基本業務實現

Recommendation - Secret of curiosity: how many dancing angels can stand on the tip of a needle?

Time Series Data Augmentation for Deep Learning: A Survey 之论文阅读

【ES6闯关】Promise堪比原生的自定义封装(万字)

深入了解 border

浮点数表示法(总结自CS61C和CMU CSAPP)

latex公式及表格识别

LeetCode: 240. 搜索二维矩阵 II

Support vector machine (SVC, nusvc, linearsvc)

关于thinkphp5 使用模型save()更新数据提示 method not exist:think\db\Query-> 报错解决方案
随机推荐
Vidéo courte recommandée chaque semaine: Soyez sérieux en parlant de "métaunivers"
P6698-[balticoi 2020 day2] virus [AC automata, DP, SPFA]
RISC-V架构下 FPU Context 的动态保存和恢复
PhpStrom代码格式化设置
cookie加密 4 rpc方法确定cookie加密
Zero foundation self-study SQL course | syntax sequence and execution sequence of SQL statements
Go language project development practice directory
Threejs MMD model loading + contour loading + animation loading + Audio loading + camera animation loading +ammojs loading gltf model loading +gltf reflection adjustment
Software system dependency analysis
Directly applicable go coding specification
Xiaobai needs to learn MySQL - incremental statistical SQL
牛客网 字符串变形
threejs的点光源+环境光
ApplicationContextInitializer的三种使用方法
Zero foundation self-study SQL course | having clause
Applet cloud data, data request a method to collect data
Code written by mysql, data addition, deletion, query and modification, etc
荐书丨《好奇心的秘密》:一个针尖上可以站多少跳舞的小天使?
Target of cmake command_ compile_ options
Chapter 7 operation bit and bit string (III)