Skip to content

Conversation

imdominicreed
Copy link
Contributor

@imdominicreed imdominicreed commented Jan 14, 2025

Proposed Changes

  • getDecisions calls GetAttributeValuesByFqns per ResourceAttribute, with bulk rewrap incoming, this can be quite expensive.
  • rather than GetAttributesValuesByFqns per ResourceAttribute get all FQNs in one call by collecting them in the ResourceAttribute.

Checklist

  • I have added or updated unit tests
  • I have added or updated integration tests (if appropriate)
  • I have added or updated documentation

Testing Instructions

go run ./examples benchmark-decision --insecurePlaintextConn --count 1000
locally I got 1.3s vs 80ms, so a very important performance change.

@imdominicreed imdominicreed force-pushed the fix/list_attrs_get_decisions branch from 951893a to c3cda1b Compare January 14, 2025 22:17
@imdominicreed imdominicreed reopened this Jan 14, 2025
@imdominicreed imdominicreed marked this pull request as ready for review January 15, 2025 17:33
@imdominicreed imdominicreed requested a review from a team as a code owner January 15, 2025 17:33
@imdominicreed imdominicreed added this pull request to the merge queue Jan 15, 2025
Merged via the queue into main with commit 5379baf Jan 15, 2025
28 checks passed
@imdominicreed imdominicreed deleted the fix/list_attrs_get_decisions branch January 15, 2025 18:42
github-merge-queue bot pushed a commit that referenced this pull request Jan 21, 2025
🤖 I have created a release *beep* *boop*
---


##
[0.4.38](service/v0.4.37...service/v0.4.38)
(2025-01-21)


### Features

* **core:** adds bulk rewrap to sdk and service
([#1835](#1835))
([11698ae](11698ae))


### Bug Fixes

* **core:** Autobump service
([#1864](#1864))
([f9d149b](f9d149b))
* **core:** Autobump service
([#1867](#1867))
([b8f5101](b8f5101))
* **core:** reduces GetAttributeValuesByFqns calls in getDecisions
([#1857](#1857))
([5379baf](5379baf))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: opentdf-automation[bot] <149537512+opentdf-automation[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants