Skip to content

APPSRE-12149: Stream query rows to client rather than storing#100

Open
PaulWay wants to merge 2 commits intoapp-sre:mainfrom
PaulWay:paulway_stream_output
Open

APPSRE-12149: Stream query rows to client rather than storing#100
PaulWay wants to merge 2 commits intoapp-sre:mainfrom
PaulWay:paulway_stream_output

Conversation

@PaulWay
Copy link

@PaulWay PaulWay commented May 29, 2025

GABI has to store the entire (stringified) result list before sending it to the client. With very large queries, this can cause timeouts or death by OOM. This change sends each record to the HTTP client as it's received from the database, reducing overall memory use and speeding up responses.

Signed-off-by: Paul Wayper <paulway@redhat.com>
@app-sre-bot
Copy link

Can one of the admins verify this patch?

@PaulWay
Copy link
Author

PaulWay commented May 29, 2025

This PR was written with assistance from the qwen2.5-coder-14b-instruct LLM. Code was not copied directly from the LLM. A local model was used so no code was shared externally.

@BumbleFeng
Copy link
Contributor

[test]

Signed-off-by: Paul Wayper <paulway@redhat.com>
@BumbleFeng
Copy link
Contributor

/ok-to-test

@PaulWay
Copy link
Author

PaulWay commented Jul 10, 2025

I was asked to raise https://issues.redhat.com/browse/APPSRE-12149 after no-one in AppSRE had looked at this ticket.

@PaulWay PaulWay changed the title Stream query rows to client rather than storing APPSRE-12149: Stream query rows to client rather than storing Jul 10, 2025
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.

3 participants