Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

perf: use objs_query param metadata_only to get objects without their values #2418

Merged
merged 6 commits into from
Sep 24, 2024

Conversation

gtarpenning
Copy link
Member

@gtarpenning gtarpenning commented Sep 18, 2024

Description

https://wandb.atlassian.net/browse/WB-21042

Pass in metadata_only to not load the val_dump. has a pretty mega impact on the objs/query that we use in the ops and objects page. That query currently barely completes in the worst projects, example below:

Prod:
minutes (and crashes) on large objects

This change:
Screenshot 2024-09-18 at 1 30 02 PM

Testing

How was this PR tested?

@gtarpenning gtarpenning changed the title Griffin/object query lite perf: allow val_dump selection in objs query Sep 18, 2024
@circle-job-mirror
Copy link

circle-job-mirror bot commented Sep 18, 2024

@gtarpenning gtarpenning changed the title perf: allow val_dump selection in objs query perf: allow val selection in objs query Sep 19, 2024
@gtarpenning gtarpenning marked this pull request as ready for review September 19, 2024 01:24
@gtarpenning gtarpenning requested a review from a team as a code owner September 19, 2024 01:24
@gtarpenning gtarpenning changed the title perf: allow val selection in objs query perf: use objs_query param metadata_only to get objects without their values Sep 23, 2024
WHERE deleted_at IS NULL AND project_id = ? AND {pred}"""
val_dump_part = "'{}' as val_dump" if metadata_only else "val_dump"
query = f"""
SELECT
Copy link
Collaborator

Choose a reason for hiding this comment

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

thank you! * is bad

@gtarpenning gtarpenning merged commit 1947bf5 into master Sep 24, 2024
73 checks passed
@gtarpenning gtarpenning deleted the griffin/object-query-lite branch September 24, 2024 20:43
@github-actions github-actions bot locked and limited conversation to collaborators Sep 24, 2024
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.

2 participants