Tested locally
Details
Details
- Reviewers
kparal tflink jskladan - Maniphest Tasks
- T667: fedmsg deduplication ignores archs
- Commits
- rRSDB0798b4d43a5b: Don't ignore arch in fedmsg deduplication
Diff Detail
Diff Detail
- Repository
- rRSDB resultsdb
- Branch
- feature/fix-dedup-arch
- Lint
No Linters Available - Unit
No Unit Test Coverage - Build Status
Buildable 399 Build 399: arc lint + arc unit
Comment Actions
This should have some unit tests with it. I'd also like to see this done with fewer joins, if possible
Comment Actions
resultsdb/controllers/api_v1.py | ||
---|---|---|
644 | Since multiple joins on the same table create query like this: SELECT result.id AS result_id FROM result JOIN resultdata AS resultdata_1 ON result.id = resultdata_1.result_id JOIN resultdata AS resultdata_2 ON result.id = resultdata_2.result_id WHERE resultdata_1.key = :key_1 AND resultdata_1.value = :value_1 AND resultdata_2.key = :key_2 AND resultdata_2.value = :value_2 I doubt that it could be done in less of them. It could be replaced by nested SELECT, but from what I've read on the PostgreSQL planner, it is better with JOINs. Would be worth a try, though. |
Since multiple joins on the same table create query like this:
I doubt that it could be done in less of them. It could be replaced by nested SELECT, but from what I've read on the PostgreSQL planner, it is better with JOINs. Would be worth a try, though.