objectbox / objectbox/objectbox-java
Support observing changes to single properties
还没有人认领这个 Issue。
- 主要语言
- Java
- 星标
- 4.6k
- 派生
- 311
- PR 合并指标
- 30 天内没有已合并 PR
描述
Note these related feature requests:
- #126
- #268
Translation:
I hope to support custom models to query. For example, the storage model is A. I want to use B to accept only some fields of the same name of A to ensure memory overhead. For example, when I do tabular data, I want to query some fields of model A (due to model A There are more than 20 fields) I only want to monitor some of the fields in this model. The current monitoring is full, which will result in a complete model of 20,000 data observations and 200,000 data. For example, I only want to monitor changes and get this Twenty thousand ids, then 20,000 complete model objects will not be generated. This function room provides
Original issue:
希望支持自定义模型来查询 比如存储模型是A 我希望用B 来接受 B只有A的一些同名字段 来保证内存开销
希望支持自定义模型来查询 比如存储模型是A 我希望用B 来接受 B只有A的一些同名字段 来保证内存开销
比如我在做表格数据的时候 希望查询出模型A的部分字段(由于模型A的字段已经超过20个) 我只想监听 这个模型中的部分字段
目前的监听 是全量的 会导致有2万条数据 观察返回也返回了20万条数据的完整模型 比如我只想监听改变而得到这两万个id,那么不会产生2万个完整的模型对象 这个功能room有提供
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先查看相关的功能请求 #126 和 #268 以及翻译后的描述,因为其中没有指定源文件或测试。明确应如何观察选定的属性,并验证完成意味着接收变更或 ID,而不是为每条被观察的记录创建完整的模型对象。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- java
- 领域
- databases
- Issue 类型
- 功能
- 难度
- 5/5
- 预计耗时
- 一周以上
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 25/100