1. Which of the following are advantages of embedded data in documents when compared to traditional relational database tables and records? Check all that apply:
题目选项
- A.allows documents to have different sets of fields and their data types can different within a single collection
- B.allows fields to be added and removed without any additional steps or constraints.
- C.allows related data to be updated in a single atomic write operation.
- D.provides better performance for read operations, as data can be requested and retrieved in a single database operation
答案置信度:中
正确答案:A、B、C、D
解析语言:中文
四项都是文档模型/内嵌数据相对关系表与记录的实打实优势:A 指同一集合允许文档的字段集合与取值类型互不相同(多态),B 指增删字段不需要 ALTER TABLE 之类的额外步骤,C 指把相关数据内嵌后可以在一次单文档原子写入中一起更新,D 指读取时不必做 JOIN、一次读写即可取回整条数据。关系表要表达同样的结构就得靠多表 JOIN 或大量可空列,所以这四点都成立,源卷答案 ABCD 可采纳。