阅读背景:

AWS Cognito数据集同步限制 - 当您每组同步超过1mb时会发生什么

来源:互联网 

AWS Cognito allows you to sync datasets across devices but the documentation states:

AWS Cognito允许您跨设备同步数据集,但文档说明:

Each dataset can have a maximum size of 1 MB. 
You can associate up to 20 datasets with an identity.

However it appears that if you DO NOT sync the datasets and simply keep them local then the dataset can be larger than 1mb in size.

但是,如果您不同步数据集并仅将它们保持为本地,那么数据集的大小可能会大于1mb。

What happens if you then try and sync those sets? is it that Cognito throws an error and simply doesn't allow it OR The dataset is trimmed to 1mb such that only the most recent records sync OR something else?

如果您尝试同步这些集合会发生什么?是Cognito抛出一个错误并且根本不允许它或者数据集被修剪为1mb,这样只有最近的记录同步或其他东西?

NOTE: I am aware that one could split data across multiple sets and then perform a sync but this is NOT a solution for me as I require all 20 sets already

注意:我知道可以跨多个集合拆分数据,然后执行同步,但这不是我的解决方案,因为我已经需要所有20个集合

1 个解决方案

#1


1  

Cognito will throw an exception (LimitExceededException, if memory serves) when you have put more than 1 MB into a dataset. It won't truncate data and accept the synchronization request.

当您将超过1 MB的数据放入数据集时,Cognito将抛出异常(如果内存服务,则为LimitExceededException)。它不会截断数据并接受同步请求。


分享到: