压缩 Feed 文件
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
任何 .json
或 .pb3
文件都可以在上传前使用 gzip 进行压缩。
这可以显著缩减每日 Feed 的字节大小。
每个分片文件都应进行 gzip
处理,并单独上传(例如使用 gzip *.json
)。压缩后的 Feed 分片应以 .json.gz
或 .pb3.gz
结尾。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):2025-07-26。"],[[["\u003cp\u003eDaily feed file size can be significantly reduced by compressing them with gzip before uploading.\u003c/p\u003e\n"],["\u003cp\u003eBoth \u003ccode\u003e.json\u003c/code\u003e and \u003ccode\u003e.pb3\u003c/code\u003e files are eligible for compression.\u003c/p\u003e\n"],["\u003cp\u003eEach shard file needs individual gzip compression and the resulting compressed files should have the extension \u003ccode\u003e.json.gz\u003c/code\u003e or \u003ccode\u003e.pb3.gz\u003c/code\u003e respectively.\u003c/p\u003e\n"]]],["`.json` and `.pb3` files can be compressed with gzip to reduce file size. Each shard file must be individually compressed using gzip before uploading. Compressed files should use the extensions `.json.gz` or `.pb3.gz`. This process is recommended to minimize the size of daily data feeds. Individual compression is required.\n"],null,["# Compress feed files\n\nAny `.json` or `.pb3` file may be compressed using gzip before uploading.\nThis can significantly reduce the byte size of daily feeds.\n\nEach shard file should be `gzip`'d and uploaded individually\n(e.g. with `gzip *.json`). Compressed feed shards should end in\n`.json.gz` or `.pb3.gz`."]]