跳转至

Scale and property limits(规模与属性限制)

Several limits are in place to ensure edited object types can quickly process edits and update user-facing data without slowing down live applications. Actions submitted that exceed these limits will not succeed and will display an error message to the user.

Configuration limits

The Allow multiple values toggle allows users to pass in a list of values to a parameter.

Limit Maximum
Number of elements in a primitive list parameter 10,000
Number of elements in an object reference list parameter 1,000
Number of elements in a list parameter when used in submission criteria 1,000

Edit limits

Limit Maximum
Number of object types you can edit in a single action submission 50
Number of objects you can edit in a single action submission 10,000
Each individual edit of an object in an action submission 32KB (OSv1), 3MB (OSv2)

Batch call limits

An action can be called a maximum of 10,000 times in a batch. This limit is reduced to 20 when the action is function-backed and the function is not configured to use batched execution.

The edits applied in a batched action call are treated as a single group when enforcing edit limits, regardless of which request in the batch was the cause of the edits.

Additional limits may apply, depending on the calling application.

Supported property types

Below are specifications for supported single and array property types. Note that some property types are only supported by object storage v2 (OSv2).

Single property types

Property type Parameter type Supported
Attachment Attachment Yes
Boolean Boolean Yes
Byte Integer Yes
Cipher text String Yes
Date Date Yes
Decimal Decimal Yes
Double Double Yes
Float Double Yes
Geopoint Geopoint Yes
Geoshape Geoshape Yes
Geotime series reference Geotime series reference Yes (OSv2 only)
Integer Integer Yes
Long Long Yes
Mandatory control - Not supported as a property or in actions
Media reference Media reference Yes (OSv2 only)
String String Yes
Short Integer Yes
Struct Struct Yes (OSv2 only)
Timestamp Timestamp Yes
Time series reference Time series reference Yes (OSv2 only)
Vector Double list Yes (OSv2 only)

Array property types

Array property type List parameter type Supported
Attachment Attachment Yes
Boolean Boolean Yes
Byte Integer Yes
Cipher text String Yes
Date Date Yes
Decimal Decimal Yes
Double Double Yes
Float Double Yes
Geopoint Geopoint Yes
Geoshape Geoshape Yes
Geotime series reference Geotime series reference Yes (OSv2 only)
Integer Integer Yes
Long Long Yes
Mandatory control Mandatory control Yes
Media reference - Not supported in actions
String String Yes
Short Integer Yes
Struct Struct Yes (OSv2 only)
Timestamp Timestamp Yes
Time series reference - Not supported as a property or in actions
Vector - Not supported as a property or in actions

Supported properties

Currently, actions cannot be used to edit the primary key of an object. Modifying the primary key is equivalent to deleting an object and then adding a new object; instead of editing the primary key with an action, you can create or delete an object directly using rules.

Notification recipients

When using side effect notifications, a maximum of 500 recipients can notified in a single action. This limit is reduced to fifty recipients when notifications content is rendered "From a function". For further information about limits to account for when generating notifications, see the documentation on maximum recipient limits for notifications.


中文翻译

规模与属性限制

为确保编辑后的对象类型能够快速处理编辑操作并更新面向用户的数据,同时避免拖慢实时应用程序,系统设置了若干限制。超出这些限制的操作将无法成功执行,并向用户显示错误信息。

配置限制

"允许多个值"开关允许用户向参数传入一个值列表。

限制项 最大值
原始类型列表参数中的元素数量 10,000
对象引用列表参数中的元素数量 1,000
在提交条件中使用的列表参数中的元素数量 1,000

编辑限制

限制项 最大值
单次操作提交中可编辑的对象类型数量 50
单次操作提交中可编辑的对象数量 10,000
操作提交中每个对象的单独编辑 32KB (OSv1),3MB (OSv2)

批量调用限制

单次批量调用中,一个操作最多可被调用 10,000 次。当操作由函数支持且该函数未配置使用批量执行时,此限制将降至 20 次。

在强制执行编辑限制时,批量操作调用中应用的编辑将被视为一个整体,无论这些编辑是由批量中的哪个请求引起的。

根据调用应用程序的不同,可能还会适用其他限制。

支持的属性类型

以下是支持的单一属性和数组属性类型的规格说明。请注意,某些属性类型仅受对象存储 v2(OSv2)支持。

单一属性类型

属性类型 参数类型 是否支持
附件(Attachment) 附件(Attachment)
布尔值(Boolean) 布尔值(Boolean)
字节(Byte) 整数(Integer)
密文(Cipher text) 字符串(String)
日期(Date) 日期(Date)
十进制数(Decimal) 十进制数(Decimal)
双精度浮点数(Double) 双精度浮点数(Double)
单精度浮点数(Float) 双精度浮点数(Double)
地理点(Geopoint) 地理点(Geopoint)
地理形状(Geoshape) 地理形状(Geoshape)
地理时间序列引用 地理时间序列引用 是(仅 OSv2)
整数(Integer) 整数(Integer)
长整数(Long) 长整数(Long)
强制控制 - 不支持作为属性或操作
媒体引用 媒体引用 是(仅 OSv2)
字符串(String) 字符串(String)
短整数(Short) 整数(Integer)
结构体(Struct) 结构体(Struct) 是(仅 OSv2)
时间戳(Timestamp) 时间戳(Timestamp)
时间序列引用 时间序列引用 是(仅 OSv2)
向量(Vector) 双精度浮点数列表 是(仅 OSv2)

数组属性类型

数组属性类型 列表参数类型 是否支持
附件(Attachment) 附件(Attachment)
布尔值(Boolean) 布尔值(Boolean)
字节(Byte) 整数(Integer)
密文(Cipher text) 字符串(String)
日期(Date) 日期(Date)
十进制数(Decimal) 十进制数(Decimal)
双精度浮点数(Double) 双精度浮点数(Double)
单精度浮点数(Float) 双精度浮点数(Double)
地理点(Geopoint) 地理点(Geopoint)
地理形状(Geoshape) 地理形状(Geoshape)
地理时间序列引用 地理时间序列引用 是(仅 OSv2)
整数(Integer) 整数(Integer)
长整数(Long) 长整数(Long)
强制控制 强制控制
媒体引用 - 不支持在操作中使用
字符串(String) 字符串(String)
短整数(Short) 整数(Integer)
结构体(Struct) 结构体(Struct) 是(仅 OSv2)
时间戳(Timestamp) 时间戳(Timestamp)
时间序列引用 - 不支持作为属性或操作
向量(Vector) - 不支持作为属性或操作

支持的属性

目前,操作不能用于编辑对象的主键。修改主键等同于删除一个对象后再添加一个新对象;如需修改主键,您可以直接使用规则来创建或删除对象。

通知收件人

使用副作用通知时,单次操作最多可通知 500 个收件人。当通知内容通过"从函数渲染"方式生成时,此限制将降至 50 个收件人。有关生成通知时需考虑的更多限制信息,请参阅通知最大收件人限制的文档。