Skip to content

Conversation

solsson
Copy link
Contributor

@solsson solsson commented Sep 15, 2023

This avoids memory usage spikes when retrieving large values responses. Reverts parts of #48 but also reduces the test coverage that #48 introduced. I found no easy way to render a response body from the "entity" and I didn't feel like introducing a REST test framework for this change.

Reverts part of #48 and also raises an overdue review question if
we can retrieve offsets after we've streamed the values.
I think so but that probably depends on threads.
@solsson solsson requested a review from atamon September 15, 2023 13:42
Copy link
Contributor

@atamon atamon left a comment

Choose a reason for hiding this comment

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

LGTM, I can only +1 on the the TODO and REVIEW concerns. No we probably cannot guarantee header<->values consistency with this, and yes we should get the test coverage back :D

It's a gotcha with StreamingOutput that if you also add headers
it's written (by this JAX-RS impl?) as entity.toString
@solsson
Copy link
Contributor Author

solsson commented Sep 17, 2023

Replaced by #51 which is a smaller diff and keeps test coverage

@solsson solsson closed this Sep 17, 2023
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