firebase database limit

Realtime Database Limits

The following are restrictions on data storage and operations in Firebase Realtime Database. To scale beyond any of these limits, use multiple databases.

Global

OperationLimitDescription
Simultaneous connections100,000A simultaneous connection is equivalent to one mobile device, browser tab, or server app connected to the database.

This isn't the same as the total number of users of your app, because your users don't all connect at once. For example, apps with 10 million monthly active users usually have fewer than 100,000 simultaneous connections. Your max simultaneous connections depends on your total user count and the average time users spend in your app.

However, if you need to scale beyond this limit, try using multiple databases.

Simultaneous responses sent from a single database.~100,000/secondResponses include simultaneous broadcast and read operations sent by the server from a single database at a given time. The limit refers to the data packets that represent each individual read or broadcast operation, including push notifications, sent from the database.
Number of Cloud Functions triggered by a single write1000While there isn't a limit to how many read or write operations you can trigger from a single function, a single database write operation can only trigger 1000 functions, per individual write operation.

Cloud Functions can only be triggered by write operations, and each function can also trigger more write operations that trigger more functions (each with their own 1000-function limit).

Size of a single event triggered by a write1 MBThe size of an event consists of the following values: 
  1. The existing data at the write location.
  2. The update value, or the delta in data necessary to write the new data to the location.
Write operations larger than 1MB succeed on the database, but they don't trigger a function invocation.
Data transfer to Cloud Functions10MB/sec sustainedThe rate of event data that can be forwarded to Cloud Functions.

Data tree

PropertyLimitDescription
Maximum depth of child nodes32Each path in your data tree must be less than 32 levels deep.
Length of a key768 BytesKeys are UTF-8 encoded and can't contain new lines or any of the following characters:
. $ # [ ] / or any ASCII control characters (0x00 - 0x1F and 0x7F)
Maximum size of a string10 MBData is UTF-8 encoded.

Reads

DescriptionLimitNotes
Size of a single response served by the database256 MBThe size of data downloaded from the database at a single location should be less than 256 MB for each read operation.

To perform a read operation at a larger location, try one of the following options:

Total nodes in a path with listeners or queries on it75 million*You can't listen to or query paths with more than 75 million nodes, cumulative. However, you can still listen to or query child nodes. Try drilling down deeper into the path or creating separate listeners or queries for more specific portions of the path.

*You can't view paths with more than 30,000 total nodes from the data viewer in the Firebase console.

Length of time a single query can run15 minutes*A single query can run for up to 15 minutes before failing.

*A single query performed in the Firebase console can only run for up to 5 seconds before failing.

Writes

DescriptionLimitNotes
Size of a single write request to the database256 MB from the REST API; 16 MB from the SDKs.The total data in each write operation should be less than 256 MB. Multi-path updates are subject to the same size limitation.
Bytes written64 MB/minuteThe total bytes written through simultaneous write operations on the database at any given time.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值