Skip to content

Conversation

@josephschorr
Copy link
Member

Adds a new experimental count relationships API that can be run on the Materialize instance, to avoid performing the count on the main datastore

@josephschorr josephschorr force-pushed the materialize-relationships branch 2 times, most recently from ea11803 to f5fb9ba Compare October 17, 2025 17:39
@josephschorr josephschorr force-pushed the materialize-relationships branch from f5fb9ba to 9eb6e4a Compare October 17, 2025 17:48

message ExperimentalCountRelationshipsByFilterResponse {
// relationship_count is the count of relationships that match the filter.
uint64 relationship_count = 1;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why does this not have the required tags?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I generally don't mark required on response types and basically forgot to do so; it will auto-fill to zero anyway as an int, so marking it required doesn't really make sense

}
}
},
"ExperimentalCountRelationshipsByFilterResponse": {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This swagger looks odd; is it including ALL the Materialize stuff? it doesn't look like it

why did it include this response object and not the API itself?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ahh it's because of this line

- "disable_service_tags=true" # Hide the Materialize APIs, which aren't exposed via HTTP.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, although it doesn't really matter either way

Copy link
Contributor

@tstirrat15 tstirrat15 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@josephschorr josephschorr merged commit 089070d into authzed:main Oct 21, 2025
2 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Oct 21, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants