objectbox / objectbox/objectbox-java
Feature request : QueryCondition.relationCountGT / .relationCountLT
未关闭
还没有人认领这个 Issue。
enhancement
- 主要语言
- Java
- 星标
- 4.6k
- 派生
- 311
- PR 合并指标
- 30 天内没有已合并 PR
描述
First things first, I've really been enjoying the new query API as well as the new features of v3.5.0. That helps me building a cleaner and faster data layer. Thanks guys for listening to us~
I'd love to have two extra methods akin to the new relationCount query condition to check if the relation count is greater than or lower than a certain number; typically to test if entity X has existing relations (i.e. > 0) or if it reaches a given threshold.
Would that be possible ?
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从请求中指定的 QueryCondition.relationCount API 开始,定位其实现和现有覆盖范围。定义一致的关系计数大于和小于阈值时的行为,包括零值和阈值情况;完成标准是两个查询条件都能通过 Java API 工作。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- java
- 领域
- databases
- Issue 类型
- 功能
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100