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

Refactor join plans base cost #71

Open
kjetilk opened this issue Feb 15, 2016 · 0 comments
Open

Refactor join plans base cost #71

kjetilk opened this issue Feb 15, 2016 · 0 comments
Assignees

Comments

@kjetilk
Copy link
Contributor

kjetilk commented Feb 15, 2016

I have had to replicate the code that estimates the cost of hash and nested loop joins in two places now:
https://github.com/kjetilk/p5-atteanx-query-cache/blob/try-recurse-plan-with-access-plan/lib/AtteanX/Model/SPARQLCache.pm#L54
https://github.com/kjetilk/p5-atteanx-query-cache/blob/try-recurse-plan-with-access-plan/lib/AtteanX/Model/SPARQLCache/LDF.pm#L58

I don't know if I could do it any better with the existing code, other than hack the planner instead. So, perhaps there could be some other way to do it in Attean, so that I can just call a method when I need this?

If I call $planner->cost_for_plan($plan, $self) in the model itself, it will obviously result in a infinite loop (I've tried :-) ), but perhaps some other method on the planner?

@kasei kasei assigned kasei and unassigned kasei Jan 9, 2019
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

No branches or pull requests

2 participants