File tree 1 file changed +6
-3
lines changed
1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 1
1
//! Simple module to store files in database.
2
2
//!
3
- //! docs.rs is generating more than 5 million files, they are small and mostly html files.
4
- //! They are using so many inodes and it is better to store them in database instead of
5
- //! filesystem. This module is adding files into database and retrieving them.
3
+ //! docs.rs supports two ways of storing files: in a postgres database and in an S3 bucket.
4
+ //! It does not support storing files on disk because of the sheer number of files:
5
+ //! doing so would quickly run into file descriptor limits when running the web server.
6
+ //!
7
+ //! It's recommended that you use the S3 bucket in production to avoid running out of disk space.
8
+ //! However, postgres is still available for testing and backwards compatibility.
6
9
7
10
use crate :: error:: Result ;
8
11
use crate :: storage:: { CompressionAlgorithms , Storage } ;
You can’t perform that action at this time.
0 commit comments