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

Evaluate ProcedureCallContext to optimize heavy procedures #204

Open
vga91 opened this issue Sep 30, 2022 · 0 comments
Open

Evaluate ProcedureCallContext to optimize heavy procedures #204

vga91 opened this issue Sep 30, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@vga91
Copy link
Collaborator

vga91 commented Sep 30, 2022

We could evaluate the use of ProcedureCallContext, which captures info about the context in which a procedure was called.

Using this class, when we call a procedure using a YIELD with only some fields,
we can capture the YIELDed fields and optimize heavy procedures to skip calculating and returning the unused fields.

Can be useful, for instance, to exclude some fields from the CALL apoc.export.csv.all(null, {stream: true}), and similar.

This class is already used by the GDS Library.

To be noted: is an org.neo4j.internal, therefore perhaps the class should have changed as a @PublicApi

/cc @nadja-muller @ncordon

@nadja-muller nadja-muller added the enhancement New feature or request label Nov 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants