-
Notifications
You must be signed in to change notification settings - Fork 71
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
chore(weave): Eval Compare Perf: Split Query #3295
Conversation
Preview this PR with FeatureBee: https://beta.wandb.ai/?betaVersion=17dff7637deb61678e3d9e85337af63f5b706488 |
Preview this PR with FeatureBee: https://beta.wandb.ai/?betaVersion=ca24f8095545a13cca441ff420dc8009e4682ede |
@@ -50,18 +58,28 @@ export const useEvaluationComparisonState = ( | |||
const orderedCallIds = useMemo(() => { | |||
return getCallIdsOrderedForQuery(evaluationCallIds); | |||
}, [evaluationCallIds]); | |||
const data = useEvaluationComparisonData(entity, project, orderedCallIds); | |||
const summaryData = useEvaluationComparisonSummary( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the major change in this PR: splits up the data fetch into 2 stages
); | ||
|
||
const flattenedRows = useMemo(() => { | ||
const rows: FlattenedRow[] = []; | ||
Object.entries(state.data.resultRows).forEach( | ||
Object.entries(state.results.result?.resultRows ?? {}).forEach( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is kinda weird, this used to be a real data object but now its a query response?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
like, why are we storing results.result
instead of result
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i modified the name to be more clear
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Clean, one small question
Improves performance by splitting the eval page loading into two distinct steps