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

Implement pre-CTE filtering #2

Open
JackAtOmenApps opened this issue Oct 26, 2020 · 1 comment
Open

Implement pre-CTE filtering #2

JackAtOmenApps opened this issue Oct 26, 2020 · 1 comment

Comments

@JackAtOmenApps
Copy link
Collaborator

Add the ability to filter down prior to running CTE.

For instance, in a graph of a municipal district, it may be more efficient to limit the search to a particular region, category of nodes/edges, or other characteristics.

This would involve modifying the raw Postgresql statement to include the additional filtering.

@JackAtOmenApps
Copy link
Collaborator Author

JackAtOmenApps commented Nov 1, 2020

Options to pre-filter on the following:

  • A queryset of node instances to ignore
  • A queryset of node instances to require
  • A queryset of edge instances to ignore
  • A queryset of edge instances to require
  • A ForeignKey on the node model
  • A ForeignKey on the edge model

Maybe in the future:

  • A ManyToManyField on the node model
  • A ManyToManyField on the edge model

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

1 participant