Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/performance/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Performance 如何使用meteor中的collection FS包指定要发布的存储?(性能问题)_Performance_Meteor_Store_Publish_Collectionfs - Fatal编程技术网

Performance 如何使用meteor中的collection FS包指定要发布的存储?(性能问题)

Performance 如何使用meteor中的collection FS包指定要发布的存储?(性能问题),performance,meteor,store,publish,collectionfs,Performance,Meteor,Store,Publish,Collectionfs,我有一个具有多个存储(原稿、拇指、作物等)的图像集合,我并不总是同时需要它们。因此,从性能角度来看,能够选择每次发布哪个存储将非常有趣 请问可能吗 您是否真的有性能问题,或者正在考虑将来的问题?如果您当前遇到问题,可以显示代码和计时吗?下面是一段图像集合的外观:images=new FS.collection(“images”),{stores:[new FS.Store.GridFS(“original”)、new FS.Store.GridFS(“crops”、{transformWrite

我有一个具有多个存储(原稿、拇指、作物等)的图像集合,我并不总是同时需要它们。因此,从性能角度来看,能够选择每次发布哪个存储将非常有趣


请问可能吗

您是否真的有性能问题,或者正在考虑将来的问题?如果您当前遇到问题,可以显示代码和计时吗?下面是一段图像集合的外观:images=new FS.collection(“images”),{stores:[new FS.Store.GridFS(“original”)、new FS.Store.GridFS(“crops”、{transformWrite:createcrops})、new FS.Store.GridFS(“thumbs”、{transformWrite:createThumb})],关于时间安排:比如说20-30张这样的图像,视图渲染大约需要1秒。我不认为你的存储是你的问题。当你发布
图像集时,你只发布图像元数据。只有当你加载
.url()
将图像转换为
img
标记,表示您正在移动图像字节。因此,如果您仅在页面上显示缩略图,则将获得所有字节。好的,感谢您的澄清,您可能是对的,事实上,每个图像的元数据实际上都包含了大量信息。谢谢。