Firebase密钥是否对整个数据库都是唯一的?

使用push()时,Firebase会创建一个唯一的ID或密钥,例如-KKm9irsax-scGn7m3Lb.

根据文件

The push() method generates a unique ID every time a new child is
added to the specified Firebase reference.

和:

The unique ID generated by push() is based on a timestamp,so list
items are automatically ordered chronologically.

此ID或密钥对整个数据库是唯一的还是仅对引用(如/ users)?

解决方法

Firebase密钥是部分时间戳和部分随机字符.因此,尽管它们在整个数据库中应该是唯一的,但两个密钥最终可能会相同.

Firebase blog: The 2^120 Ways to Ensure Unique Identifiers

相关文章

SELECT a.*,b.dp_name,c.pa_name,fm_name=(CASE WHEN a.fm_n...
if not exists(select name from syscolumns where name=&am...
select a.*,pano=a.pa_no,b.pa_name,f.dp_name,e.fw_state_n...
要在 SQL Server 2019 中设置定时自动重启,可以使用 Window...
您收到的错误消息表明数据库 'EastRiver' 的...
首先我需要查询出需要使用SQL Server Profiler跟踪的数据库标...