java - Firebase 实时数据库中的节点是什么?

标签 java android firebase firebase-realtime-database

在 Firebase 实时数据库安全文档中 https://firebase.google.com/docs/database/security/quickstart ,他们提到节点。但是,我似乎无法弄清楚 Firebase 中的节点是什么。谁能帮忙?

最佳答案

您应该阅读有关 structuring your data 的文档.如果您还不了解这一点,那么安全规则将很难推理。从该页面:

All Firebase Realtime Database data is stored as JSON objects. You can think of the database as a cloud-hosted JSON tree. Unlike a SQL database, there are no tables or records. When you add data to the JSON tree, it becomes a node in the existing JSON structure with an associated key.

和:

When you fetch data at a location in your database, you also retrieve all of its child nodes. In addition, when you grant someone read or write access at a node in your database, you also grant them access to all data under that node. Therefore, in practice, it's best to keep your data structure as flat as possible.

节点只是数据库中的一个位置,就像计算机科学中的其他树状数据结构一样。

关于java - Firebase 实时数据库中的节点是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54524720/

相关文章:

java - 使用 CipherInputStream 和 CipherOutputStream 加密和解密文件

java - 将现有的 java (libGDX) 项目和 git 存储库从 eclipse 迁移到 IntelliJ IDEA

android - 将对象上传到 fireBase,并在 android 上附加图像

firebase - 此构建中使用了已弃用的 Gradle 功能,使其与 android studio 中的 Gradle 8.0 不兼容

java - 在包含 list 的 jar 文件之外包含 jar 文件的问题

JavaFX 9/10 不再可能覆盖 TableView.resizeColumnToFitContent

java - 如何在数组列表中应用基于单词的搜索操作?

java - Android - 如何使适配器布局保持原位

java - 通知数据集更改();不清爽

javascript - Geofire 如何计算 Firebase 查询的边界 geohashes?