- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我将记录存储为 json 文档,根据记录类型组织成层次结构。将这些存储在 Redis 中的传统方法是:
customer:walmart = {...}
customer:target = {...}
order:po123 = {...}
person:bob = {...]
person:tom = {...}
["customer"] = {"walmart": {...}, "target": {...}, "amazon": {...}}
["order"] = {"po1": {...}, "po2": {...}, "po3": {...}}
["transaction"] = {"uuid1": {...}, "uuid2": {...}, "uuid3": {...}}
["person"] = {"bob": {...}, "tom": {...}, "dave": {...}}
["widget"] = {"this": {...}, "that": {...}, "other": {...}}
target
(一个
customer
)或两者都有
bob
和
tom
(
person
秒)。我很少从单一类型中检索所有记录。
bob
和
tom
以上在单个命令/获取中。
mget
跨多个根 Redis 键获取公共(public)路径。这与我想要的相反,是我在滥用 Redis 的标志。
最佳答案
What is the performance difference between these two different approaches? Does Rejson make retrieving a subdocument based on a json path ('record' above) roughly as efficient as retrieving the document from the root Redis store?
Rejson doesn't appear to have a way to retrieve bob and tom above in a single command/fetch.
JSON.GET customer .bob .tom
.
JSON.GET customer .["bob"|"tom"]
Even with Rejson, should deliberate data hierarchies used in this way be considered bad practice due to performance penalties?
关于json - Redis/Rejson 嵌套文档层次结构性能,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62079565/
我正在尝试将多个水平链接的 Button 和 TextView 垂直链接为 View 集,但仍保持平面 View 层次结构。这是我的初始布局和代码:
到目前为止,我已经在Google BigQuery上训练了几种模型,目前我需要查看模型的外观(即架构,损失函数等)。 有没有办法获取这些信息? 最佳答案 仔细阅读文档后,我可以说该功能尚不存在。我什至
本文实例讲述了PHP实现二叉树深度优先遍历(前序、中序、后序)和广度优先遍历(层次)。分享给大家供大家参考,具体如下: 前言: 深度优先遍历:对每一个可能的分支路径深入到不能再深入为止,而且每个
我是一名优秀的程序员,十分优秀!